From cf0b2fa26f783d65eb9e8dec37997b01849e19d4 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 19 Jan 2019 21:41:49 -0500 Subject: [PATCH] clean up makefile a little bit, add ifconfig. --- GNUmakefile | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 613ffa0..39c3015 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -2,31 +2,46 @@ .PHONY: all -all: tcpsnooper.cda netstat +all: tcpsnooper.cda netstat ifconfig + +.PHONY: clean + +clean: + rm -rf o tcpsnooper.cda : o/snooper.a - iix -DKeepType=cda link o/snooper keep=tcpsnooper.cda + iix -DKeepType=cda link $(^:.a=) keep=$@ netstat : o/netstat.a - iix link o/netstat keep=netstat + iix link $(^:.a=) keep=$@ + +ifconfig : o/ifconfig.a + iix link $(^:.a=) keep=$@ o: mkdir o +o/%.a : %.c | o + iix compile $< keep=o/$* -o/snooper.a : snooper.c | o - iix compile snooper.c keep=o/snooper +o/%.a : %.asm | o + iix compile $< keep=o/$* + + +# o/snooper.a : snooper.c | o +# iix compile snooper.c keep=o/snooper + +# o/netstat.a : netstat.c | o +# iix compile netstat.c keep=o/netstat -o/netstat.a : netstat.c | o - iix compile netstat.c keep=o/netstat # no longer used. cda.mac: cda.asm iix macgen cda.asm cda.mac 13:ainclude:m16.= 13:orcainclude:m16.= -o/cda.a : cda.asm | cda.mac o - iix compile cda.asm keep=o/cda +# o/cda.a : cda.asm | cda.mac o +# iix compile cda.asm keep=o/cda -o/debug.a : debug.c ur.c | o - iix compile debug.c keep=o/debug \ No newline at end of file +# o/debug.a : debug.c ur.c | o +# iix compile debug.c keep=o/debug