69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
# base/src/gdd/Makefile.Host
|
|
#
|
|
|
|
TOP= ../../..
|
|
include $(TOP)/config/CONFIG_BASE
|
|
|
|
#OPTIM_YES=-g
|
|
|
|
INC += gdd.h
|
|
INC += gddNewDel.h
|
|
INC += gddUtils.h
|
|
INC += gddErrorCodes.h
|
|
INC += aitTypes.h
|
|
INC += aitConvert.h
|
|
INC += aitHelpers.h
|
|
INC += dbMapper.h
|
|
INC += gddAppTable.h
|
|
INC += gddAppFuncTable.h
|
|
INC += gddAppFuncTable.cc
|
|
INC += gddApps.h
|
|
|
|
LIBSRCS := gdd.cc gddTest.cc gddAppTable.cc gddNewDel.cc \
|
|
gddAppDefs.cc aitTypes.c aitConvert.cc aitHelpers.cc dbMapper.cc
|
|
|
|
LIBRARY := gdd
|
|
|
|
# build locally:
|
|
TESTPROD:=genApps
|
|
TESTPROD_SRCS:=genApps.cc gdd.cc gddTest.cc gddAppTable.cc\
|
|
gddNewDel.cc gddAppDefs.cc \
|
|
aitTypes.cc aitConvert.cc aitHelpers.cc
|
|
|
|
include $(TOP)/config/RULES.Host
|
|
|
|
# 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.cc: ../gdd.h ../gddAppTable.h ../dbMapper.h\
|
|
./gddApps.h ../aitTypes.h
|
|
|
|
# Rules for generated files
|
|
#
|
|
aitConvertGenerated.cc: aitGen$(EXE) ../aitTypes.h
|
|
./aitGen$(EXE)
|
|
|
|
./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) $^ $(LDLIBS)
|
|
|
|
clean::
|
|
$(RM) aitConvertGenerated.cc aitGen$(EXE) genApps$(EXE)
|
|
|
|
# EOF base/src/gdd/Makefile.Host
|