Update of /cvsroot/pure-data/externals/grill/flext/buildsys/win
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12682/buildsys/win
Modified 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
Log Message:
made default configurations generic
two more flext tutorials
fixes for Max headers
cleanups
updated build system
updated tutorials
revised the documentation
updated for OSX
upgraded version number
Index: bmake-bcc.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/bmake-bcc.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bmake-bcc.inc 3 Jan 2005 05:00:28 -0000 1.1
--- bmake-bcc.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,41 ****
! !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)
--- 1,42 ----
! !ifdef BCCPATH
! INCPATH=$(INCPATH) -I$(BCCPATH)\include
! LIBPATH=$(LIBPATH) -L$(BCCPATH)\lib
! !endif
!
! ##############################################
!
! OBJPATH=$(OUTPATH)\$(OUTSUB)
! TARGETPATH=$(OBJPATH)
! 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=$(OBJPATH)\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)
Index: nmake-msvc-ext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/nmake-msvc-ext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** nmake-msvc-ext.inc 3 Jan 2005 05:00:29 -0000 1.1
--- nmake-msvc-ext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,45 ****
! # 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
--- 1,44 ----
! # 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 $(TARGETPATH)\*.* > nul
! -rmdir /q $(TARGETPATH) > nul
!
! ##############################################
!
! $(INSTPATH):
! if not exist $@ mkdir $@ > nul
!
! _install_: $(INSTPATH)
! copy $(TARGET) $(INSTPATH) > nul
Index: nmake-msvc.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/nmake-msvc.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** nmake-msvc.inc 3 Jan 2005 05:00:29 -0000 1.1
--- nmake-msvc.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 6,10 ****
##############################################
! TARGETPATH=$(OUTPATH)\$(OUTSUB)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
--- 6,11 ----
##############################################
! OBJPATH=$(OUTPATH)\$(OUTSUB)
! TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
***************
*** 12,27 ****
# 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
--- 13,24 ----
# use precompiled headers (automatic mode)
! !ifdef PRECOMPILE
! CFLAGS=$(CFLAGS) /YX$(PRECOMPILE) /Fp$(OBJPATH)\precompiled.pch
!endif
##############################################
# create code for DLL
! CFLAGS=$(CFLAGS) /LD
# enable exception handling
Index: gnumake-mingw.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-mingw.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gnumake-mingw.inc 3 Jan 2005 05:00:29 -0000 1.1
--- gnumake-mingw.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,10 ****
##############################################
! TARGETPATH=$(OUTPATH)\$(OUTSUB)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
##############################################
! LDFLAGS += -shared -Wl,-x
##############################################
--- 1,11 ----
##############################################
! OBJPATH=$(OUTPATH)\$(OUTSUB)
! TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
##############################################
! LDFLAGS += -shared
##############################################
***************
*** 21,24 ****
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)))
--- 22,25 ----
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
! COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS)))
! CPPOBJS=$(patsubst %.cpp,$(OBJPATH)/%.opp,$(filter %.cpp,$(SRCS)))
Index: bmake-bcc-ext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/bmake-bcc-ext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bmake-bcc-ext.inc 3 Jan 2005 05:00:28 -0000 1.1
--- bmake-bcc-ext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,54 ****
! # 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
--- 1,53 ----
! # 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 $(TARGETPATH)\*.* > nul
! -rmdir /q $(TARGETPATH) > nul
!
! ##############################################
!
! $(INSTPATH):
! if not exist $@ mkdir $@ > nul
!
! _install_: $(INSTPATH)
! copy $(TARGET) $(INSTPATH) > nul
Index: gnumake-cygwin-ext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-cygwin-ext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gnumake-cygwin-ext.inc 3 Jan 2005 05:00:28 -0000 1.1
--- gnumake-cygwin-ext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,41 ****
! # 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)
--- 1,42 ----
! # 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)
! strip --strip-unneeded $@
! chmod 755 $@
!
! ##############################################
!
! _clean_:
! rm $(COBJS) $(CPPOBJS) $(TARGET)
!
! ##############################################
!
! $(INSTPATH):
! -mkdir -p $@
!
! _install_: $(INSTPATH)
! install $(TARGET) $(INSTPATH)
Index: bmake-bcc-flext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/bmake-bcc-flext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bmake-bcc-flext.inc 3 Jan 2005 05:00:28 -0000 1.1
--- bmake-bcc-flext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,84 ****
! # 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
--- 1,70 ----
! # 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 $(TARGETPATH)\*.* > nul
! -rmdir /q $(TARGETPATH) > nul
!
! ##############################################
!
! !ifdef SHARED
! FLEXTLIBINST=$(FLEXTSHLIB)
! !else
! FLEXTLIBINST=$(FLEXTLIB)
! !endif
!
! _install_:
! @if not exist $@ mkdir $(FLEXTINC) > nul
! @if not exist $@ mkdir $(FLEXTLIB) > nul
! @if not exist $@ mkdir $(FLEXTLIBINST) > nul
!
! 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 $(FLEXTLIB) > nul
Index: gnumake-mingw-ext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gnumake-mingw-ext.inc 3 Jan 2005 05:00:29 -0000 1.1
--- gnumake-mingw-ext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,43 ****
! # 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))
--- 1,50 ----
! # build class specific settings
!
! INCPATH += -I$(FLEXTINC)
! LIBPATH += -L$(FLEXTLIB) -L$(FLEXTSHLIB)
!
! ifdef SHARED
! LIBS += $(FLEXTSHLIB)/lib$(FLEXTNAME).dll
! else
! LIBS += -l$(FLEXTNAME)
! endif
!
! ##############################################
!
! # default target
! _build_: $(TARGET)
!
! #$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
! # touch $@
!
! $(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 $@
!
! ##############################################
!
! _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))"
Index: gnumake-mingw-flext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gnumake-mingw-flext.inc 3 Jan 2005 05:00:29 -0000 1.1
--- gnumake-mingw-flext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,55 ****
! # 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
--- 1,57 ----
! # build class specific settings
!
! ##############################################
!
! # default target
! _build_: $(TARGET)
!
! #$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
! # touch $@
!
! $(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)
! ifdef SHARED
! $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
! -strip --strip-unneeded $@
! else
! $(AR) rc $@ $(COBJS) $(CPPOBJS)
! endif
!
! ##############################################
!
! _clean_:
! -cmd /c "del /q $(subst /,\,$(TARGETPATH)/*.*)" > nul
! -cmd /c "rmdir /q $(subst /,\,$(TARGETPATH))" > nul
!
! ##############################################
!
! ifdef SHARED
! FLEXTLIBINST=$(FLEXTSHLIB)
! else
! FLEXTLIBINST=$(FLEXTLIB)
! 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
Index: gnumake-cygwin-flext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-cygwin-flext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gnumake-cygwin-flext.inc 3 Jan 2005 05:00:28 -0000 1.1
--- gnumake-cygwin-flext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,51 ****
! # 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)
--- 1,52 ----
! # 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 $@
! strip --strip-unneeded $@
! 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)
Index: gnumake-cygwin.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/gnumake-cygwin.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gnumake-cygwin.inc 3 Jan 2005 05:00:28 -0000 1.1
--- gnumake-cygwin.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,10 ****
##############################################
! TARGETPATH=$(OUTPATH)/$(OUTSUB)
TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
! LDFLAGS += -shared -Wl,-x
##############################################
--- 1,11 ----
##############################################
! OBJPATH=$(OUTPATH)/$(OUTSUB)
! TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
! LDFLAGS += -shared
##############################################
***************
*** 21,24 ****
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)))
--- 22,25 ----
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
! COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS)))
! CPPOBJS=$(patsubst %.cpp,$(OBJPATH)/%.opp,$(filter %.cpp,$(SRCS)))
Index: nmake-msvc-flext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/nmake-msvc-flext.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** nmake-msvc-flext.inc 3 Jan 2005 05:00:29 -0000 1.1
--- nmake-msvc-flext.inc 5 Jan 2005 05:04:11 -0000 1.2
***************
*** 1,66 ****
! # 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
--- 1,65 ----
! # 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 $(TARGETPATH)\*.* > nul
! -rmdir /q $(TARGETPATH) > 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