Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1655 | giacomo | 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 | |||
12 | all: |
||
13 | @echo Targets: util_dos util_linux clean |
||
14 | @echo Note: udpdump is available only under linux |
||
15 | |||
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 | |||
39 | util_linux: jdump tdump sa road wait udpdump |
||
40 | |||
41 | jdump: jdump.c util.c |
||
42 | gcc -s -Wimplicit-function-declaration -Wall \ |
||
43 | -I$(BASE)/include/trace -I$(BASE)/oslib jdump.c util.c -o jdump |
||
44 | |||
45 | tdump: tdump.c util.c |
||
46 | gcc -s -Wimplicit-function-declaration -Wall \ |
||
47 | -I$(BASE)/include/trace -I$(BASE)/oslib tdump.c util.c -o tdump |
||
48 | |||
49 | sa: sa.c util.c distr.c |
||
50 | gcc -s -Wimplicit-function-declaration -Wall \ |
||
51 | -I$(BASE)/include/trace -I$(BASE)/oslib sa.c util.c -o sa |
||
52 | |||
53 | road: road.c util.c distr.c |
||
54 | gcc -s -Wimplicit-function-declaration -Wall \ |
||
55 | -I$(BASE)/include/trace -I$(BASE)/oslib road.c util.c -o road |
||
56 | |||
57 | wait: wait.c util.c distr.c |
||
58 | gcc -s -Wimplicit-function-declaration -Wall \ |
||
59 | -I$(BASE)/include/trace -I$(BASE)/oslib wait.c util.c -o wait |
||
60 | |||
61 | udpdump: udpdump.c util.c |
||
62 | gcc -Wimplicit-function-declaration -Wall -ggdb\ |
||
63 | -I$(BASE)/include/trace -I$(BASE)/oslib udpdump.c util.c -o udpdump |
||
64 | |||
65 | |||
66 | |||
67 | clean: |
||
68 | rm -rf *.o jdump tdump sa road wait tdump.exe jdump.exe sa.exe road.exe wait.exe |
||
69 | |||
70 |