################################################################################
#	Makefile
#		T.Barnaby,	BEAM Ltd,	2007-02-07
################################################################################
#
TOP	= ..
include $(TOP)/Makefile.config
LDLIBS	+= -lTms -ladmxrc2 -lpci
LDFLAGS	+= -rdynamic
PROGS	= tmsPuServer
OBJS	= Config.o Debug.o TmsPuApi.o
OBJS	+= PupeGeog.o Pupe.o PllSynth.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 tmsPuServer.conf ${SYSETCDIR}
depend:
	makedepend -fMakefile.depend -Y -I. *.cpp 2> /dev/null
clean:
	rm -f *.o *.a *.so $(PROGS)
tmsPuServer:	${OBJS}
	$(CXX) $(LDFLAGS) -o $@ $^ $(OBJSGUI) $(OBJSUIC) $(LDLIBS)
include Makefile.depend