From: billyfish <bil...@us...> - 2005-03-10 01:22:30
|
Update of /cvsroot/cml/cmlpp/builds/windows/gcc/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14954/builds/windows/gcc/util Added Files: makefile Log Message: initial import of cmlpp. This architecture supersedes the one on wwmm and is started to be modelled on the heirarchy used in the java code --- NEW FILE: makefile --- # CMLPP MAKEFILE # # VERSION: 0.2 (05/01/04) # # AUTHOR: Billy DIR_OBJ_UTIL = . MAJOR_VERSION = 0 MINOR_VERSION = 1 VPATH = $(DIR_SRC_UTIL) CPPFLAGS = -Wall $(FLAGS) -I$(DIR_SRC_DOM) -I$(DIR_SRC_UTIL) -I$(DIR_SRC_SCHEMA) -I$(DIR_SRC_TOOLS) SRCS = conversions.cpp domutil.cpp hashtable.cpp OBJS := $(SRCS:%.cpp=$(BUILD)/%.o) DEPS := $(SRCS:%.cpp=$(BUILD)/%.d) .PHONY: dynamic dynamic: $(BUILD)/$(UTIL_LIB_DYNAMIC) .PHONY: static static: $(BUILD)/$(UTIL_LIB_STATIC) $(BUILD)/$(UTIL_LIB_DYNAMIC): $(OBJS) $(CXX) -frepo -shared -o $(BUILD)/$(UTIL_LIB_DYNAMIC) \ --major-image-version=$(MAJOR_VERSION) --minor-image-version=$(MINOR_VERSION) \ -Wl,--out-implib=$(BUILD)/$(UTIL_LIB_SYMBOLS) \ -Wl,--export-all-symbols \ -Wl,--enable-auto-import \ -Wl,--whole-archive $(OBJS) \ -Wl,--no-whole-archive ${STATIC_LIBS} \ $(LDFLAGS) $(CCFLAGS) $(BUILD)/$(UTIL_LIB_STATIC): $(DIR_OBJS)/$(OBJS) ar rc $(BUILD)/$(UTIL_LIB_STATIC) $(DIR_OBJS)/$(OBJS) ranlib $(BUILD)/$(UTIL_LIB_STATIC) .PHONY: clean clean: rm -f $(OBJS) $(DEPS) $(RPOS) $(BUILD)/$(UTIL_LIB_STATIC) $(BUILD)/$(UTIL_LIB_DYNAMIC) $(BUILD)/$(UTIL_LIB_SYMBOLS) ifeq ($(findstring $(MAKECMDGOALS), dynamic), dynamic) include $(DEPS) endif ifeq ($(findstring $(MAKECMDGOALS), static), static) include $(DEPS) endif #.PHONY: installdirs #installdirs: # mkinstalldirs debug release $(DIR_OBJ_UTIL)/$(BUILD)/%.d: $(DIR_SRC_UTIL)/%.cpp @echo 'generating' $@ set -e; $(CXX) -MM $(CPPFLAGS) $< \ | sed 's/\($*\)\.o[ :]*/${BUILD}\/\1.o $(BUILD)\/$(@F) : /g' > $@; \ [ -s $@ ] || rm -f $@ $(DIR_OBJ_UTIL)/$(BUILD)/%.o: $(DIR_SRC_UTIL)/%.cpp $(CXX) -c $(CPPFLAGS) $(CCFLAGS) -o $@ $< |