# # Makefile for RDA client examples # SHELL = /bin/sh USR_LOCAL = /ps/local/Linux RDA_HOME = ../../.. include $(RDA_HOME)/cpp/mk/common.mk # C++ compiler and flags CXX = /usr/bin/g++ CXXFLAGS = -I$(USR_LOCAL)/include # The rule to compile .cpp files #%.o: %.cpp # @rm -f $@ # @echo "=> compiling $<" # @$(CXX) -c $(CXXFLAGS) -o $@ $< # Libraries #LIBS = -L$(USR_LOCAL)/lib \ # -static -lrda -lOBEServer -lJTC -lpthread # Canned command sequence used to make executables #define MAKE_EXEC #@rm -f $@ #@echo "=> linking $@" #@$(CXX) $^ $(LIBS) -o $@ #endef EXAMPLES = getSync getAsync monitor subscription all : $(EXAMPLES) getSync : GetSync.o $(MAKE_EXEC) getAsync : GetAsync.o $(MAKE_EXEC) subscription : Subscription.o $(MAKE_EXEC) monitor : Monitor.o $(MAKE_EXEC) clean : @echo "=> removing object files" @rm -f *.o core clobber : clean @echo "=> removing binaries" @rm -f $(EXAMPLES)