update makefiles

This commit is contained in:
Kelvin Sherlock 2019-01-17 00:14:47 -05:00
parent 156ed0030a
commit 35f2326f3c
3 changed files with 17 additions and 16 deletions

View File

@ -2,10 +2,10 @@
.PHONY: all .PHONY: all
all: tcpsnooper netstat all: tcpsnooper.cda netstat
tcpsnooper : o/cda.a o/nscda.a o/debug.a tcpsnooper.cda : o/snooper.a
iix -DKeepType=cda link o/cda o/nscda o/debug keep=tcpsnooper iix -DKeepType=cda link o/snooper keep=tcpsnooper.cda
netstat : o/netstat.a netstat : o/netstat.a
iix link o/netstat keep=netstat iix link o/netstat keep=netstat
@ -13,18 +13,20 @@ netstat : o/netstat.a
o: o:
mkdir o mkdir o
cda.mac: cda.asm
iix macgen cda.asm cda.mac 13:ainclude:m16.= 13:orcainclude:m16.=
o/snooper.a : snooper.c | o
o/cda.a : cda.asm | cda.mac o iix compile snooper.c keep=o/snooper
iix compile cda.asm keep=o/cda
o/nscda.a : nscda.c | o
iix compile nscda.c keep=o/nscda
o/netstat.a : netstat.c | o o/netstat.a : netstat.c | o
iix compile netstat.c keep=o/netstat 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/debug.a : debug.c ur.c | o o/debug.a : debug.c ur.c | o
iix compile debug.c keep=o/debug iix compile debug.c keep=o/debug

View File

@ -31,17 +31,16 @@
# Kelvin's modified Orca C library includes an implementation of fdprintf() # Kelvin's modified Orca C library includes an implementation of fdprintf()
CFLAGS += $(DEFINES) -v #-O CFLAGS += $(DEFINES) -v #-O
LDLIBS += -l liborca
netstat: netstat.o netstat: netstat.o
$(CC) $(LDFLAGS) netstat.o $(LDLIBS) -o $@ $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
tcpsnooper.cda: cda.o nscda.o debug.o tcpsnooper.cda: snooper.o
$(CC) $(LDFLAGS) cda.o nscda.o debug.o $(LDLIBS) -o $@ $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
chtyp -t cda $@ chtyp -t cda $@
clean: clean:
$(RM) *.o *.root *.r $(RM) *.o *.root *.r
clobber: clean clobber: clean
$(RM) -f netstat netstat.cda $(RM) -f netstat tcpsnooper

View File