diff --git a/lwip/src/core/Makefile b/lwip/src/core/Makefile new file mode 100644 index 00000000..a6d046e6 --- /dev/null +++ b/lwip/src/core/Makefile @@ -0,0 +1,25 @@ +C_source = init.c mem.c memp.c netif.c pbuf.c stats.c udp.c tcp.c + +OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) + +# other implicit rules +%.o : %.c + $(CC) -c $(CFLAGS) -o $@ $< + +default: + $(MAKE) all + +all: + $(MAKE) $(LIBLWIP) + +$(LIBLWIP): $(OBJS) + $(AR) $(ARFLAGS) $(LIBLWIP) $(OBJS) + +clean: + $(RM) *.o *~ + +depend: + $(CC) -MM $(CFLAGS) $(C_source) $(CPP_source) > Makefile.dep + +-include Makefile.dep +# DO NOT DELETE