SRCS=getopt.cpp # Platform PLATFORM=$(shell arch) PROG=getopt # POSIX Library Version POSIX_VER = 0.2 # Include directories INCLUDE = -I. -I.. # c++ complier CXX = g++ # C++ compiler options CXXFLAGS = -Wall # Preprocessor options CPPFLAGS = # IDL compiler flags TAO_IDLFLAGS += -Ge 0 -Sc ifeq ($(DEBUG),y) CPPFLAGS += -DDEBUG endif # c compiler flags CFLAGS = -Wall AR = ar # libraries to link. Each preceeded by -l # path information is preceded by -L LIBS = # linked flags LDFLAGS = -static #------------------------------------------------# # Do Not modify below this point # #________________________________________________# # create object names BNAMES = $(basename $(SRCS)) OBJECTS = $(addsuffix .o, $(BNAMES)) CXXFLAGS += $(INCLUDE) # make file parameters MAKEFLAGS = -k .PHONY: all clean distclean depend idl all: $(PROG) # compile voice-application $(PROG): $(OBJECTS) $(CXX) -o $(PROG) $(OBJECTS) $(LDFLAGS) $(LIBS) # clean clean: rm -f $(OBJECTS) $(PROG) core # clean for distribution release distclean: rm -f $(OBJECTS) $(PROG) core *~ $(INAMES) *.i # "depend" calculates the dependencies. depend: g++dep -r -f Makefile $(CPPFLAGS) $(INCLUDE) $(SRCS) # Produce a `TAGS' file for (x)emacs to use for browsing the source code. TAGS: $(SRCS) etags -o TAGS --typedefs-and-c++ $(SRCS) # DO NOT DELETE THIS LINE -- g++dep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY