Rev 1655 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#
# util -> compiles the tracer utilities under MSDOS/DJGPP
# util_linux -> compiles the tracer utilities under Linux
#
ifndef BASE
BASE=../../..
endif
.PHONY: util_dos util_linux clean
all:
@echo Targets: util_dos util_linux clean
@echo Note: udpdump is available only under linux
util_dos: tdump.exe jdump.exe sa.exe road.exe wait.exe
tdump.exe: tdump.c util.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace tdump.c util.c -o tdump.exe
jdump.exe: jdump.c util.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace jdump.c util.c -o jdump.exe
sa.exe: sa.c util.c distr.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace sa.c util.c -o sa.exe
road.exe: road.c util.c distr.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace road.c util.c -o road.exe
wait.exe: wait.c util.c distr.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace wait.c util.c -o wait.exe
util_linux: jdump tdump sa road wait udpdump
jdump: jdump.c util.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace -I$(BASE)/oslib jdump.c util.c -o jdump
tdump: tdump.c util.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace -I$(BASE)/oslib tdump.c util.c -o tdump
sa: sa.c util.c distr.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace -I$(BASE)/oslib sa.c util.c -o sa
road: road.c util.c distr.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace -I$(BASE)/oslib road.c util.c -o road
wait: wait.c util.c distr.c
gcc -s -Wimplicit-function-declaration -Wall \
-I$(BASE)/include/trace -I$(BASE)/oslib wait.c util.c -o wait
udpdump: udpdump.c util.c
gcc -Wimplicit-function-declaration -Wall -ggdb\
-I$(BASE)/include/trace -I$(BASE)/oslib udpdump.c util.c -o udpdump
clean:
rm -rf *.o jdump tdump sa road wait tdump.exe jdump.exe sa.exe road.exe wait.exe