Converted to single Makefile build method.
This commit is contained in:
@@ -1,8 +1,67 @@
|
||||
|
||||
TOP=../../..
|
||||
TOP := ../../..
|
||||
CAS := $(TOP)/src/cas
|
||||
SRC := $(CAS)/generic
|
||||
CA := $(CAS)/../ca
|
||||
IOSRC := $(CAS)/io/bsdSocket
|
||||
STSRC := $(SRC)/st
|
||||
USER_VPATH := $(SRC) $(STSRC) $(IOSRC)
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
include $(TOP)/configure/RULES_ARCHS
|
||||
CXXCMPLR = STRICT
|
||||
|
||||
# sometimes it's good to have different C/C++ flags, not now:
|
||||
USR_CFLAGS = -I$(SRC) -I$(IOSRC) -I$(STSRC) -I$(CA) -DcaNetAddrSock
|
||||
USR_CXXFLAGS = $(USR_CFLAGS)
|
||||
|
||||
LIBSRCS += caServer.cc
|
||||
LIBSRCS += caServerI.cc
|
||||
LIBSRCS += casCoreClient.cc
|
||||
LIBSRCS += casClient.cc
|
||||
LIBSRCS += casDGClient.cc
|
||||
LIBSRCS += casStrmClient.cc
|
||||
LIBSRCS += casPV.cc
|
||||
LIBSRCS += casPVI.cc
|
||||
LIBSRCS += casChannel.cc
|
||||
LIBSRCS += casChannelI.cc
|
||||
LIBSRCS += casPVListChan.cc
|
||||
LIBSRCS += casClientMon.cc
|
||||
LIBSRCS += casChanDelEv.cc
|
||||
LIBSRCS += casAsyncIOI.cc
|
||||
LIBSRCS += casAsyncReadIO.cc
|
||||
LIBSRCS += casAsyncWriteIO.cc
|
||||
LIBSRCS += casAsyncPVExistIO.cc
|
||||
LIBSRCS += casAsyncPVAttachIO.cc
|
||||
LIBSRCS += casEventSys.cc
|
||||
LIBSRCS += casMonitor.cc
|
||||
LIBSRCS += casMonEvent.cc
|
||||
LIBSRCS += inBuf.cc
|
||||
LIBSRCS += outBuf.cc
|
||||
LIBSRCS += dgInBuf.cc
|
||||
LIBSRCS += casCtx.cc
|
||||
LIBSRCS += casEventMask.cc
|
||||
LIBSRCS += ioBlocked.cc
|
||||
#LIBSRCS += casMsgIO.cc
|
||||
|
||||
LIBSRCS += caServerOS.cc
|
||||
LIBSRCS += casIntfOS.cc
|
||||
LIBSRCS += casDGIntfOS.cc
|
||||
LIBSRCS += casDGOS.cc
|
||||
LIBSRCS += casStreamOS.cc
|
||||
|
||||
LIBSRCS += caServerIO.cc
|
||||
LIBSRCS += casIntfIO.cc
|
||||
LIBSRCS += casDGIntfIO.cc
|
||||
LIBSRCS += casDGIO.cc
|
||||
LIBSRCS += casStreamIO.cc
|
||||
|
||||
LIBRARY = cas
|
||||
|
||||
PROD_LIBS := cas ca gdd Com
|
||||
SYS_PROD_LIBS_WIN32 := ws2_32
|
||||
|
||||
include $(TOP)/configure/RULES
|
||||
|
||||
clean::
|
||||
@$(RM) -rf Templates.DB
|
||||
|
||||
|
||||
@@ -3,4 +3,32 @@ TOP=../../../..
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
include $(TOP)/configure/RULES_ARCHS
|
||||
CXXCMPLR = STRICT
|
||||
|
||||
PROD_LIBS := cas ca gdd Com
|
||||
cas_DIR = $(INSTALL_LIB)
|
||||
ca_DIR = $(INSTALL_LIB)
|
||||
gdd_DIR = $(INSTALL_LIB)
|
||||
Com_DIR = $(INSTALL_LIB)
|
||||
|
||||
#
|
||||
# Added winmm user32 for the non-dll build
|
||||
#
|
||||
SYS_PROD_LIBS_WIN32 := ws2_32 advapi32 user32
|
||||
|
||||
SRCS += main.cc
|
||||
SRCS += directoryServer.cc
|
||||
|
||||
PROD = caDirServ
|
||||
|
||||
include $(TOP)/configure/RULES
|
||||
|
||||
pcaDirServ: $(PROD_OBJS) $(PRODDEPLIBS)
|
||||
$(PURIFY) $(PROD_LINKER) $(PROD_OBJS) $(LDLIBS)
|
||||
|
||||
clean::
|
||||
@$(RM) caDirServ
|
||||
@$(RM) pcaDirServ
|
||||
@$(RM) -rf Templates.DB
|
||||
@$(RM) core
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
|
||||
TOP=../../../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
CXXCMPLR = STRICT
|
||||
|
||||
PROD_LIBS := cas ca gdd Com
|
||||
cas_DIR = $(INSTALL_LIB)
|
||||
ca_DIR = $(INSTALL_LIB)
|
||||
gdd_DIR = $(INSTALL_LIB)
|
||||
Com_DIR = $(INSTALL_LIB)
|
||||
|
||||
#
|
||||
# Added winmm user32 for the non-dll build
|
||||
#
|
||||
SYS_PROD_LIBS_WIN32 := ws2_32 advapi32 user32
|
||||
|
||||
SRCS += main.cc
|
||||
SRCS += directoryServer.cc
|
||||
|
||||
PROD = caDirServ
|
||||
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
|
||||
pcaDirServ: $(PROD_OBJS) $(PRODDEPLIBS)
|
||||
$(PURIFY) $(PROD_LINKER) $(PROD_OBJS) $(LDLIBS)
|
||||
|
||||
clean::
|
||||
@$(RM) caDirServ
|
||||
@$(RM) pcaDirServ
|
||||
@$(RM) -rf Templates.DB
|
||||
@$(RM) core
|
||||
|
||||
@@ -3,5 +3,29 @@ TOP=../../../..
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
include $(TOP)/configure/RULES_ARCHS
|
||||
CXXCMPLR = STRICT
|
||||
|
||||
PROD_LIBS := cas ca gdd Com
|
||||
cas_DIR = $(INSTALL_LIB)
|
||||
ca_DIR = $(INSTALL_LIB)
|
||||
gdd_DIR = $(INSTALL_LIB)
|
||||
Com_DIR = $(INSTALL_LIB)
|
||||
|
||||
#
|
||||
# Added ws2_32 winmm user32 for the non-dll build
|
||||
#
|
||||
SYS_PROD_LIBS_WIN32 := ws2_32 advapi32 user32
|
||||
|
||||
SRCS += main.cc
|
||||
SRCS += exServer.cc
|
||||
SRCS += exPV.cc
|
||||
SRCS += exVectorPV.cc
|
||||
SRCS += exScalarPV.cc
|
||||
SRCS += exAsyncPV.cc
|
||||
SRCS += exChannel.cc
|
||||
|
||||
PROD = excas
|
||||
|
||||
include $(TOP)/configure/RULES
|
||||
|
||||
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
|
||||
TOP=../../../..
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
CXXCMPLR = STRICT
|
||||
|
||||
PROD_LIBS := cas ca gdd Com
|
||||
cas_DIR = $(INSTALL_LIB)
|
||||
ca_DIR = $(INSTALL_LIB)
|
||||
gdd_DIR = $(INSTALL_LIB)
|
||||
Com_DIR = $(INSTALL_LIB)
|
||||
|
||||
#
|
||||
# Added ws2_32 winmm user32 for the non-dll build
|
||||
#
|
||||
SYS_PROD_LIBS_WIN32 := ws2_32 advapi32 user32
|
||||
|
||||
SRCS += main.cc
|
||||
SRCS += exServer.cc
|
||||
SRCS += exPV.cc
|
||||
SRCS += exVectorPV.cc
|
||||
SRCS += exScalarPV.cc
|
||||
SRCS += exAsyncPV.cc
|
||||
SRCS += exChannel.cc
|
||||
|
||||
PROD = excas
|
||||
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
|
||||
|
||||
@@ -3,5 +3,7 @@ TOP = ../../..
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
include $(TOP)/configure/RULES_ARCHS
|
||||
INC := casdef.h casInternal.h casEventMask.h caNetAddr.h
|
||||
|
||||
include $(TOP)/configure/RULES
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
|
||||
TOP = ../../..
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
INC := casdef.h casInternal.h casEventMask.h caNetAddr.h
|
||||
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
|
||||
@@ -3,4 +3,83 @@ TOP=../..
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
include $(TOP)/configure/RULES_ARCHS
|
||||
INC += gdd.h
|
||||
INC += gddI.h
|
||||
INC += gddContainer.h
|
||||
INC += gddContainerI.h
|
||||
INC += gddArray.h
|
||||
INC += gddArrayI.h
|
||||
INC += gddScalar.h
|
||||
INC += gddScalarI.h
|
||||
INC += gddSemaphore.h
|
||||
INC += gddNewDel.h
|
||||
INC += gddUtils.h
|
||||
INC += gddUtilsI.h
|
||||
INC += gddErrorCodes.h
|
||||
INC += aitTypes.h
|
||||
INC += aitConvert.h
|
||||
INC += aitHelpers.h
|
||||
INC += dbMapper.h
|
||||
INC += gddAppTable.h
|
||||
INC += gddAppFuncTable.h
|
||||
INC += smartGDDPointer.h
|
||||
INC += gddApps.h
|
||||
|
||||
AITGENSRCS := gdd.cc gddTest.cc gddAppTable.cc gddNewDel.cc \
|
||||
gddAppDefs.cc aitTypes.c aitConvert.cc aitHelpers.cc \
|
||||
gddArray.cc gddContainer.cc gddErrorCodes.cc gddUtils.cc
|
||||
|
||||
gdd_SRCS := gdd.cc gddTest.cc gddAppTable.cc gddNewDel.cc \
|
||||
gddAppDefs.cc aitTypes.c aitConvert.cc aitHelpers.cc dbMapper.cc \
|
||||
gddArray.cc gddContainer.cc gddErrorCodes.cc gddUtils.cc \
|
||||
smartGDDPointer.cc
|
||||
|
||||
LIBRARY = gdd
|
||||
|
||||
genApps_SRCS = genApps.cc $(AITGENSRCS)
|
||||
aitGen_SRCS = aitTypes.c aitGen.c
|
||||
#TESTPROD = aitGen genApps
|
||||
|
||||
include $(TOP)/configure/RULES
|
||||
|
||||
# cannot generate these dependencies automatically
|
||||
#
|
||||
# Problem: Some dependencies are include files that may
|
||||
# not have been installed if we are building for
|
||||
# the first time
|
||||
# -> use explicit reference to the uninstalled files in '..'
|
||||
aitConvert$(OBJ): ../aitConvert.cc aitConvertGenerated.cc\
|
||||
../aitConvert.h ../aitTypes.h
|
||||
|
||||
|
||||
dbMapper.o: ../gdd.h ../gddI.h ../gddContainer.h ../gddContainerI.h \
|
||||
../gddArray.h ../gddScalar.h ../gddAppTable.h ../dbMapper.h \
|
||||
$(INSTALL_INCLUDE)/gddApps.h ../aitTypes.h ../gddUtils.h ../gddUtilsI.h
|
||||
|
||||
# Rules for generated files
|
||||
#
|
||||
aitConvertGenerated.cc: aitGen$(HOSTEXE) ../aitTypes.h
|
||||
./aitGen$(HOSTEXE)
|
||||
|
||||
gddApps.h : genApps$(EXE)
|
||||
./genApps$(EXE) $@
|
||||
|
||||
# unfortunately there is only one TESTPROD/TESTPROD_SRCS allowed
|
||||
# right now
|
||||
# (or many 'simple' progs:
|
||||
# TESTPROD:=a b c
|
||||
# where a is build from a.cc, b from b.cc, c from c.cc
|
||||
# )
|
||||
#
|
||||
# This rule, however, should be system-independent:
|
||||
aitGen$(EXE): aitGen$(OBJ) aitTypes$(OBJ)
|
||||
$(LINK.c) $^
|
||||
|
||||
genApps$(EXE): genApps$(OBJ) $(addsuffix $(OBJ), $(basename $(AITGENSRCS)))
|
||||
$(LINK.cpp) $^
|
||||
|
||||
clean::
|
||||
$(RM) aitConvertGenerated.cc aitGen$(HOSTEXE) genApps$(EXE)
|
||||
|
||||
# EOF base/src/gdd/Makefile.Host:n
|
||||
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
|
||||
TOP=../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
INC += gdd.h
|
||||
INC += gddI.h
|
||||
INC += gddContainer.h
|
||||
INC += gddContainerI.h
|
||||
INC += gddArray.h
|
||||
INC += gddArrayI.h
|
||||
INC += gddScalar.h
|
||||
INC += gddScalarI.h
|
||||
INC += gddSemaphore.h
|
||||
INC += gddNewDel.h
|
||||
INC += gddUtils.h
|
||||
INC += gddUtilsI.h
|
||||
INC += gddErrorCodes.h
|
||||
INC += aitTypes.h
|
||||
INC += aitConvert.h
|
||||
INC += aitHelpers.h
|
||||
INC += dbMapper.h
|
||||
INC += gddAppTable.h
|
||||
INC += gddAppFuncTable.h
|
||||
INC += gddApps.h
|
||||
INC += smartGDDPointer.h
|
||||
|
||||
AITGENSRCS := gdd.cc gddTest.cc gddAppTable.cc gddNewDel.cc \
|
||||
gddAppDefs.cc aitTypes.c aitConvert.cc aitHelpers.cc \
|
||||
gddArray.cc gddContainer.cc gddErrorCodes.cc gddUtils.cc
|
||||
|
||||
gdd_SRCS := gdd.cc gddTest.cc gddAppTable.cc gddNewDel.cc \
|
||||
gddAppDefs.cc aitTypes.c aitConvert.cc aitHelpers.cc dbMapper.cc \
|
||||
gddArray.cc gddContainer.cc gddErrorCodes.cc gddUtils.cc \
|
||||
smartGDDPointer.cc
|
||||
|
||||
LIBRARY = gdd
|
||||
|
||||
genApps_SRCS = genApps.cc $(AITGENSRCS)
|
||||
aitGen_SRCS = aitTypes.c aitGen.c
|
||||
#TESTPROD = aitGen genApps
|
||||
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
|
||||
# cannot generate these dependencies automatically
|
||||
#
|
||||
# Problem: Some dependencies are include files that may
|
||||
# not have been installed if we are building for
|
||||
# the first time
|
||||
# -> use explicit reference to the uninstalled files in '..'
|
||||
aitConvert$(OBJ): ../aitConvert.cc aitConvertGenerated.cc\
|
||||
../aitConvert.h ../aitTypes.h
|
||||
|
||||
|
||||
dbMapper.o: ../gdd.h ../gddI.h ../gddContainer.h ../gddContainerI.h \
|
||||
../gddArray.h ../gddScalar.h ../gddAppTable.h ../dbMapper.h \
|
||||
$(INSTALL_INCLUDE)/gddApps.h ../aitTypes.h ../gddUtils.h ../gddUtilsI.h
|
||||
|
||||
# Rules for generated files
|
||||
#
|
||||
aitConvertGenerated.cc: aitGen$(HOSTEXE) ../aitTypes.h
|
||||
./aitGen$(HOSTEXE)
|
||||
|
||||
gddApps.h : genApps$(HOSTEXE)
|
||||
./genApps$(HOSTEXE) $@
|
||||
|
||||
# unfortunately there is only one TESTPROD/TESTPROD_SRCS allowed
|
||||
# right now
|
||||
# (or many 'simple' progs:
|
||||
# TESTPROD:=a b c
|
||||
# where a is build from a.cc, b from b.cc, c from c.cc
|
||||
# )
|
||||
#
|
||||
# This rule, however, should be system-independent:
|
||||
aitGen$(HOSTEXE): aitGen$(OBJ) aitTypes$(OBJ)
|
||||
$(LINK.c) $^
|
||||
|
||||
genApps$(HOSTEXE): genApps$(OBJ) $(addsuffix $(OBJ), $(basename $(AITGENSRCS)))
|
||||
$(LINK.cc) $^
|
||||
|
||||
clean::
|
||||
$(RM) aitConvertGenerated.cc aitGen$(HOSTEXE) genApps$(HOSTEXE)
|
||||
|
||||
# EOF base/src/gdd/Makefile.Host:n
|
||||
Reference in New Issue
Block a user