aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-13 04:59:11 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-13 04:59:11 +0000
commit12dd4dd914b26ef48f6d6b7f49077d62b63be217 (patch)
tree40455f88c69fa072c1120dbd4f644510cb6fba56 /externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
parente39ca045a8ef5c6f2e6f1fbd3aba8bd2641296b2 (diff)
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 svn path=/trunk/; revision=2498
Diffstat (limited to 'externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc')
-rw-r--r--externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc22
1 files changed, 10 insertions, 12 deletions
diff --git a/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc b/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
index f8eea4ac..8044d19b 100644
--- a/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
+++ b/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
@@ -18,33 +18,31 @@ _build_: $(TARGET)
# touch $@
$(OUTPATH):
- -cmd /c "mkdir $(subst /,\,$@)"
+ -mkdir $(subst /,\,$@)
$(TARGETPATH): $(OUTPATH)
- -cmd /c "mkdir $(subst /,\,$@)"
+ -mkdir $(subst /,\,$@)
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp
- $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+ $(CXX) -c $(CFLAGS) $(DEFS) $(subst \,/,$(INCPATH)) $< -o $(subst /,\,$@)
$(TARGETPATH)/%.o : $(SRCDIR)/%.c
- $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+ $(CC) -c $(CFLAGS) $(DEFS) $(subst \,/,$(INCPATH)) $< -o $(subst /,\,$@)
$(TARGET) :: $(TARGETPATH)
$(TARGET) :: $(COBJS) $(CPPOBJS)
- $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
+ $(CXX) $(LDFLAGS) $(subst \,/,$(LIBPATH)) -o $(subst /,\,$@) $(subst /,\,$(COBJS) $(CPPOBJS) $(LIBS))
-strip --strip-unneeded $@
##############################################
_clean_:
- -cmd /c "del /q $(subst /,\,$(TARGETPATH)/*.*)" > nul
- -cmd /c "rmdir /q $(subst /,\,$(TARGETPATH))" > nul
+ -del /q $(subst /,\,$(TARGETPATH)/*.*) > nul
+ -rmdir /q $(subst /,\,$(TARGETPATH)) > nul
##############################################
-$(INSTPATH):
- -cmd /c "mkdir $(subst /,\,$@)"
-
-_install_: $(INSTPATH)
- cmd /c "copy $(subst /,\,$(TARGET) $(INSTPATH))"
+_install_:
+ @if not exist $(subst /,\,$(INSTPATH)) -mkdir $(subst /,\,$(INSTPATH))
+ copy $(subst /,\,$(TARGET) $(INSTPATH))