Subversion Repositories shark

Rev

Rev 1086 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1085 pj 1
#
2
#
3
#
4
 
5
ifndef BASE
6
BASE=../../..
7
endif
8
include $(BASE)/config/config.mk
9
 
10
PROGS= simple hello hello1 hello2 test0 treef1 treec1 treec2
11
OBJS=common.o
12
 
13
include $(BASE)/config/example.mk
14
 
15
simple:
16
	make -f $(SUBMAKE) APP=simple INIT=initfs.o OTHEROBJS=
17
hello:
18
	make -f $(SUBMAKE) APP=hello INIT=initfs.o OTHEROBJS=
19
hello1:
20
	make -f $(SUBMAKE) APP=hello1 INIT=initfs.o OTHEROBJS=common.o
21
hello2:
22
	make -f $(SUBMAKE) APP=hello2 INIT=initfs.o OTHEROBJS=common.o
23
test0:
24
	make -f $(SUBMAKE) APP=test0 INIT=initfs.o OTHEROBJS=common.o
25
treef1:
26
	make -f $(SUBMAKE) APP=treef1 INIT=initfs.o OTHEROBJS=common.o
27
treec1:
28
	make -f $(SUBMAKE) APP=treec1 INIT=initfs.o OTHEROBJS=common.o
29
treec2:
30
	make -f $(SUBMAKE) APP=treec2 INIT=initfs.o OTHEROBJS=common.o
31
 
32
#
33
#
34
#
35
 
36
 
37
.PHONY: util
38
 
39
util: tdump.exe jdump.exe sa.exe road.exe wait.exe
40
 
41
tdump.exe: tdump.c util.c
42
	gcc -s -Wimplicit-function-declaration -Wall \
43
	-I$(BASE)/include/trace tdump.c util.c -o tdump.exe
44
 
45
jdump.exe: jdump.c util.c
46
	gcc -s -Wimplicit-function-declaration -Wall \
47
	-I$(BASE)/include/trace jdump.c util.c -o jdump.exe
48
 
49
sa.exe: sa.c util.c distr.c
50
	gcc -s -Wimplicit-function-declaration -Wall \
51
	-I$(BASE)/include/trace sa.c util.c -o sa.exe
52
 
53
road.exe: road.c util.c distr.c
54
	gcc -s -Wimplicit-function-declaration -Wall \
55
	-I$(BASE)/include/trace road.c util.c -o road.exe
56
 
57
wait.exe: wait.c util.c distr.c
58
	gcc -s -Wimplicit-function-declaration -Wall \
59
	-I$(BASE)/include/trace wait.c util.c -o wait.exe
60
 
61
 
62
 
63
#include $(BASE)/config/example.mk
64
 
65
 
66
 
67
 
68
 
69