From: <ad...@us...> - 2011-04-27 10:08:21
|
Revision: 989 http://xlw.svn.sourceforge.net/xlw/?rev=989&view=rev Author: adcockj Date: 2011-04-27 10:08:15 +0000 (Wed, 27 Apr 2011) Log Message: ----------- Set correct line endings on targets file Modified Paths: -------------- Dev5/xlw/xlw/make/make.targets Property Changed: ---------------- Dev5/xlw/xlw/make/make.targets Modified: Dev5/xlw/xlw/make/make.targets =================================================================== --- Dev5/xlw/xlw/make/make.targets 2011-04-27 09:17:38 UTC (rev 988) +++ Dev5/xlw/xlw/make/make.targets 2011-04-27 10:08:15 UTC (rev 989) @@ -1,179 +1,179 @@ - -# Copyright (C) 2009 Narinder S Claire -# -# This file is part of XLW, a free-software/open-source C++ wrapper of the -# Excel C API - http://xlw.sourceforge.net/ -# -# XLW is free software: you can redistribute it and/or modify it under the -# terms of the XLW license. You should have received a copy of the -# license along with this program; if not, please email xlw...@li... -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the license for more details. - - -MAKEFILE = Makefile - - - -BUILD_TARGETS = directories install - -build :: $(BUILD_TARGETS) - -REBUILD_TARGETS = clean directories install -rebuild ::$(REBUILD_TARGETS) - - - -##################################################### -####### Section responsible for building libraries -ifdef LIBRARY - -ifndef LIBVER -LIBVER = 0.0 -endif - - -ifeq ($(LIBTYPE),SHARE) -LIBP=$(EXT_SHARE) -else -LIBP=$(EXT_STATIC) -endif - - - -ifndef INSTALL_DIR -ifeq ($(LIBTYPE),SHARE) -IDIR=$(INSTALL_DLL) -else -IDIR=$(INSTALL_LIB) -endif -else -IDIR = $(INSTALL_DIR) -endif - - - -install:: $(IDIR)/$(LIBPREFIX)$(LIBRARY).$(LIBP) - -LIBOBJ := $(LIBSRC:%.cpp=$(INSTALL_OBJ)/%.o) -OBJECTS += $(LIBSRC:%.cpp=$(INSTALL_OBJ)/%.o) -TARGET = $(IDIR)/$(LIBPREFIX)$(LIBRARY).$(LIBP) - - - -$(IDIR)/lib$(LIBRARY).a : $(LIBOBJ) - @-$(RM) $@ - ar -rs $@ $(LIBOBJ) - -#$(TARGET)::$(LIBOBJ) -# $(DLLWRAP) --output-def $(IDIR)/$(LIBPREFIX)$(LIBRARY).def \ -# --driver-name c++ \ -# --implib $(IDIR)/$(LIBPREFIX)$(LIBRARY).lib \ -# $(LIBOBJ) $(LDFLAGS) -o $@ - -$(IDIR)/$(LIBPREFIX)$(LIBRARY).%ll : $(LIBOBJ) - @-$(RM) $@ - $(CXXSO) $(CXXPIC) -o $@ \ - -Wl,"$(XLW)/xlw/include/xlw/xlw.def" \ - -Wl,-static \ - -static-libgcc \ - $(LIBOBJ)\ - $(LDFLAGS) - -#$(IDIR)/lib$(LIBRARY).so::$(LIBOBJ) -# @-$(RM) $@ -# $(CXXSO) $(CXXPIC) -o $@ $(LIBOBJ) $(LDFLAGS) $(LDFLAGS) - - -endif - - -##################################################### -####### Section responsible for Programs -ifdef PROGRAM - - -ifndef INSTALL_DIR -IDIR=$(INSTALL_BIN) -else -IDIR=$(INSTALL_DIR) -endif - -install:: $(IDIR)/$(PROGRAM).$(EXT_BIN) - - -CXXPIC := - - -PRGOBJ := $(PRGSRC:%.cpp=$(INSTALL_OBJ)/%.o) -OBJECTS += $(PRGSRC:%.cpp=$(INSTALL_OBJ)/%.o) -TARGET = $(IDIR)/$(PROGRAM).$(EXT_BIN) - -ifndef INSTALL_DIR -BDIR = $(INSTALL_BIN) -else -BDIR = $(INSTALL_DIR) -endif - - - - -$(TARGET):: $(PRGOBJ) - $(RM) $@ - $(LINK) $(PRGOBJ) $(LDFLAGS) -static -o $(TARGET) - -endif - -############################################################## -################## GERNERIC Section ######################### -############################################################## - -SOURCE = $(LIBSRC) $(PRGSRC) - -directories :: $(BUILD) $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_DLL) $(INSTALL_OBJ) - - -clean:: clean_target clean_objects - - -clean_objects:: - @echo Removing $(notdir $(OBJECTS)) - @$(RM) $(OBJECTS) - -clean_target:: - @echo Removing $(notdir $(TARGET)) - @$(RM) $(TARGET) - -SEP:=$(strip \) - -$(BUILD): - @echo Creating $@ ..... - @-mkdir OBJECTS - @-mkdir $(subst /,$(SEP)$(SEP),$(BUILD)) - -$(INSTALL_BIN) : - @echo Creating $@ ..... - @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_BIN) ) -$(INSTALL_LIB): - @echo Creating $@ ..... - @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_LIB)) -$(INSTALL_DLL): - @echo Creating $@ ..... - @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_DLL)) -$(INSTALL_OBJ): - @echo Creating $@ ..... - @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_OBJ) ) -$(INSTALL_DEPEND): - @echo Creating $@ ..... - @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_DEPEND) ) - - - - - - - - - + +# Copyright (C) 2009 Narinder S Claire +# +# This file is part of XLW, a free-software/open-source C++ wrapper of the +# Excel C API - http://xlw.sourceforge.net/ +# +# XLW is free software: you can redistribute it and/or modify it under the +# terms of the XLW license. You should have received a copy of the +# license along with this program; if not, please email xlw...@li... +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the license for more details. + + +MAKEFILE = Makefile + + + +BUILD_TARGETS = directories install + +build :: $(BUILD_TARGETS) + +REBUILD_TARGETS = clean directories install +rebuild ::$(REBUILD_TARGETS) + + + +##################################################### +####### Section responsible for building libraries +ifdef LIBRARY + +ifndef LIBVER +LIBVER = 0.0 +endif + + +ifeq ($(LIBTYPE),SHARE) +LIBP=$(EXT_SHARE) +else +LIBP=$(EXT_STATIC) +endif + + + +ifndef INSTALL_DIR +ifeq ($(LIBTYPE),SHARE) +IDIR=$(INSTALL_DLL) +else +IDIR=$(INSTALL_LIB) +endif +else +IDIR = $(INSTALL_DIR) +endif + + + +install:: $(IDIR)/$(LIBPREFIX)$(LIBRARY).$(LIBP) + +LIBOBJ := $(LIBSRC:%.cpp=$(INSTALL_OBJ)/%.o) +OBJECTS += $(LIBSRC:%.cpp=$(INSTALL_OBJ)/%.o) +TARGET = $(IDIR)/$(LIBPREFIX)$(LIBRARY).$(LIBP) + + + +$(IDIR)/lib$(LIBRARY).a : $(LIBOBJ) + @-$(RM) $@ + ar -rs $@ $(LIBOBJ) + +#$(TARGET)::$(LIBOBJ) +# $(DLLWRAP) --output-def $(IDIR)/$(LIBPREFIX)$(LIBRARY).def \ +# --driver-name c++ \ +# --implib $(IDIR)/$(LIBPREFIX)$(LIBRARY).lib \ +# $(LIBOBJ) $(LDFLAGS) -o $@ + +$(IDIR)/$(LIBPREFIX)$(LIBRARY).%ll : $(LIBOBJ) + @-$(RM) $@ + $(CXXSO) $(CXXPIC) -o $@ \ + -Wl,"$(XLW)/xlw/include/xlw/xlw.def" \ + -Wl,-static \ + -static-libgcc \ + $(LIBOBJ)\ + $(LDFLAGS) + +#$(IDIR)/lib$(LIBRARY).so::$(LIBOBJ) +# @-$(RM) $@ +# $(CXXSO) $(CXXPIC) -o $@ $(LIBOBJ) $(LDFLAGS) $(LDFLAGS) + + +endif + + +##################################################### +####### Section responsible for Programs +ifdef PROGRAM + + +ifndef INSTALL_DIR +IDIR=$(INSTALL_BIN) +else +IDIR=$(INSTALL_DIR) +endif + +install:: $(IDIR)/$(PROGRAM).$(EXT_BIN) + + +CXXPIC := + + +PRGOBJ := $(PRGSRC:%.cpp=$(INSTALL_OBJ)/%.o) +OBJECTS += $(PRGSRC:%.cpp=$(INSTALL_OBJ)/%.o) +TARGET = $(IDIR)/$(PROGRAM).$(EXT_BIN) + +ifndef INSTALL_DIR +BDIR = $(INSTALL_BIN) +else +BDIR = $(INSTALL_DIR) +endif + + + + +$(TARGET):: $(PRGOBJ) + $(RM) $@ + $(LINK) $(PRGOBJ) $(LDFLAGS) -static -o $(TARGET) + +endif + +############################################################## +################## GERNERIC Section ######################### +############################################################## + +SOURCE = $(LIBSRC) $(PRGSRC) + +directories :: $(BUILD) $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_DLL) $(INSTALL_OBJ) + + +clean:: clean_target clean_objects + + +clean_objects:: + @echo Removing $(notdir $(OBJECTS)) + @$(RM) $(OBJECTS) + +clean_target:: + @echo Removing $(notdir $(TARGET)) + @$(RM) $(TARGET) + +SEP:=$(strip \) + +$(BUILD): + @echo Creating $@ ..... + @-mkdir OBJECTS + @-mkdir $(subst /,$(SEP)$(SEP),$(BUILD)) + +$(INSTALL_BIN) : + @echo Creating $@ ..... + @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_BIN) ) +$(INSTALL_LIB): + @echo Creating $@ ..... + @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_LIB)) +$(INSTALL_DLL): + @echo Creating $@ ..... + @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_DLL)) +$(INSTALL_OBJ): + @echo Creating $@ ..... + @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_OBJ) ) +$(INSTALL_DEPEND): + @echo Creating $@ ..... + @-mkdir $(subst /,$(SEP)$(SEP),$(INSTALL_DEPEND) ) + + + + + + + + + Property changes on: Dev5/xlw/xlw/make/make.targets ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |