Files
Steve Karg 902949a192 update LwIP BACnet/IP abstraction (#246)
* update LwIP BACnet/IP abstraction. Integrate LwIP build with continuous integration.

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
2022-03-29 17:47:44 -05:00

36 lines
520 B
Makefile

# Makefile to build BACnet/IP LwIP library
# Executable file name
TARGET = bip-lwip
SRC = bip.c
BACNET_DIR = ../../src
LWIP_DIR = /usr/include/lwip
CFLAGS += -I$(LWIP_DIR) -I$(BACNET_DIR)
OBJS += ${SRC:.c=.o}
all: Makefile $(TARGET)
lib: $(TARGET)
$(TARGET): $(OBJS) Makefile
${AR} rcs $@ $(OBJS)
.c.o:
${CC} -c ${CFLAGS} $*.c -o $@
.PHONY: depend
depend:
rm -f .depend
${CC} -MM ${CFLAGS} *.c >> .depend
.PHONY: clean
clean:
-rm -f core ${TARGET} ${OBJS} $(TARGET).map
.PHONY: include
include: .depend