Subversion Repositories shark

Rev

Rev 1103 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1093 pj 1
#
2
# util -> compiles the tracer utilities under MSDOS/DJGPP
3
# util_linux -> compiles the tracer utilities under Linux
4
#
5
 
6
ifndef BASE
7
BASE=../../..
8
endif
9
 
10
.PHONY: util_dos util_linux clean
11
 
1095 pj 12
all:
13
	@echo Targets: util_dos util_linux clean
1096 pj 14
	@echo Note: udpdump is available only under linux
1095 pj 15
 
1093 pj 16
util_dos: tdump.exe jdump.exe sa.exe road.exe wait.exe
17
 
18
tdump.exe: tdump.c util.c
19
	gcc -s -Wimplicit-function-declaration -Wall \
20
	-I$(BASE)/include/trace tdump.c util.c -o tdump.exe
21
 
22
jdump.exe: jdump.c util.c
23
	gcc -s -Wimplicit-function-declaration -Wall \
24
	-I$(BASE)/include/trace jdump.c util.c -o jdump.exe
25
 
26
sa.exe: sa.c util.c distr.c
27
	gcc -s -Wimplicit-function-declaration -Wall \
28
	-I$(BASE)/include/trace sa.c util.c -o sa.exe
29
 
30
road.exe: road.c util.c distr.c
31
	gcc -s -Wimplicit-function-declaration -Wall \
32
	-I$(BASE)/include/trace road.c util.c -o road.exe
33
 
34
wait.exe: wait.c util.c distr.c
35
	gcc -s -Wimplicit-function-declaration -Wall \
36
	-I$(BASE)/include/trace wait.c util.c -o wait.exe
37
 
38
 
1103 pj 39
util_linux: jdump tdump sa road wait udpdump
1093 pj 40
 
41
jdump: jdump.c util.c
42
	gcc -s -Wimplicit-function-declaration -Wall \
1179 giacomo 43
	-I$(BASE)/include/trace -I$(BASE)/oslib jdump.c util.c -o jdump
1093 pj 44
 
45
tdump: tdump.c util.c
46
	gcc -s -Wimplicit-function-declaration -Wall \
1179 giacomo 47
	-I$(BASE)/include/trace -I$(BASE)/oslib tdump.c util.c -o tdump
1093 pj 48
 
49
sa: sa.c util.c distr.c
50
	gcc -s -Wimplicit-function-declaration -Wall \
1179 giacomo 51
	-I$(BASE)/include/trace -I$(BASE)/oslib sa.c util.c -o sa
1093 pj 52
 
53
road: road.c util.c distr.c
54
	gcc -s -Wimplicit-function-declaration -Wall \
1179 giacomo 55
	-I$(BASE)/include/trace -I$(BASE)/oslib road.c util.c -o road
1093 pj 56
 
57
wait: wait.c util.c distr.c
58
	gcc -s -Wimplicit-function-declaration -Wall \
1179 giacomo 59
	-I$(BASE)/include/trace -I$(BASE)/oslib wait.c util.c -o wait
1093 pj 60
 
1096 pj 61
udpdump: udpdump.c util.c
62
	gcc -Wimplicit-function-declaration -Wall -ggdb\
1179 giacomo 63
	-I$(BASE)/include/trace -I$(BASE)/oslib udpdump.c util.c -o udpdump
1093 pj 64
 
1095 pj 65
 
66
 
1093 pj 67
clean:
68
	rm -rf *.o jdump tdump sa road wait tdump.exe jdump.exe sa.exe road.exe wait.exe
69
 
70