################################################################################ # Makefile for Boapns # Copyright (c) 2014 All Right Reserved, Beam Ltd, http://www.beam.ltd.uk ################################################################################ # TOP = ../.. include $(TOP)/Makefile.config export LD_LIBRARY_PATH:=$(SRCLIBDIR):${LD_LIBRARY_PATH} PROGS = boapns boapnsc OBJS = BoapnsD.o BoapnsC.o BoapnsS.o BIDL = ../bidl/bidl LDLIBS += -lpthread LD = g++ all: idl $(PROGS) install: all mkdir -p $(BINDIR) install $(PROGS) $(BINDIR) ifneq ("$(SYSSYSTEMD)", "") mkdir -p $(SYSSYSTEMD)/system ifeq ("$(PROJECT)", "TMS") install boapns-tms.service $(SYSSYSTEMD)/system else install boapns.service $(SYSSYSTEMD)/system endif else mkdir -p $(SYSETCDIR)/rc.d/init.d install boapns.rc $(SYSETCDIR)/rc.d/init.d/boapns endif includes: libs: clean: rm -f *.d *.o *.a *.mo $(PROGS) Boapns[SCDT].* bidl.i idl: $(OBJS) boapns: boapns.o $(OBJS) boapnsc: boapnsc.o $(OBJS) BoapnsD.h: Boapns.idl $(BIDL) -m bdata Boapns.idl BoapnsD.cc: Boapns.idl $(BIDL) -m bdata Boapns.idl BoapnsC.h: Boapns.idl $(BIDL) Boapns.idl BoapnsC.cc: Boapns.idl $(BIDL) Boapns.idl BoapnsS.h: Boapns.idl $(BIDL) Boapns.idl BoapnsS.cc: Boapns.idl $(BIDL) Boapns.idl