diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 42 |
1 files changed, 23 insertions, 19 deletions
@@ -1,39 +1,43 @@ | |||
1 | CFLAGS=-Wall -g | 1 | CFLAGS=-Wall -g -Iinclude/ |
2 | CPPFLAGS=-Wall -g | 2 | CPPFLAGS=-Wall -g |
3 | 3 | ||
4 | LIBS= ./liblitmus.a | ||
5 | |||
4 | TARGETS = showsched iotest set_rt_mode run timeout rt_launch edfhsb liblitmus.a wait_test np_test | 6 | TARGETS = showsched iotest set_rt_mode run timeout rt_launch edfhsb liblitmus.a wait_test np_test |
5 | 7 | ||
8 | vpath %.h include/ | ||
9 | vpath %.c src/ | ||
6 | 10 | ||
7 | all: ${TARGETS} | 11 | all: ${TARGETS} |
8 | clean: | 12 | clean: |
9 | rm *.o ${TARGETS} | 13 | rm -f *.o *~ ${TARGETS} |
10 | 14 | ||
11 | wait_test: wait_test.o litmus.h litmus.o | 15 | wait_test: wait_test.o litmus.h liblitmus.a |
12 | cc -static -o wait_test litmus.o wait_test.o | 16 | cc -static -o wait_test wait_test.o ${LIBS} |
13 | 17 | ||
14 | np_test: np_test.o litmus.h litmus.o | 18 | np_test: np_test.o litmus.h liblitmus.a |
15 | cc -static -o np_test litmus.o np_test.o | 19 | cc -static -o np_test np_test.o ${LIBS} |
16 | 20 | ||
17 | iotest: iotest.o litmus.h litmus.o | 21 | iotest: iotest.o litmus.h liblitmus.a |
18 | cc -static -o iotest litmus.o iotest.o | 22 | cc -static -o iotest iotest.o ${LIBS} |
19 | 23 | ||
20 | run: run.o | 24 | run: run.o |
21 | cc -o run run.o | 25 | cc -o run run.o |
22 | 26 | ||
23 | set_rt_mode: litmus.o set_rt_mode.o | 27 | set_rt_mode: liblitmus.a set_rt_mode.o |
24 | cc -o set_rt_mode litmus.o set_rt_mode.o | 28 | cc -o set_rt_mode set_rt_mode.o ${LIBS} |
25 | 29 | ||
26 | showsched: show_scheduler.o litmus.o litmus.h | 30 | showsched: show_scheduler.o liblitmus.a litmus.h |
27 | cc -o showsched show_scheduler.o litmus.o | 31 | cc -o showsched show_scheduler.o ${LIBS} |
28 | 32 | ||
29 | timeout: litmus.o timeout.o litmus.h | 33 | timeout: liblitmus.a timeout.o litmus.h |
30 | cc -static -o timeout litmus.o timeout.o | 34 | cc -static -o timeout timeout.o ${LIBS} |
31 | 35 | ||
32 | rt_launch: litmus.o litmus.h rt_launch.o | 36 | rt_launch: liblitmus.a litmus.h rt_launch.o |
33 | cc -static -o rt_launch litmus.o rt_launch.o | 37 | cc -static -o rt_launch rt_launch.o ${LIBS} |
34 | 38 | ||
35 | edfhsb: litmus.o edf-hsb.o litmus.h edf-hsb.h hrt.o | 39 | edfhsb: liblitmus.a edf-hsb.o litmus.h edf-hsb.h hrt.o |
36 | cc -o edfhsb hrt.o litmus.o edf-hsb.o | 40 | cc -o edfhsb hrt.o edf-hsb.o ${LIBS} |
37 | 41 | ||
38 | liblitmus.a: litmus.o litmus.h edf-hsb.o edf-hsb.h | 42 | liblitmus.a: litmus.o litmus.h edf-hsb.o edf-hsb.h |
39 | ${AR} rcs liblitmus.a litmus.o edf-hsb.o | 43 | ${AR} rcs liblitmus.a litmus.o edf-hsb.o |