# # Makefile for the RDA server example # # Where the RDA and CORBA libraries are installed USR_LOCAL = /ps/local/Linux # 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 $@ $< # Link with the RDA, CORBA and support 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 = deviceServer client all : $(EXAMPLES) deviceServer : DeviceServer.o $(MAKE_EXEC) client : Client.o $(MAKE_EXEC) clean : @echo "=> removing object files" @rm -f *.o core clobber : clean @echo "=> removing binaries" @rm -f $(EXAMPLES)