CC=sdcc LD=sdcc #CFLAGS=-DDEBUG all: red.hex reg51.h: reg51sdcc.h netdev.h: types.h etherdev.h: types.h reg51.h netdev.h etherdev.rel: etherdev.c etherdev.h $(CC) $(CFLAGS) -c etherdev.c main.rel: main.c etherdev.h $(CC) $(CFLAGS) -c main.c red.hex: main.rel etherdev.rel $(LD) $(LDFLAGS) -o red.hex main.rel etherdev.rel clean: @rm -vf red.hex *.rel *.asm *.lst *.map *.lnk *.mem *.sym .PHONY: clean