RSS Git Download  Clone
Raw Blame History
################################################################################
#	Makefile
#		T.Barnaby,	BEAM Ltd,	2007-02-07
################################################################################
#

TOP	= ..

include $(TOP)/Makefile.config

LDLIBS	:= -lTms -lBDebug ${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}
	mkdir -p ${SYSETCDIR}/rc.d/init.d
	cp tmsServer.rc ${SYSETCDIR}/rc.d/init.d/tmsServer

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