Commit 9786974d authored by thomas's avatar thomas
Browse files

updated build system

git-svn-id: https://svn.grrrr.org/ext/trunk@946 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent beb33569
......@@ -6,7 +6,7 @@ TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
LDFLAGS += -shared -Wl,-x
LDFLAGS += -shared
##############################################
......
......@@ -6,7 +6,7 @@ TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
LDFLAGS += -shared -Wl,-x
LDFLAGS += -shared
##############################################
......
......@@ -13,10 +13,10 @@ _build_: $(TARGET)
# touch $@
$(OUTPATH):
-mkdir $(subst /,\,$@)
-cmd /c "mkdir $(subst /,\,$@)"
$(TARGETPATH): $(OUTPATH)
-mkdir $(subst /,\,$@)
-cmd /c "mkdir $(subst /,\,$@)"
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp
$(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
......@@ -32,13 +32,13 @@ $(TARGET) :: $(COBJS) $(CPPOBJS)
##############################################
_clean_:
-del /q $(subst /,\,$(TARGETPATH)/*.*) > nul
-rmdir /q $(subst /,\,$(TARGETPATH)) > nul
-cmd /c "del /q $(subst /,\,$(TARGETPATH)/*.*)" > nul
-cmd /c "rmdir /q $(subst /,\,$(TARGETPATH))" > nul
##############################################
$(INSTPATH):
-mkdir $(subst /,\,$@)
-cmd /c "mkdir $(subst /,\,$@)"
_install_: $(INSTPATH)
copy $(subst /,\,$(TARGET) $(INSTPATH))
cmd /c "copy $(subst /,\,$(TARGET) $(INSTPATH))"
......@@ -9,10 +9,10 @@ _build_: $(TARGET)
# touch $@
$(OUTPATH):
-mkdir $(subst /,\,$@)
-cmd /c "mkdir $(subst /,\,$@)"
$(TARGETPATH): $(OUTPATH)
-mkdir $(subst /,\,$@)
-cmd /c "mkdir $(subst /,\,$@)"
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp
$(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
......@@ -32,8 +32,8 @@ endif
##############################################
_clean_:
-del /q $(subst /,\,$(TARGETPATH)/*.*) > nul
-rmdir /q $(subst /,\,$(TARGETPATH)) > nul
-cmd /c "del /q $(subst /,\,$(TARGETPATH)/*.*)" > nul
-cmd /c "rmdir /q $(subst /,\,$(TARGETPATH))" > nul
##############################################
......@@ -44,13 +44,13 @@ FLEXTLIBINST=$(FLEXTLIB)
endif
$(FLEXTINC):
-mkdir $(subst /,\,$@)
-cmd /c "mkdir $(subst /,\,$@)"
$(FLEXTLIBINST):
-mkdir $(subst /,\,$@)
-cmd /c "mkdir $(subst /,\,$@)"
_install_:: $(FLEXTINC) $(FLEXTLIBINST)
_install_::
copy $(subst /,\,$(TARGET) $(FLEXTLIBINST))
-for %%i in ($(HDRS)) do @copy $(SRCDIR)\%%i $(subst /,\,$(FLEXTPATH)) > nul
cmd /c "copy $(subst /,\,$(TARGET) $(FLEXTLIBINST))"
-cmd /c "for %i in ($(HDRS)) do @cmd /c copy $(SRCDIR)\%i $(subst /,\,$(FLEXTPATH))" > nul
......@@ -6,7 +6,7 @@ TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
##############################################
LDFLAGS += -shared -Wl,-x
LDFLAGS += -shared
##############################################
......
# where is PD?
PDPATH=c:/programme/audio/pd
PDPATH=c:\programme\audio\pd
###############################################################
# where do/should the flext headers reside/be built?
FLEXTINC=$(PDPATH)/flext
FLEXTINC=$(PDPATH)\flext
# where do/should the flext static libraries reside/be built?
FLEXTLIB=$(FLEXTINC)
......@@ -18,7 +18,7 @@ FLEXTSHLIB=$(FLEXTINC)
OUTPATH=pd-mingw
# where should the external be installed?
INSTPATH=$(PDPATH)/extra
INSTPATH=$(PDPATH)\extra
###############################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment