diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-12-25 09:42:06 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-12-25 09:42:06 -0500 |
commit | edfc59f100b21e06001af0b49c1bc4a5a4874338 (patch) | |
tree | 79e9487d9908d4afad0bc36d66456e34760cb3ee /Makefile | |
parent | 3b1f336089b9e5fdea89645a33eb17552d6be02b (diff) |
remove old Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 68 |
1 files changed, 5 insertions, 63 deletions
@@ -1,65 +1,7 @@ | |||
1 | KERNEL_DIR = ../litmus2008 | 1 | all: |
2 | echo "Legacy warning: Building is done with scons." | ||
3 | scons | ||
2 | 4 | ||
3 | INC=-Iinclude/ -I${KERNEL_DIR}/include/ | ||
4 | |||
5 | ARCH=$(shell uname -m | sed -e s/i.86/i386/) | ||
6 | |||
7 | ifeq ($(ARCH),sparc64) | ||
8 | CPU=-mcpu=v9 -m64 | ||
9 | else | ||
10 | CPU= | ||
11 | endif | ||
12 | |||
13 | |||
14 | CFLAGS=-Wall -Wdeclaration-after-statement ${INC} ${CPU} -g -D_XOPEN_SOURCE=600 -D_GNU_SOURCE | ||
15 | CPPFLAGS=-Wall -g | ||
16 | |||
17 | LIBS= ./liblitmus.a | ||
18 | |||
19 | LIB_OBJ= litmus.o syscalls.o sched_trace.o task.o kernel_iface.o | ||
20 | |||
21 | TARGETS = rt_launch liblitmus.a \ | ||
22 | wait_test np_test mode_test base_task base_mt_task release_ts showst rtspin cycles | ||
23 | |||
24 | vpath %.h include/ | ||
25 | vpath %.c src/ bin/ | ||
26 | |||
27 | all: ${TARGETS} | ||
28 | clean: | 5 | clean: |
29 | rm -f *.o *~ ${TARGETS} | 6 | echo "Legacy warning: Building is now done with scons." |
30 | 7 | scons -c | |
31 | base_mt_task: base_mt_task.o liblitmus.a | ||
32 | ${CC} ${CFLAGS} -static -pthread -o base_mt_task base_mt_task.o ${LIBS} | ||
33 | |||
34 | base_task: base_task.o liblitmus.a | ||
35 | ${CC} ${CFLAGS} -static -o base_task base_task.o ${LIBS} | ||
36 | |||
37 | wait_test: wait_test.o litmus.h liblitmus.a | ||
38 | ${CC} ${CFLAGS} -static -o wait_test wait_test.o ${LIBS} | ||
39 | |||
40 | mode_test: mode_test.o litmus.h liblitmus.a | ||
41 | ${CC} ${CFLAGS} -static -o mode_test mode_test.o ${LIBS} | ||
42 | |||
43 | np_test: np_test.o litmus.h liblitmus.a | ||
44 | ${CC} ${CFLAGS} -static -o np_test np_test.o ${LIBS} | ||
45 | |||
46 | rt_launch: liblitmus.a litmus.h rt_launch.o common.o | ||
47 | ${CC} ${CFLAGS} -static -o rt_launch rt_launch.o common.o ${LIBS} | ||
48 | |||
49 | rtspin: liblitmus.a litmus.h rtspin.o common.o | ||
50 | ${CC} ${CFLAGS} -static -o rtspin rtspin.o common.o ${LIBS} | ||
51 | |||
52 | release_ts: liblitmus.a litmus.h release_ts.o | ||
53 | ${CC} ${CFLAGS} -static -o release_ts release_ts.o ${LIBS} | ||
54 | |||
55 | showst : liblitmus.a litmus.h showst.o | ||
56 | ${CC} ${CFLAGS} -o showst showst.o ${LIBS} | ||
57 | |||
58 | cycles: cycles.o | ||
59 | ${CC} ${CFLAGS} -o cycles cycles.o | ||
60 | |||
61 | liblitmus.a: ${LIB_OBJ} litmus.h | ||
62 | ${AR} rcs liblitmus.a ${LIB_OBJ} | ||
63 | |||
64 | check: | ||
65 | sparse ${CFLAGS} src/*.c bin/*.c | ||