#17 add APRS lib, move scokets to base common

pull/32/head
Geoffrey Merck 4 years ago
parent 1a20ce5443
commit af4cd2819f

@ -0,0 +1,12 @@
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
APRS.a: $(OBJS)
$(AR) rcs APRS.a $(OBJS)
%.o : %.cpp
$(CC) -I../BaseCommon $(CPPFLAGS) -MMD -MD -c $< -o $@
clean:
$(RM) *.o *.d APRS.a

@ -45,15 +45,18 @@ DEPS = $(SRCS:.cpp=.d)
.PHONY: all
all: dstargateway
dstargateway : GitVersion.h $(OBJS) BaseCommon/BaseCommon.a
$(CC) $(CPPFLAGS) -o dstargateway $(OBJS) BaseCommon/BaseCommon.a $(LDFLAGS)
dstargateway : GitVersion.h $(OBJS) APRS/APRS.a BaseCommon/BaseCommon.a
$(CC) $(CPPFLAGS) -o dstargateway $(OBJS) APRS/APRS.a BaseCommon/BaseCommon.a $(LDFLAGS)
%.o : %.cpp
$(CC) -IBaseCommon/ $(CPPFLAGS) -MMD -MD -c $< -o $@
$(CC) -IAPRS/ -IBaseCommon/ $(CPPFLAGS) -MMD -MD -c $< -o $@
BaseCommon/BaseCommon.a: FORCE
$(MAKE) -C BaseCommon
APRS/APRS.a: BaseCommon/BaseCommon.a FORCE
$(MAKE) -C APRS
GitVersion.h : FORCE
ifneq ("$(wildcard .git/index)","")
@echo "#pragma once" > /tmp/$@
@ -76,6 +79,7 @@ endif
clean:
$(RM) GitVersion.h *.o *.d dstargateway
$(MAKE) -C Tests clean
$(MAKE) -C APRS clean
$(MAKE) -C BaseCommon clean
-include $(DEPS)

Loading…
Cancel
Save

Powered by TurnKey Linux.