Update of /cvsroot/pure-data/externals/grill/flext/buildsys/win In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4893/buildsys/win
Modified Files: bmake-bcc.inc gnumake-cygwin.inc gnumake-mingw-ext.inc gnumake-mingw-flext.inc gnumake-mingw.inc Log Message: various fixes to build system fixes for build system better templates, some minor changes build system: added profiler mode, more fixes added ICC/linux support small optimizations
Index: bmake-bcc.inc =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/bmake-bcc.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bmake-bcc.inc 10 Jan 2005 04:58:42 -0000 1.4 --- bmake-bcc.inc 13 Jan 2005 04:59:10 -0000 1.5 *************** *** 13,23 **** # use precompiled headers
! !ifndef PRECOMPILE ! CFLAGS=$(CFLAGS) -Hh=flext.h ! !else ! CFLAGS=$(CFLAGS) -Hh=$(PRECOMPILE) !endif - # location of precompiled file - CFLAGS=$(CFLAGS) -H=$(OBJPATH)\precompiled.pch
############################################## --- 13,19 ---- # use precompiled headers
! !ifdef PRECOMPILE ! CFLAGS=$(CFLAGS) -Hh=$(PRECOMPILE) -H=$(OBJPATH)\precompiled.pch !endif
##############################################
Index: gnumake-cygwin.inc =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-cygwin.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gnumake-cygwin.inc 10 Jan 2005 04:58:42 -0000 1.4 --- gnumake-cygwin.inc 13 Jan 2005 04:59:10 -0000 1.5 *************** *** 7,12 **** ##############################################
! CFLAGS += -pthread ! LDFLAGS += -pthread -shared
############################################## --- 7,12 ---- ##############################################
! CFLAGS += ! LDFLAGS += -shared
##############################################
Index: gnumake-mingw.inc =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-mingw.inc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gnumake-mingw.inc 10 Jan 2005 04:58:42 -0000 1.4 --- gnumake-mingw.inc 13 Jan 2005 04:59:10 -0000 1.5 *************** *** 7,12 **** ##############################################
! CFLAGS += -pthread ! LDFLAGS += -pthread -shared
############################################## --- 7,12 ---- ##############################################
! CFLAGS += ! LDFLAGS += -shared
##############################################
Index: gnumake-mingw-ext.inc =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gnumake-mingw-ext.inc 5 Jan 2005 05:04:11 -0000 1.2 --- gnumake-mingw-ext.inc 13 Jan 2005 04:59:10 -0000 1.3 *************** *** 19,37 ****
$(OUTPATH): ! -cmd /c "mkdir $(subst /,,$@)"
$(TARGETPATH): $(OUTPATH) ! -cmd /c "mkdir $(subst /,,$@)"
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp ! $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGETPATH)/%.o : $(SRCDIR)/%.c ! $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) :: $(TARGETPATH)
$(TARGET) :: $(COBJS) $(CPPOBJS) ! $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS) -strip --strip-unneeded $@
--- 19,37 ----
$(OUTPATH): ! -mkdir $(subst /,,$@)
$(TARGETPATH): $(OUTPATH) ! -mkdir $(subst /,,$@)
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp ! $(CXX) -c $(CFLAGS) $(DEFS) $(subst ,/,$(INCPATH)) $< -o $(subst /,,$@)
$(TARGETPATH)/%.o : $(SRCDIR)/%.c ! $(CC) -c $(CFLAGS) $(DEFS) $(subst ,/,$(INCPATH)) $< -o $(subst /,,$@)
$(TARGET) :: $(TARGETPATH)
$(TARGET) :: $(COBJS) $(CPPOBJS) ! $(CXX) $(LDFLAGS) $(subst ,/,$(LIBPATH)) -o $(subst /,,$@) $(subst /,,$(COBJS) $(CPPOBJS) $(LIBS)) -strip --strip-unneeded $@
*************** *** 39,50 ****
_clean_: ! -cmd /c "del /q $(subst /,,$(TARGETPATH)/*.*)" > nul ! -cmd /c "rmdir /q $(subst /,,$(TARGETPATH))" > nul
##############################################
! $(INSTPATH): ! -cmd /c "mkdir $(subst /,,$@)" ! ! _install_: $(INSTPATH) ! cmd /c "copy $(subst /,,$(TARGET) $(INSTPATH))" --- 39,48 ----
_clean_: ! -del /q $(subst /,,$(TARGETPATH)/*.*) > nul ! -rmdir /q $(subst /,,$(TARGETPATH)) > nul
##############################################
! _install_: ! @if not exist $(subst /,,$(INSTPATH)) -mkdir $(subst /,,$(INSTPATH)) ! copy $(subst /,,$(TARGET) $(INSTPATH))
Index: gnumake-mingw-flext.inc =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gnumake-mingw-flext.inc 5 Jan 2005 05:04:11 -0000 1.2 --- gnumake-mingw-flext.inc 13 Jan 2005 04:59:10 -0000 1.3 *************** *** 10,23 ****
$(OUTPATH): ! -cmd /c "mkdir $(subst /,,$@)"
$(TARGETPATH): $(OUTPATH) ! -cmd /c "mkdir $(subst /,,$@)"
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp ! $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGETPATH)/%.o : $(SRCDIR)/%.c ! $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) :: $(TARGETPATH) --- 10,23 ----
$(OUTPATH): ! -mkdir $(subst /,,$@)
$(TARGETPATH): $(OUTPATH) ! -mkdir $(subst /,,$@)
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp ! $(CXX) -c $(CFLAGS) $(DEFS) $(subst ,/,$(INCPATH)) $< -o $(subst /,,$@)
$(TARGETPATH)/%.o : $(SRCDIR)/%.c ! $(CC) -c $(CFLAGS) $(DEFS) $(subst ,/,$(INCPATH)) $< -o $(subst /,,$@)
$(TARGET) :: $(TARGETPATH) *************** *** 25,29 **** $(TARGET) :: $(COBJS) $(CPPOBJS) ifdef SHARED ! $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS) -strip --strip-unneeded $@ else --- 25,29 ---- $(TARGET) :: $(COBJS) $(CPPOBJS) ifdef SHARED ! $(CXX) $(LDFLAGS) $(LIBPATH) -o $(subst /,,$@) $(subst /,,$(COBJS) $(CPPOBJS) $(LIBS)) -strip --strip-unneeded $@ else *************** *** 34,39 ****
_clean_: ! -cmd /c "del /q $(subst /,,$(TARGETPATH)/*.*)" > nul ! -cmd /c "rmdir /q $(subst /,,$(TARGETPATH))" > nul
############################################## --- 34,39 ----
_clean_: ! -del /q $(subst /,,$(TARGETPATH)/*.*) > nul ! -rmdir /q $(subst /,,$(TARGETPATH)) > nul
############################################## *************** *** 45,57 **** endif
- $(FLEXTINC): - -cmd /c "mkdir $(subst /,,$@)" - - $(FLEXTLIBINST): - -cmd /c "mkdir $(subst /,,$@)" - - _install_:: $(FLEXTINC) $(FLEXTLIBINST) - _install_:: ! cmd /c "copy $(subst /,,$(TARGET) $(FLEXTLIBINST))" ! -cmd /c "for %i in ($(HDRS)) do @cmd /c copy $(SRCDIR)%i $(subst /,,$(FLEXTPATH))" > nul --- 45,52 ---- endif
_install_:: ! @if not exist $(subst /,,$(FLEXTINC)) -mkdir $(subst /,,$(FLEXTINC)) ! @if not exist $(subst /,,$(FLEXTLIBINST)) -mkdir $(subst /,,$(FLEXTLIBINST)) ! ! copy $(subst /,,$(TARGET) $(FLEXTLIBINST)) ! -for %%i in ($(HDRS)) do @copy $(SRCDIR)%%i $(subst /,,$(FLEXTINC)) > nul