Cleanup Makefile

This commit is contained in:
feelfree69
2026-03-10 21:57:16 +01:00
parent 0a52386e60
commit fc4b12725c
3 changed files with 11 additions and 68 deletions
-26
View File
@@ -1,26 +0,0 @@
CC = sdcc
CC_FLAGS = -mmcs51 -I. -I.. -I../httpd
ASM = sdas8051
AFLAGS= -plosgff
BUILDDIR = output/
SRCS = timer.c uip_arp.c uip.c uip-fw.c uiplib.c uip-neighbor.c uip-split.c
OBJS = ${SRCS:%.c=$(BUILDDIR)%.rel}
all: create_build_dir $(OBJS)
create_build_dir:
mkdir -p $(BUILDDIR)
$(BUILDDIR)%.rel: %.c
$(CC) $(CC_FLAGS) -o $@ -c $<
$(BUILDDIR)%.rel: $(BUILDDIR)%.asm
${ASM} ${AFLAGS} $^
clean:
rm -r $(BUILDDIR)
.PHONY: all clean