Update of /cvsroot/pure-data/externals/grill/flext/buildsys/win In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29038/buildsys/win
Added Files: bmake-bcc-ext.inc bmake-bcc-flext.inc bmake-bcc.inc gnumake-cygwin-ext.inc gnumake-cygwin-flext.inc gnumake-cygwin.inc gnumake-mingw-ext.inc gnumake-mingw-flext.inc gnumake-mingw.inc nmake-msvc-ext.inc nmake-msvc-flext.inc nmake-msvc.inc Removed Files: make-bcc.inc make-cygwin.inc make-mingw.inc make-msvc.inc Log Message: updated make system build system for OSX simplified make system reconsidered flext::buffer:Update added object construction and destruction flags updated build system
--- NEW FILE: bmake-bcc.inc --- !ifdef BCCPATH INCPATH=$(INCPATH) -I$(BCCPATH)\include LIBPATH=$(LIBPATH) -L$(BCCPATH)\lib !endif
##############################################
TARGETPATH=$(OUTPATH)$(OUTSUB) TARGET=$(TARGETPATH)$(OUTNAME).$(EXT)
############################################## # use precompiled headers
!ifndef PRECOMPILE CFLAGS=$(CFLAGS) -Hh=flext.h !else CFLAGS=$(CFLAGS) -Hh=$(PRECOMPILE) !endif # location of precompiled file CFLAGS=$(CFLAGS) -H=$(TARGETPATH)\precompiled.pch
##############################################
LIBS=$(LIBS) cw32.lib import32.lib C0D32.OBJ CFLAGS=$(CFLAGS) -tWD -tWM -w-8004 -w-8027 -w-8057 LDFLAGS=$(LDFLAGS) /C /Tpd
##############################################
!ifdef DEBUG CFLAGS=$(CFLAGS) -v -D_DEBUG LDFLAGS=$(LDFLAGS) /v !else CFLAGS=$(CFLAGS) $(OFLAGS) -DNDEBUG !endif
############################################## # convert both *.c and *.cpp
OBJSTMP= $(SRCS:.c=.obj) OBJS= $(OBJSTMP:.objpp=.obj)
--- NEW FILE: nmake-msvc-ext.inc --- # build class specific settings
INCPATH=$(INCPATH) /I$(FLEXTINC) LIBPATH=$(LIBPATH) /LIBPATH:$(FLEXTLIB) LIBS=$(LIBS) $(FLEXTNAME).lib
##############################################
# default target _build_: $(TARGET)
$(OUTPATH): if not exist $@ mkdir $@ > nul
$(TARGETPATH): $(OUTPATH) if not exist $@ mkdir $@ > nul
{$(SRCDIR)}.cpp{}.obj: cl /c $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)$@
{$(SRCDIR)}.c{}.obj: cl /c $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)$@
$(TARGET):: $(TARGETPATH)
$(TARGET):: $(OBJS) @cd $(TARGETPATH) link /DLL $(LDFLAGS) $(LIBPATH) $(OBJS) $(LIBS) /out:$(@F) @cd ....
############################################## # remove build
_clean_: -del /q $(TARGET) > nul -cd $(TARGETPATH) -del /q $(OBJS) > nul
##############################################
$(INSTPATH): if not exist $@ mkdir $@ > nul
_install_: $(INSTPATH) copy $(TARGET) $(INSTPATH) > nul
--- NEW FILE: gnumake-cygwin-ext.inc --- # build class specific settings
INCPATH += -I$(FLEXTINC) LIBPATH += -L$(FLEXTLIB) -L$(FLEXTSHLIB) LIBS += -l$(FLEXTNAME)
##############################################
# default target _build_: $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) touch $@
$(TARGETPATH): -mkdir -p $@
$(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) chmod 755 $@
##############################################
_clean_: rm $(COBJS) $(CPPOBJS) $(TARGET)
##############################################
$(INSTPATH): -mkdir -p $@
_install_: $(INSTPATH) install $(TARGET) $(INSTPATH)
--- NEW FILE: nmake-msvc.inc --- !ifdef MSVCPATH INCPATH=$(INCPATH) /I$(MSVCPATH)\include LIBPATH=$(LIBPATH) /LIBPATH:$(MSVCPATH)\lib !endif
##############################################
TARGETPATH=$(OUTPATH)$(OUTSUB) TARGET=$(TARGETPATH)$(OUTNAME).$(EXT)
############################################## # use precompiled headers (automatic mode)
!ifndef PRECOMPILE CFLAGS=$(CFLAGS) /YXflext.h !else CFLAGS=$(CFLAGS) /YX$(PRECOMPILE) !endif # location of precompiled file CFLAGS=$(CFLAGS) /Fp$(TARGETPATH)\precompiled.pch
##############################################
# create code for DLL CFLAGS=$(CFLAGS) /LD /GD
# enable exception handling CFLAGS=$(CFLAGS) /GX
# no banner CFLAGS=$(CFLAGS) /nologo LDFLAGS=$(LDFLAGS) /nologo
##############################################
!ifdef DEBUG
CFLAGS=$(CFLAGS) /D_DEBUG !ifdef DYNAMIC CFLAGS=$(CFLAGS) /MDd !else CFLAGS=$(CFLAGS) /MTd !endif
LDFLAGS=$(LDFLAGS) /DEBUG
!else
CFLAGS=$(CFLAGS) $(OFLAGS) /DNDEBUG !ifdef DYNAMIC CFLAGS=$(CFLAGS) /MD !else CFLAGS=$(CFLAGS) /MT !endif
LDFLAGS=$(LDFLAGS) /INCREMENTAL:NO
!endif
############################################## # convert both *.c and *.cpp
OBJSTMP= $(SRCS:.c=.obj) OBJS= $(OBJSTMP:.objpp=.obj)
--- NEW FILE: gnumake-mingw.inc --- ##############################################
TARGETPATH=$(OUTPATH)$(OUTSUB) TARGET=$(TARGETPATH)$(OUTNAME).$(EXT)
##############################################
LDFLAGS += -shared -Wl,-x
##############################################
ifdef DEBUG CFLAGS += -g -D_DEBUG else CFLAGS += $(OFLAGS) -DNDEBUG LDFLAGS += -Wl,-S endif
##############################################
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) COBJS=$(patsubst %.c,$(TARGETPATH)/%.o,$(filter %.c,$(SRCS))) CPPOBJS=$(patsubst %.cpp,$(TARGETPATH)/%.opp,$(filter %.cpp,$(SRCS)))
--- NEW FILE: bmake-bcc-ext.inc --- # build class specific settings
INCPATH=$(INCPATH) -I$(FLEXTINC) LIBPATH=$(LIBPATH) -L$(FLEXTLIB) LIBS=$(LIBS) $(FLEXTNAME).lib
##############################################
# default target _build_: $(TARGET)
$(OUTPATH): if not exist $@ mkdir $@ > nul
$(TARGETPATH): $(OUTPATH) if not exist $@ mkdir $@ > nul
SETUPFUNCTION=$(NAME)_setup
$(TARGETPATH)$(NAME).def: $(TARGETPATH) @echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $@ # this next line fixes a strange problem with implib - lacking underscore?! @echo IMPORTS _rtext_retext=PD.rtext_retext >> $@
$(TARGET) :: $(TARGETPATH)$(NAME).def
{$(SRCDIR)}.cpp{}.obj: bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(TARGETPATH) $<
{$(SRCDIR)}.c{}.obj: bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(TARGETPATH) $<
$(TARGET) :: $(TARGETPATH)
$(TARGET) :: $(OBJS) @cd $(TARGETPATH) ilink32 $(LDFLAGS) $(LIBPATH) -L. $(OBJS) ,$(<F),,$(LIBS),$(NAME).def @cd ....
############################################## # remove build
_clean_: -del /q $(TARGET) > nul -cd $(TARGETPATH) -del /q $(OBJS) > nul
##############################################
$(INSTPATH): if not exist $@ mkdir $@ > nul
_install_: $(INSTPATH) copy $(TARGET) $(INSTPATH) > nul
--- make-cygwin.inc DELETED ---
--- NEW FILE: gnumake-mingw-ext.inc --- # build class specific settings
INCPATH += -I$(FLEXTINC) LIBPATH += -L$(FLEXTLIB) -L$(FLEXTSHLIB) LIBS += -l$(FLEXTNAME)
##############################################
# default target _build_: $(TARGET)
#$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) # touch $@
$(OUTPATH): -mkdir $(subst /,,$@)
$(TARGETPATH): $(OUTPATH) -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)
##############################################
_clean_: -del $(subst /,,$(COBJS) $(CPPOBJS) $(TARGET))
##############################################
$(INSTPATH): -mkdir $(subst /,,$@)
_install_: $(INSTPATH) copy $(subst /,,$(TARGET) $(INSTPATH))
--- make-mingw.inc DELETED ---
--- NEW FILE: bmake-bcc-flext.inc --- # build class specific settings
##############################################
# default target _build_: $(TARGET)
$(OUTPATH): if not exist $@ mkdir $@ > nul
$(TARGETPATH): $(OUTPATH) if not exist $@ mkdir $@ > nul
{$(SRCDIR)}.cpp{}.obj: bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(TARGETPATH) $<
{$(SRCDIR)}.c{}.obj: bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(TARGETPATH) $<
$(TARGETPATH)\pd.lib : $(PDPATH)\bin\pd.dll implib -a $< $**
$(TARGETPATH)\pthreadVC.lib : $(PDPATH)\bin\pthreadVC.dll implib -a $< $**
PDTARGETS=$(TARGETPATH)\pd.lib $(TARGETPATH)\pthreadVC.lib
$(TARGET) :: $(TARGETPATH) $(PDTARGETS)
$(TARGET) :: $(OBJS) @cd $(TARGETPATH) !ifdef SHARED ilink32 $(LDFLAGS) $(LIBPATH) -L. $(OBJS) ,$(<F),,$(LIBS) implib -a $(<B).lib $(<F) !else -del $(<F) tlib "$(<F)" +$(OBJS: = +) !endif @cd ....
##############################################
_clean_: -del /q $(TARGET) > nul -cd $(TARGETPATH) -del /q $(OBJS) > nul
##############################################
!ifdef SHARED FLEXTLIBINST=$(FLEXTSHLIB) !else FLEXTLIBINST=$(FLEXTLIB) !endif
$(FLEXTINC): if not exist $@ mkdir $@ > nul
!if "$(FLEXTINC)" != "$(FLEXTLIB)" $(FLEXTLIB): if not exist $@ mkdir $@ > nul
_install_:: $(FLEXTLIB) !endif
!if "$(FLEXTLIBINST)" != "$(FLEXTLIB)" && "$(FLEXTLIBINST)" != "$(FLEXTINC)" $(FLEXTLIBINST): if not exist $@ mkdir $@ > nul
_install_:: $(FLEXTLIBINST) !endif
_install_:: $(FLEXTINC) copy $(TARGET) $(FLEXTLIBINST) > nul !ifdef SHARED # copy import library copy $(TARGET:.dll=.lib) $(FLEXTLIB) > nul !endif # copy headers for %%i in ($(HDRS)) do @copy $(SRCDIR)%%i $(FLEXTINC) > nul # copy import libraries for %%i in ($(PDTARGETS)) do @copy %%i $(FLEXTLIBINST) > nul
--- make-bcc.inc DELETED ---
--- make-msvc.inc DELETED ---
--- NEW FILE: gnumake-mingw-flext.inc --- # build class specific settings
##############################################
# default target _build_: $(TARGET)
#$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) # touch $@
$(OUTPATH): -mkdir $(subst /,,$@)
$(TARGETPATH): $(OUTPATH) -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) ifdef SHARED $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS) else $(AR) rc $@ $(COBJS) $(CPPOBJS) endif
##############################################
_clean_: -del $(subst /,,$(COBJS) $(CPPOBJS) $(TARGET))
##############################################
ifdef SHARED FLEXTLIBINST=$(FLEXTSHLIB) else FLEXTLIBINST=$(FLEXTLIB) endif
$(FLEXTINC): -mkdir $(subst /,,$@)
$(FLEXTLIBINST): -mkdir $(subst /,,$@)
_install_:: $(FLEXTINC) $(FLEXTLIBINST)
_install_:: copy $(subst /,,$(TARGET) $(FLEXTLIBINST)) -for %%i in ($(HDRS)) do @copy $(SRCDIR)%%i $(subst /,,$(FLEXTPATH)) > nul
--- NEW FILE: gnumake-cygwin-flext.inc --- # build class specific settings
##############################################
# default target _build_: $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) touch $@
$(TARGETPATH): -mkdir -p $@
$(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) ifdef SHARED $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS) chmod 755 $@ else $(AR) rc $@ $(COBJS) $(CPPOBJS) endif
##############################################
_clean_: rm $(COBJS) $(CPPOBJS) $(TARGET)
##############################################
ifdef SHARED FLEXTLIBINST=$(FLEXTSHLIB) else FLEXTLIBINST=$(FLEXTLIB) endif
$(FLEXTINC): -mkdir -p $@
$(FLEXTLIBINST): -mkdir -p $@
_install_: $(FLEXTINC) $(FLEXTLIBINST) install $(TARGET) $(FLEXTLIBINST) install $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(FLEXTINC)
--- NEW FILE: gnumake-cygwin.inc --- ##############################################
TARGETPATH=$(OUTPATH)/$(OUTSUB) TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
LDFLAGS += -shared -Wl,-x
##############################################
ifdef DEBUG CFLAGS += -g -D_DEBUG else CFLAGS += $(OFLAGS) -DNDEBUG LDFLAGS += -Wl,-S endif
##############################################
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) COBJS=$(patsubst %.c,$(TARGETPATH)/%.o,$(filter %.c,$(SRCS))) CPPOBJS=$(patsubst %.cpp,$(TARGETPATH)/%.opp,$(filter %.cpp,$(SRCS)))
--- NEW FILE: nmake-msvc-flext.inc --- # build class specific settings
##############################################
# default target _build_: $(TARGET)
$(OUTPATH): if not exist $@ mkdir $@ > nul
$(TARGETPATH): $(OUTPATH) if not exist $@ mkdir $@ > nul
{$(SRCDIR)}.cpp{}.obj: cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)$@
{$(SRCDIR)}.c{}.obj: cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)$@
$(TARGET):: $(TARGETPATH)
$(TARGET):: $(OBJS) @cd $(TARGETPATH) !ifdef SHARED link /DLL $(LDFLAGS) $(LIBPATH) $(OBJS) $(LIBS) /out:$(@F) !else lib /OUT:$(@F) $(OBJS) !endif @cd ....
##############################################
# remove build _clean_: -del /q $(TARGET) > nul -cd $(TARGETPATH) -del /q $(OBJS) > nul
##############################################
!ifdef SHARED FLEXTLIBINST=$(FLEXTSHLIB) !else FLEXTLIBINST=$(FLEXTLIB) !endif
$(FLEXTINC): if not exist $@ mkdir $@ > nul
$(FLEXTLIB): if not exist $@ mkdir $@ > nul
$(FLEXTLIBINST): if not exist $@ mkdir $@ > nul
_install_:: $(FLEXTINC) $(FLEXTLIB) $(FLEXTLIBINST)
_install_:: copy $(TARGET) $(FLEXTLIBINST) > nul !ifdef SHARED # copy import library copy $(TARGET:.dll=.lib) $(FLEXTLIB) > nul !endif # copy headers for %%i in ($(HDRS)) do @copy $(SRCDIR)%%i $(FLEXTINC) > nul