################################################################################ # Makefile # T.Barnaby, BEAM Ltd, 2007-02-07 ################################################################################ # TOP = .. include $(TOP)/Makefile.config LDLIBS := -lTms ${LDLIBS} LDFLAGS += -rdynamic PROGS = tmsServer OBJS = Config.o Debug.o TmsApi.o OBJS += DataAcquire.o PuServer.o OBJS += Control.o main.o DEBUGFLAGS = -g -O2 -DDEBUG #DEBUGFLAGS = -O2 -DDEBUG # General all: ${PROGS} install: all mkdir -p ${BINDIR} cp ${PROGS} ${BINDIR} mkdir -p ${SYSETCDIR} cp tmsServer.conf ${SYSETCDIR}/tmsServer1.conf #mkdir -p ${SYSETCDIR}/rc.d/init.d #cp tmsServer.rc ${SYSETCDIR}/rc.d/init.d/tmsServer mkdir -p ${SYSSYSTEMD}/system cp tmsServer@.service ${SYSSYSTEMD}/system depend: makedepend -fMakefile.depend -Y -I. *.cpp 2> /dev/null clean: rm -f *.o *.a *.so $(PROGS) tmsServer: ${OBJS} $(CXX) $(LDFLAGS) -o $@ $^ $(OBJSGUI) $(OBJSUIC) $(LDLIBS) t: t.o SigGen.o include Makefile.depend