Files
2022-12-13 12:44:04 +01:00

35 lines
1.1 KiB
Makefile
Executable File

ARCH = OS
SHOBJ = YES
include $(CDEV)/extensions/cdevGenericServer/include/makeinclude/Makefile.$(ARCH)
APPNAME = "CDEV Gateway Service"
CXXINCLUDES = -I./
# ******************************************************************************
# * The BINARIES definition names all of the binary files that should be deleted
# * whenever "make clean" is executed.
# ******************************************************************************
BINARIES = $(CDEVLIB)/libGatewayService.a \
$(CDEVLIB)/GatewayService.so
ifeq ($(SHOBJ), YES)
LIBS = -L$(CDEVLIB) -lcdevGenericServer $(CDEVLIBS) $(OSLIBS)
TARGETS = $(CDEVLIB)/GatewayService.so
else
LIBS = -L$(CDEVLIB) -lcdevGenericServer $(CDEVLIBS) $(OSLIBS)
TARGETS = $(CDEVLIB)/libGatewayService.a
endif
targets : $(TARGETS)
$(CDEVLIB)/GatewayService.so : $(OBJDIR)/GatewayService.o
$(LINK.so) -o $@ $^ -L$(CDEVLIB) -lcdevGenericServer $(NETLIBS)
@mkdir -p $(CDEVSHOBJ)/$(CDEVVERSION)
@cp $@ $(CDEVSHOBJ)/$(CDEVVERSION)/$(@F)
$(CDEVLIB)/libGatewayService.a : $(OBJDIR)/GatewayService.o
$(LINK.a) $@ $^
@$(RANLIB) $@ > /dev/null