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

40 lines
1.1 KiB
Makefile

.SUFFIXES: .cc .obj
APPNAME = "CDEV Gateway Service"
ARCH = WINNT-4.0
SHOBJ = YES
BINARIES = $(CDEVLIB)\GatewayService.lib \
$(CDEVLIB)\GatewayService.dll
include ..\..\..\extensions\cdevGenericServer\include\makeinclude\Makefile.WINNT-4.0
CXXINCLUDES = /I .\\
CXXEXTRA_DLL = /D "GATEWAY_SERVICE_API=__declspec(dllexport)"
CXXEXTRA_LIB = /D "GATEWAY_SERVICE_API="
!IF "$(SHOBJ)" == "YES"
TARGETS = $(CDEVLIB)\GatewayService.dll
!ELSE
TARGETS = $(CDEVLIB)\GatewayService.lib
!ENDIF
targets : $(TARGETS)
$(CDEVLIB)\GatewayService.dll : $(OBJDIR)\GatewayService.obj
@echo ^ ^ ^ =^> Linking $(@F)
-@if exist $@ erase $@
-@if not exist $(@D) mkdir $(@D)
@$(LIB32) $(CDEVLIB)\cdev.lib $(CDEVLIB)\cdevGenericServer.lib\
$(LINK_DLL_FLAGS) /out:$@ /implib:$(@D)\$(@B).lib $?
-@copy $@ $(CDEVSHOBJ)\$(CDEVVERSION)\$(@F) > nul
@echo ^ ^ ^ ^ ^ ^ Done...
$(CDEVLIB)\GatewayService.lib : $(OBJDIR)\GatewayService.obj
@echo ^ ^ ^ =^> Linking $(@F)
-@if exist $@ erase $@
-@if not exist $(@D) mkdir $(@D)
@$(LIB32) $(CDEVLIB)\cdev.lib $(CDEVLIB)\cdevGenericServer.lib\
$(LINK_LIB_FLAGS) /out:$@ $?
@echo ^ ^ ^ ^ ^ ^ Done...