# Compilador
CC=sdcc
-CFLAGS=-DDEBUG
+#CFLAGS=-DDEBUG
# Assembler
AS=asx8051
SHELL=bash
# Archivos
-cmodules=main dp8390 eth ip udp elp
+cmodules=main dp8390 eth arp ip udp elp
amodules=leds
modules=$(cmodules) $(amodules)
ip.h: types.h
+arp.h: types.h eth.h ip.h
+
udp.h: types.h
elp.h: types.h
eth.asm: eth.c eth.h netdev.h debug.h
eth.rel: eth.asm
+arp.asm: arp.c arp.h netdev.h debug.h
+arp.rel: arp.asm
+
ip.asm: ip.c ip.h netdev.h debug.h
ip.rel: ip.asm
clean:
- @rm -vf el.hex *.rel $(addsuffix .asm, $(cmodules)) *.lst *.map *.lnk *.mem *.sym
+ @rm -vf el.hex *.rel $(addsuffix .asm, $(cmodules)) *.lst *.map *.lnk *.mem *.sym *.rst
.PHONY: clean