clean up makefile a little bit, add ifconfig.

This commit is contained in:
Kelvin Sherlock 2019-01-19 21:41:49 -05:00
parent aee73c0de9
commit cf0b2fa26f

View File

@ -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
# o/debug.a : debug.c ur.c | o
# iix compile debug.c keep=o/debug