-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
40 lines (24 loc) · 958 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
CFLAGS+= -Werror
CFLAGS+= -fPIC -DPIC
CFLAGS+= -g
PREFIX = /usr/local
ALL: shmserver shmclient shmdump libshmqueue.a
shmqueue_x86.o: shmqueue_x86.S
cc ${CFLAGS} -c shmqueue_x86.S
shmqueue.o: shmqueue.c shmqueue.h rtailq.h
cc ${CFLAGS} -c shmqueue.c
libshmqueue.a: shmqueue.o shmqueue_x86.o
ar crs libshmqueue.a shmqueue.o shmqueue_x86.o
shmserver: shmserver.c shm_config.h libshmqueue.a
cc ${CFLAGS} -o shmserver shmserver.c libshmqueue.a
shmclient: shmclient.c shm_config.h libshmqueue.a
cc ${CFLAGS} -o shmclient shmclient.c libshmqueue.a
shmdump: shmdump.c shm_config.h libshmqueue.a
cc ${CFLAGS} -o shmdump shmdump.c libshmqueue.a
clean:
rm -f *.o shmserver shmclient shmdump
install:
install -o bin -g bin -m 644 shmqueue.h ${PREFIX}/include
install -o bin -g bin -m 644 rtailq.h ${PREFIX}/include
install -o bin -g bin -m 644 libshmqueue.a ${PREFIX}/lib