You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
661 B
24 lines
661 B
SRCS = $(wildcard *.cpp)
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
DEPS = $(SRCS:.cpp=.d)
|
|
|
|
dgwtexttransmit: ../VersionInfo/GitVersion.h $(OBJS) ../DStarBase/DStarBase.a ../BaseCommon/BaseCommon.a
|
|
$(CC) $(CPPFLAGS) -o dgwtexttransmit $(OBJS) ../DStarBase/DStarBase.a ../BaseCommon/BaseCommon.a $(LDFLAGS)
|
|
|
|
%.o : %.cpp
|
|
$(CC) -I../BaseCommon -I../DStarBase -I../VersionInfo -DCFG_DIR='"$(CFG_DIR)"' $(CPPFLAGS) -MMD -MD -c $< -o $@
|
|
-include $(DEPS)
|
|
|
|
.PHONY clean:
|
|
clean:
|
|
$(RM) *.o *.d dgwtexttransmit
|
|
|
|
.PHONY install:
|
|
install: dgwtexttransmit
|
|
# copy executable
|
|
@cp -f dgwtexttransmit $(BIN_DIR)
|
|
|
|
../BaseCommon/BaseCommon.a:
|
|
../DStarBase/DStarBase.a:
|
|
../VersionInfo/GitVersion.h:
|