Update of /cvsroot/pure-data/externals/grill/flext/build
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4934/build
Modified Files:
config-win-max-msvc.def config-win-pd-msvc.def
make-win-gen-msvc.inc make-win-max-msvc.inc
make-win-pd-msvc.inc
Added Files:
bmake.mak config-lnx-pd-gcc.def config-mac-pd-gcc.def
config-win-max-mingw.def config-win-pd-bcc.def
config-win-pd-cygwin.def config-win-pd-mingw.def gnumake.mak
make-lnx-gen-gcc.inc make-lnx-pd-gcc.inc make-mac-gen-gcc.inc
make-mac-pd-gcc.inc make-win-gen-bcc.inc
make-win-gen-cygwin.inc make-win-gen-mingw.inc
make-win-max-mingw.inc make-win-pd-bcc.inc
make-win-pd-cygwin.inc make-win-pd-mingw.inc nmake.mak
Removed Files:
config-win-max-msvc.txt config-win-pd-msvc.txt
Log Message:
updated build system for linux
updated make system for BCC
build system for flext-based externals
updated build system
add xcode project
comply to build system
--- NEW FILE: config-win-pd-cygwin.def ---
# where is PD?
# (it seems like cygwin compilation is only working if
# there are no pthread.h and sched.h in the PD src subfolder
# - these are provided by cygwin )
PDPATH=/cygdrive/c/programme/audio/pd
# where should the external be installed?
INSTPATH=$(PDPATH)/extra
# where do the flext headers and libraries reside?
FLEXTPATH=$(PDPATH)/flext
# where should the external be built?
OUTPATH=pd-cygwin
# user defined compiler flags
# (check if they match your system!)
OFLAGS=-O2 -march=pentium4 -msse
--- NEW FILE: bmake.mak ---
# PLATFORM - win
# RTSYS - pd/max
# COMPILER - bcc
# this should be improved
BUILDPATH=..\flext\build
# general settings
!include $(BUILDPATH)\config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt
###############################
# these are project specific
# special package settings
!include config-$(PLATFORM)-$(COMPILER).txt
# package specific make stuff
!include makefile-$(PLATFORM)-$(COMPILER).txt
# package info
!include make-files.txt
##############################
# platform-specific make stuff
!include $(BUILDPATH)\make-$(PLATFORM)-$(RTSYS)-$(COMPILER).inc
# general make stuff
!include $(BUILDPATH)\make-$(PLATFORM)-gen-$(COMPILER).inc
--- NEW FILE: config-lnx-pd-gcc.def ---
# where is the PD source package?
PDPATH=/usr/local/src/pd-0.38-0test10
# where should the external be installed?
INSTPATH=/usr/local/lib/pd/extra
# where do the flext headers and libraries reside?
FLEXTPATH=/usr/local/lib/pd/flext
# where should the external be built?
OUTPATH=pd-linux
# user defined compiler flags
# (check if they match your system!)
OFLAGS=-O2 -march=pentium4 -msse
--- NEW FILE: config-mac-pd-gcc.def ---
# where is the PD installation?
PDPATH=/usr/local/lib/pd
# where is the PD executable?
PDBIN=/usr/local/bin/pd
# where should the external be installed?
INSTPATH=$(PDPATH)/extra
# where do the flext headers and libraries reside?
FLEXTPATH=$(PDPATH)/flext
# where should the external be built?
OUTPATH=pd-darwin
# user defined compiler flags
# (check if they match your system!)
OFLAGS=-O2 -mcpu=G4 -malign-natural -maltivec -faltivec
--- NEW FILE: make-lnx-pd-gcc.inc ---
DEFS += -DFLEXT_SYS=2
INCPATH += -I$(PDPATH)/src
LIBPATH += -L$(PDPATH)/bin
LDFLAGS +=
LIBS +=
EXT=pd_linux
#########################################
ifdef SHARED
# --- shared ---
ifdef DEBUG
LIBS += -lflext_d
else
LIBS += -lflext
endif
else
ifdef THREADED
# --- static multi-threaded ---
ifdef DEBUG
LIBS += $(FLEXTPATH)/libflext_td.a
else
LIBS += $(FLEXTPATH)/libflext_t.a
endif
else
# --- static single-threaded ---
ifdef DEBUG
LIBS += $(FLEXTPATH)/libflext_d.a
else
LIBS += $(FLEXTPATH)/libflext.a
endif
endif
endif
--- NEW FILE: make-win-pd-cygwin.inc ---
DEFS += -DFLEXT_SYS=2
INCPATH += -I$(PDPATH)/src
LIBPATH += -L$(PDPATH)/bin
LDFLAGS +=
LIBS +=
EXT=dll
#########################################
ifdef SHARED
# --- shared ---
ifdef DEBUG
LIBS += -lflext_d
else
LIBS += -lflext
endif
else
ifdef THREADED
# --- static multi-threaded ---
ifdef DEBUG
LIBS += $(FLEXTPATH)/libflext_td.a
else
LIBS += $(FLEXTPATH)/libflext_t.a
endif
else
# --- static single-threaded ---
ifdef DEBUG
LIBS += $(FLEXTPATH)/libflext_d.a
else
LIBS += $(FLEXTPATH)/libflext.a
endif
endif
endif
--- config-win-max-msvc.txt DELETED ---
--- NEW FILE: make-mac-gen-gcc.inc ---
LDFLAGS += -Wl,-x -framework ApplicationServices -framework vecLib
ifdef DEBUG
CFLAGS += -g -D_DEBUG
else
CFLAGS += $(OFLAGS) -DNDEBUG
LDFLAGS += -Wl,-S
endif
##############################################
INCPATH += -I$(FLEXTPATH)
LIBPATH += -L$(FLEXTPATH)
ifdef SHARED
# --- shared ---
DEFS += -DFLEXT_SHARED
else
ifdef THREADED
# --- static multi-threaded ---
DEFS += -DFLEXT_THREADS
else
# --- static single-threaded ---
endif
endif
##############################################
TARGET=$(OUTPATH)/$(NAME).$(EXT)
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS)))
# default target
all: $(OUTPATH) $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
touch $@
$(OUTPATH):
mkdir $(OUTPATH)
$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp
$(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(OUTPATH)/%.o : $(SRCDIR)/%.c
$(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) : $(COBJS) $(CPPOBJS)
$(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
chmod 755 $@
$(INSTPATH):
mkdir $(INSTPATH)
install:: $(INSTPATH)
install:: $(TARGET)
install $^ $(INSTPATH)
.PHONY: clean
clean:
$(RM) $(COBJS) $(CPPOBJS) $(TARGET)
--- NEW FILE: make-win-gen-cygwin.inc ---
LDFLAGS += -shared -Wl,-x
ifdef DEBUG
CFLAGS += -g -D_DEBUG
else
CFLAGS += $(OFLAGS) -DNDEBUG
LDFLAGS += -Wl,-S
endif
##############################################
INCPATH += -I$(FLEXTPATH)
LIBPATH += -L$(FLEXTPATH)
ifdef SHARED
# --- shared ---
DEFS += -DFLEXT_SHARED
else
ifdef THREADED
# --- static multi-threaded ---
DEFS += -DFLEXT_THREADS
else
# --- static single-threaded ---
endif
endif
##############################################
TARGET=$(OUTPATH)/$(NAME).$(EXT)
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS)))
# default target
all: $(OUTPATH) $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
touch $@
$(OUTPATH):
mkdir $(OUTPATH)
$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp
$(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(OUTPATH)/%.o : $(SRCDIR)/%.c
$(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) : $(COBJS) $(CPPOBJS)
$(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
chmod 755 $@
$(INSTPATH):
mkdir $(INSTPATH)
install:: $(INSTPATH)
install:: $(TARGET)
install $^ $(INSTPATH)
.PHONY: clean
clean:
$(RM) $(COBJS) $(CPPOBJS) $(TARGET)
--- NEW FILE: config-win-pd-mingw.def ---
# where is PD?
PDPATH=c:/programme/audio/pd
# where should the external be installed?
INSTPATH=$(PDPATH)/extra
# where do the flext headers and libraries reside?
FLEXTPATH=$(PDPATH)/flext
# where should the external be built?
OUTPATH=pd-mingw
# user defined compiler flags
# (check if they match your system!)
OFLAGS=-O2 -march=pentium4 -msse
--- NEW FILE: make-lnx-gen-gcc.inc ---
LDFLAGS += -shared -Wl,-x
ifdef DEBUG
CFLAGS += -g -D_DEBUG
else
CFLAGS += $(OFLAGS) -DNDEBUG
LDFLAGS += -Wl,-S
endif
##############################################
INCPATH += -I$(FLEXTPATH)
LIBPATH += -L$(FLEXTPATH)
ifdef SHARED
# --- shared ---
DEFS += -DFLEXT_SHARED
else
ifdef THREADED
# --- static multi-threaded ---
DEFS += -DFLEXT_THREADS
else
# --- static single-threaded ---
endif
endif
##############################################
TARGET=$(OUTPATH)/$(NAME).$(EXT)
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS)))
# default target
all: $(OUTPATH) $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
touch $@
$(OUTPATH):
mkdir $(OUTPATH)
$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp
$(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(OUTPATH)/%.o : $(SRCDIR)/%.c
$(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) : $(COBJS) $(CPPOBJS)
$(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
chmod 755 $@
$(INSTPATH):
mkdir $(INSTPATH)
install:: $(INSTPATH)
install:: $(TARGET)
install $^ $(INSTPATH)
.PHONY: clean
clean:
$(RM) $(COBJS) $(CPPOBJS) $(TARGET)
--- config-win-pd-msvc.txt DELETED ---
Index: config-win-pd-msvc.def
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/build/config-win-pd-msvc.def,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** config-win-pd-msvc.def 17 Dec 2004 05:01:17 -0000 1.1
--- config-win-pd-msvc.def 18 Dec 2004 05:01:10 -0000 1.2
***************
*** 2,6 ****
PDPATH=c:\programme\audio\pd
! # where do the flext libraries reside?
FLEXTPATH=$(PDPATH)\flext
--- 2,9 ----
PDPATH=c:\programme\audio\pd
! # where should the external be installed?
! INSTPATH=$(PDPATH)\extra
!
! # where do the flext headers and libraries reside?
FLEXTPATH=$(PDPATH)\flext
***************
*** 12,20 ****
OUTPATH=pd-msvc
- # where should the external be installed?
- # (leave blank to omit installation)
- INSTPATH=$(PDPATH)\extra
-
# user defined compiler flags
# (check if they match your system!)
! UFLAGS=/G6 /Ox /arch:SSE
--- 15,19 ----
OUTPATH=pd-msvc
# user defined compiler flags
# (check if they match your system!)
! OFLAGS=/G6 /Ox /arch:SSE
Index: make-win-pd-msvc.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/build/make-win-pd-msvc.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** make-win-pd-msvc.inc 17 Dec 2004 05:01:17 -0000 1.1
--- make-win-pd-msvc.inc 18 Dec 2004 05:01:10 -0000 1.2
***************
*** 11,21 ****
#########################################
! !ifdef FLEXT_SHARED
# --- shared ---
! !elseifdef FLEXT_THREADED
# --- static multi-threaded ---
! !ifdef _DEBUG
LIBS=$(LIBS) flext_td-pdwin.lib
!else
--- 11,21 ----
#########################################
! !ifdef SHARED
# --- shared ---
! !elseifdef THREADED
# --- static multi-threaded ---
! !ifdef DEBUG
LIBS=$(LIBS) flext_td-pdwin.lib
!else
***************
*** 26,30 ****
# --- static single-threaded ---
! !ifdef _DEBUG
LIBS=$(LIBS) flext_d-pdwin.lib
!else
--- 26,30 ----
# --- static single-threaded ---
! !ifdef DEBUG
LIBS=$(LIBS) flext_d-pdwin.lib
!else
--- NEW FILE: make-win-max-mingw.inc ---
DEFS += -DFLEXT_SYS=1
CFLAGS += -fpack-struct=2
INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/msp-includes
LIBPATH += -L$(MAXSDKPATH)/max-includes -L$(MAXSDKPATH)/msp-includes
# these are both in PDPATH
LIBS += -lmaxapi -lmaxaudio
EXT=mxe
#########################################
ifdef SHARED
# --- shared ---
elseifdef THREADED
# --- static multi-threaded ---
ifdef DEBUG
LIBS += -lflext_td-maxwin
else
LIBS += -lflext_t-maxwin
endif
else
# --- static single-threaded ---
ifdef DEBUG
LIBS += -lflext_d-maxwin
else
LIBS += -lflext-maxwin
endif
endif
--- NEW FILE: config-win-pd-bcc.def ---
# where is PD?
PDPATH=c:\programme\audio\pd
# where should the external be installed?
INSTPATH=$(PDPATH)\extra
# where do the flext headers and libraries reside?
FLEXTPATH=$(PDPATH)\flext
# where is BorlandC++?
BCCPATH=C:\Programme\prog\bcc55
# where should the external be built?
OUTPATH=pd-bcc
# user defined compiler flags
# (check if they match your system!)
OFLAGS=-6 -O2 -OS -ff -d
Index: config-win-max-msvc.def
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/build/config-win-max-msvc.def,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** config-win-max-msvc.def 17 Dec 2004 05:01:17 -0000 1.1
--- config-win-max-msvc.def 18 Dec 2004 05:01:10 -0000 1.2
***************
*** 3,12 ****
MAXSDKPATH="c:\data\prog\audio\maxmspsdk_win\4.5 headers\c74support"
! # where do the flext libraries reside?
! FLEXTPATH="%CommonProgramFiles%\Cycling '74\flext"
! # where is MS VC++?
! # (need not be defined if the build is started with the compiler environment set)
! # MSVCPATH="c:\programme\prog\microsoft visual studio\VC98"
# where should the external be built?
--- 3,11 ----
MAXSDKPATH="c:\data\prog\audio\maxmspsdk_win\4.5 headers\c74support"
! # where should the external be installed?
! INSTPATH="%CommonProgramFiles%\Cycling '74\externals\flext"
! # where do the flext headers and libraries reside?
! FLEXTPATH="%CommonProgramFiles%\Cycling '74\flext"
# where should the external be built?
***************
*** 14,22 ****
OUTPATH=max-msvc
- # where should the external be installed?
- # (leave blank to omit installation)
- INSTPATH="%CommonProgramFiles%\Cycling '74\externals\flext"
-
# some user-definable flags
# (check if they match your system!)
! UFLAGS=/G6 /Ox /arch:SSE
--- 13,17 ----
OUTPATH=max-msvc
# some user-definable flags
# (check if they match your system!)
! OFLAGS=/G6 /Ox /arch:SSE
--- NEW FILE: make-mac-pd-gcc.inc ---
DEFS += -DFLEXT_SYS=2
INCPATH += -I$(PDPATH)/src
LIBPATH += -L$(PDPATH)/bin
LDFLAGS += -bundle -bundle_loader $(PDBIN)
LIBS +=
EXT=pd_darwin
#########################################
ifdef SHARED
# --- shared ---
ifdef DEBUG
LIBS += -lflext_d
else
LIBS += -lflext
endif
else
ifdef THREADED
# --- static multi-threaded ---
ifdef DEBUG
LIBS += $(FLEXTPATH)/libflext_td.a
else
LIBS += $(FLEXTPATH)/libflext_t.a
endif
else
# --- static single-threaded ---
ifdef DEBUG
LIBS += $(FLEXTPATH)/libflext_d.a
else
LIBS += $(FLEXTPATH)/libflext.a
endif
endif
endif
--- NEW FILE: make-win-gen-bcc.inc ---
INCPATH=$(INCPATH) -I$(FLEXTPATH)
LIBPATH=$(LIBPATH) -L$(FLEXTPATH)
!ifdef BCCPATH
INCPATH=$(INCPATH) -I$(BCCPATH)\include
LIBPATH=$(LIBPATH) -L$(BCCPATH)\lib
!endif
LIBS=$(LIBS) cw32.lib import32.lib C0D32.OBJ
CFLAGS=$(CFLAGS) -tWD -tWM -w-8004 -w-8027 -w-8057
LDFLAGS=$(LDFLAGS) /C /Tpd
##############################################
# use multithreaded static libraries
!ifdef DEBUG
CFLAGS=$(CFLAGS) -v -D_DEBUG
LDFLAGS=$(LDFLAGS) /v
!else
CFLAGS=$(CFLAGS) $(OFLAGS) -DNDEBUG
!endif
!ifdef SHARED
# --- shared ---
DEFS=$(DEFS) -DFLEXT_SHARED
!else
!ifdef THREADED
# --- static multi-threaded ---
DEFS=$(DEFS) -DFLEXT_THREADS
!else
# --- static single-threaded ---
!endif
!endif
##############################################
TARGET=$(OUTPATH)\$(NAME).$(EXT)
# default target
all: $(OUTPATH) print $(TARGET)
# convert both *.c and *.cpp
OBJSTMP= $(SRCS:.c=.obj)
OBJS= $(OBJSTMP:.objpp=.obj)
print:
echo $(OBJS)
$(OUTPATH):
@-if not exist $< mkdir $<
SETUPFUNCTION=$(NAME)_setup
$(OUTPATH)\$(NAME).def:
@echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $<
# this next line fixes a strange problem with implib - lacking underscore?!
@echo IMPORTS _rtext_retext=PD.rtext_retext >> $<
{$(SRCDIR)}.cpp{}.obj:
bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $<
{$(SRCDIR)}.c{}.obj:
bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $<
$(TARGET) :: $(OUTPATH) $(OUTPATH)\$(NAME).def
$(TARGET) :: $(OBJS)
cd $(OUTPATH)
ilink32 $(LDFLAGS) $(LIBPATH) $** ,..\$<,,$(LIBS),$(NAME).def
cd ..
# remove build
clean:
-del /q $(OUTPATH) > nul
-rmdir $(OUTPATH) > nul
# install build
install:
@-if not exist $(INSTPATH) mkdir $(INSTPATH)
copy $(TARGET) $(INSTPATH) > nul
--- NEW FILE: make-win-pd-bcc.inc ---
DEFS=$(DEFS) /DFLEXT_SYS=2
INCPATH=$(INCPATH) -I$(PDPATH)\src
# these are both in FLEXTPATH
LIBS=$(LIBS) pd.lib pthreadVC.lib
EXT=dll
#########################################
!ifdef SHARED
# --- shared ---
!else
!ifdef THREADED
# --- static multi-threaded ---
!ifdef DEBUG
LIBS=$(LIBS) flext_td-pdwin.lib
!else
LIBS=$(LIBS) flext_t-pdwin.lib
!endif
!else
# --- static single-threaded ---
!ifdef DEBUG
LIBS=$(LIBS) flext_d-pdwin.lib
!else
LIBS=$(LIBS) flext-pdwin.lib
!endif
!endif
!endif
--- NEW FILE: make-win-pd-mingw.inc ---
DEFS += -DFLEXT_SYS=2
INCPATH += -I$(PDPATH)/src
LIBPATH += -L$(PDPATH)/bin
# these are both in PDPATH
LIBS += -lpd -lpthreadVC
EXT=dll
#########################################
ifdef SHARED
# --- shared ---
elseifdef THREADED
# --- static multi-threaded ---
ifdef DEBUG
LIBS += -lflext_td-pdwin
else
LIBS += -lflext_t-pdwin
endif
else
# --- static single-threaded ---
ifdef DEBUG
LIBS += -lflext_d-pdwin
else
LIBS += -lflext-pdwin
endif
endif
Index: make-win-gen-msvc.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/build/make-win-gen-msvc.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** make-win-gen-msvc.inc 17 Dec 2004 05:01:17 -0000 1.1
--- make-win-gen-msvc.inc 18 Dec 2004 05:01:10 -0000 1.2
***************
*** 7,14 ****
!endif
! # add user flags
! CFLAGS=$(UFLAGS)
!
! # for VC7 - exception handling
CFLAGS=$(CFLAGS) /EHsc
--- 7,11 ----
!endif
! # for VC7 - enable exception handling
CFLAGS=$(CFLAGS) /EHsc
***************
*** 16,30 ****
# use multithreaded static libraries
! !ifdef _DEBUG
! CFLAGS=$(CFLAGS) /DMTd
!else
! CFLAGS=$(CFLAGS) /DMT
!endif
! !ifdef FLEXT_SHARED
# --- shared ---
DEFS=$(DEFS) /DFLEXT_SHARED
! !elseifdef FLEXT_THREADED
# --- static multi-threaded ---
DEFS=$(DEFS) /DFLEXT_THREADS
--- 13,29 ----
# use multithreaded static libraries
! !ifdef DEBUG
! CFLAGS=$(CFLAGS) /D_DEBUG /DMTd
! LDFLAGS=$(LDFLAGS) /DEBUG
!else
! CFLAGS=$(CFLAGS) $(OFLAGS) /DNDEBUG /DMT
! LDFLAGS=$(LDFLAGS) /INCREMENTAL:NO
!endif
! !ifdef SHARED
# --- shared ---
DEFS=$(DEFS) /DFLEXT_SHARED
! !elseifdef THREADED
# --- static multi-threaded ---
DEFS=$(DEFS) /DFLEXT_THREADS
***************
*** 37,47 ****
##############################################
all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT)
- # remove build
- clean:
- -del /q $(OUTPATH) > nul
- -rmdir $(OUTPATH) > nul
-
OBJS= $(SRCS:.c=.obj)
OBJS= $(OBJS:.objpp=.obj)
--- 36,42 ----
##############################################
+ # default target
all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT)
OBJS= $(SRCS:.c=.obj)
OBJS= $(OBJS:.objpp=.obj)
***************
*** 58,67 ****
$(OUTPATH)\$(NAME).$(EXT): $(OBJS)
cd $(OUTPATH)
! link /DLL $(LDFLAGS) /out:$(NAME).$(EXT) /INCREMENTAL:NO $** $(LIBS) $(LIBPATH)
@-del *.exp
@-del *.lib
cd ..
! !ifdef INSTPATH
@-if not exist $(INSTPATH) mkdir $(INSTPATH)
! copy $@ $(INSTPATH) > nul
! !endif
--- 53,68 ----
$(OUTPATH)\$(NAME).$(EXT): $(OBJS)
cd $(OUTPATH)
! link /DLL $(LDFLAGS) /out:$(NAME).$(EXT) $** $(LIBS) $(LIBPATH)
@-del *.exp
@-del *.lib
cd ..
!
! # remove build
! clean:
! -del /q $(OUTPATH) > nul
! -rmdir $(OUTPATH) > nul
!
! # install build
! install:
@-if not exist $(INSTPATH) mkdir $(INSTPATH)
! copy $(OUTPATH)\$(NAME).$(EXT) $(INSTPATH) > nul
--- NEW FILE: gnumake.mak ---
# PLATFORM - win/mac/lnx
# RTSYS - pd/max
# COMPILER - msvc/gcc/mingw/cygwin
# this should be improved
BUILDPATH=../flext/build
include $(BUILDPATH)/config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt
###############################
# these are project specific
# special settings
include config-$(PLATFORM)-$(COMPILER).txt
# package specific make stuff
include makefile-$(PLATFORM)-$(COMPILER).txt
# package info
include make-files.txt
##############################
# platform-specific make stuff
include $(BUILDPATH)/make-$(PLATFORM)-$(RTSYS)-$(COMPILER).inc
# general make stuff
include $(BUILDPATH)/make-$(PLATFORM)-gen-$(COMPILER).inc
--- NEW FILE: make-win-gen-mingw.inc ---
LDFLAGS += -shared -Wl,-x
ifdef DEBUG
CFLAGS += -g -D_DEBUG
else
CFLAGS += $(OFLAGS) -DNDEBUG
LDFLAGS += -Wl,-S
endif
##############################################
INCPATH += -I$(FLEXTPATH)
LIBPATH += -L$(FLEXTPATH)
ifdef SHARED
# --- shared ---
DEFS += -DFLEXT_SHARED
else
ifdef THREADED
# --- static multi-threaded ---
DEFS += -DFLEXT_THREADS
else
# --- static single-threaded ---
endif
endif
##############################################
TARGET=$(OUTPATH)/$(NAME).$(EXT)
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS)))
CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS)))
# default target
all: $(OUTPATH) $(TARGET)
#$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
# touch $@
$(OUTPATH):
mkdir $(OUTPATH)
$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp
$(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(OUTPATH)/%.o : $(SRCDIR)/%.c
$(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) : $(COBJS) $(CPPOBJS)
$(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
chmod 755 $@
$(INSTPATH):
mkdir $(INSTPATH)
install:: $(INSTPATH)
install:: $(TARGET)
$(CP) $^ $(INSTPATH)
.PHONY: clean
clean:
$(RM) $(COBJS) $(CPPOBJS) $(TARGET)
--- NEW FILE: config-win-max-mingw.def ---
# where are the Max/MSP SDK header files?
# you should have the latest version!
MAXSDKPATH="c:/data/prog/audio/maxmspsdk_win/4.5 headers/c74support"
# where should the external be installed?
INSTPATH="%CommonProgramFiles%/Cycling '74/externals/flext"
# where do the flext headers and libraries reside?
FLEXTPATH="%CommonProgramFiles%/Cycling '74/flext"
# where should the external be built?
# (path for temporary files)
OUTPATH=max-mingw
# some user-definable flags
# (check if they match your system!)
OFLAGS=-O2 -march=pentium4 -msse
Index: make-win-max-msvc.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/build/make-win-max-msvc.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** make-win-max-msvc.inc 17 Dec 2004 05:01:17 -0000 1.1
--- make-win-max-msvc.inc 18 Dec 2004 05:01:10 -0000 1.2
***************
*** 12,22 ****
#########################################
! !ifdef FLEXT_SHARED
# --- shared ---
! !elseifdef FLEXT_THREADED
# --- static multi-threaded ---
! !ifdef _DEBUG
LIBS=$(LIBS) flext_td-maxwin.lib
!else
--- 12,22 ----
#########################################
! !ifdef SHARED
# --- shared ---
! !elseifdef THREADED
# --- static multi-threaded ---
! !ifdef DEBUG
LIBS=$(LIBS) flext_td-maxwin.lib
!else
***************
*** 27,31 ****
# --- static single-threaded ---
! !ifdef _DEBUG
LIBS=$(LIBS) flext_d-maxwin.lib
!else
--- 27,31 ----
# --- static single-threaded ---
! !ifdef DEBUG
LIBS=$(LIBS) flext_d-maxwin.lib
!else
--- NEW FILE: nmake.mak ---
# PLATFORM - win/mac/lnx
# RTSYS - pd/max
# COMPILER - msvc/gcc/mingw/cygwin
# general settings
!include config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt
###############################
# these are project specific
# special package settings
!if exist(config-$(PLATFORM)-$(COMPILER).txt)
!include config-$(PLATFORM)-$(COMPILER).txt
!endif
# package specific make stuff
!if exist(makefile-$(PLATFORM)-$(COMPILER).txt)
!include makefile-$(PLATFORM)-$(COMPILER).txt
!endif
# package info
!include make-files.txt
##############################
# platform-specific make stuff
!include make-$(PLATFORM)-$(RTSYS)-$(COMPILER).inc
# general make stuff
!include make-$(PLATFORM)-gen-$(COMPILER).inc