Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages | Examples

makeserver

The makefile to build the device server example on PS Linux systems.
#
# 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)

RDA-2.3 documentation - 27 Jun 2007 - N.Trofimov