aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/build/win
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/build/win')
-rw-r--r--externals/grill/flext/build/win/make-bcc.inc85
-rw-r--r--externals/grill/flext/build/win/make-cygwin.inc68
-rw-r--r--externals/grill/flext/build/win/make-mingw.inc68
-rw-r--r--externals/grill/flext/build/win/make-msvc.inc68
-rw-r--r--externals/grill/flext/build/win/max/config-mingw.def17
-rw-r--r--externals/grill/flext/build/win/max/config-msvc.def17
-rw-r--r--externals/grill/flext/build/win/max/make-mingw.inc35
-rw-r--r--externals/grill/flext/build/win/max/make-msvc.inc35
-rw-r--r--externals/grill/flext/build/win/pd/config-bcc.def19
-rw-r--r--externals/grill/flext/build/win/pd/config-cygwin.def18
-rw-r--r--externals/grill/flext/build/win/pd/config-mingw.def15
-rw-r--r--externals/grill/flext/build/win/pd/config-msvc.def19
-rw-r--r--externals/grill/flext/build/win/pd/make-bcc.inc35
-rw-r--r--externals/grill/flext/build/win/pd/make-cygwin.inc43
-rw-r--r--externals/grill/flext/build/win/pd/make-mingw.inc34
-rw-r--r--externals/grill/flext/build/win/pd/make-msvc.inc34
16 files changed, 610 insertions, 0 deletions
diff --git a/externals/grill/flext/build/win/make-bcc.inc b/externals/grill/flext/build/win/make-bcc.inc
new file mode 100644
index 00000000..2ef1acfc
--- /dev/null
+++ b/externals/grill/flext/build/win/make-bcc.inc
@@ -0,0 +1,85 @@
+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 ..
+
+$(INSTPATH):
+ -mkdir $@
+
+# remove build
+clean:
+ -del /q $(OUTPATH) > nul
+ -rmdir $(OUTPATH) > nul
+
+# install build
+install: $(INSTPATH) $(TARGET)
+ copy $(TARGET) $(INSTPATH) > nul
diff --git a/externals/grill/flext/build/win/make-cygwin.inc b/externals/grill/flext/build/win/make-cygwin.inc
new file mode 100644
index 00000000..3c474864
--- /dev/null
+++ b/externals/grill/flext/build/win/make-cygwin.inc
@@ -0,0 +1,68 @@
+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)
diff --git a/externals/grill/flext/build/win/make-mingw.inc b/externals/grill/flext/build/win/make-mingw.inc
new file mode 100644
index 00000000..3c4e4b1d
--- /dev/null
+++ b/externals/grill/flext/build/win/make-mingw.inc
@@ -0,0 +1,68 @@
+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 $(subst /,\,$@)
+
+$(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)
+
+$(INSTPATH):
+ -mkdir $(subst /,\,$@)
+
+install:: $(INSTPATH)
+
+install:: $(TARGET)
+ copy $(subst /,\,$^ $(INSTPATH))
+
+.PHONY: clean
+clean:
+ -del $(subst /,\,$(COBJS) $(CPPOBJS) $(TARGET))
diff --git a/externals/grill/flext/build/win/make-msvc.inc b/externals/grill/flext/build/win/make-msvc.inc
new file mode 100644
index 00000000..1fc06c8f
--- /dev/null
+++ b/externals/grill/flext/build/win/make-msvc.inc
@@ -0,0 +1,68 @@
+INCPATH=$(INCPATH) /I$(FLEXTPATH)
+LIBPATH=$(LIBPATH) /LIBPATH:$(FLEXTPATH)
+
+!ifdef MSVCPATH
+INCPATH=$(INCPATH) /I$(MSVCPATH)\include
+LIBPATH=$(LIBPATH) /LIBPATH:$(MSVCPATH)\lib
+!endif
+
+# for VC7 - enable exception handling
+CFLAGS=$(CFLAGS) /EHsc
+
+##############################################
+
+# 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
+
+!else
+# --- static single-threaded ---
+
+!endif
+
+##############################################
+
+# default target
+all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT)
+
+OBJS= $(SRCS:.c=.obj)
+OBJS= $(OBJS:.objpp=.obj)
+
+$(OUTPATH):
+ -mkdir $(OUTPATH) > nul
+
+{$(SRCDIR)}.cpp{}.obj:
+ cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)\$@
+
+{$(SRCDIR)}.c{}.obj:
+ cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)\$@
+
+$(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
diff --git a/externals/grill/flext/build/win/max/config-mingw.def b/externals/grill/flext/build/win/max/config-mingw.def
new file mode 100644
index 00000000..d6bbd4dc
--- /dev/null
+++ b/externals/grill/flext/build/win/max/config-mingw.def
@@ -0,0 +1,17 @@
+# 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
diff --git a/externals/grill/flext/build/win/max/config-msvc.def b/externals/grill/flext/build/win/max/config-msvc.def
new file mode 100644
index 00000000..a7db2d2c
--- /dev/null
+++ b/externals/grill/flext/build/win/max/config-msvc.def
@@ -0,0 +1,17 @@
+# 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-msvc
+
+# some user-definable flags
+# (check if they match your system!)
+OFLAGS=/G6 /Ox /arch:SSE
diff --git a/externals/grill/flext/build/win/max/make-mingw.inc b/externals/grill/flext/build/win/max/make-mingw.inc
new file mode 100644
index 00000000..c34825f8
--- /dev/null
+++ b/externals/grill/flext/build/win/max/make-mingw.inc
@@ -0,0 +1,35 @@
+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
diff --git a/externals/grill/flext/build/win/max/make-msvc.inc b/externals/grill/flext/build/win/max/make-msvc.inc
new file mode 100644
index 00000000..636029fa
--- /dev/null
+++ b/externals/grill/flext/build/win/max/make-msvc.inc
@@ -0,0 +1,35 @@
+DEFS=$(DEFS) /DFLEXT_SYS=1
+CFLAGS=$(CFLAGS) /Zp2
+
+INCPATH=$(INCPATH) /I$(MAXSDKPATH)\max-includes /I$(MAXSDKPATH)\msp-includes
+LIBPATH=$(LIBPATH) /LIBPATH:$(MAXSDKPATH)\max-includes /LIBPATH:$(MAXSDKPATH)\msp-includes
+
+# these are both in MAXSDKPATH
+LIBS=$(LIBS) maxapi.lib maxaudio.lib
+
+EXT=mxe
+
+#########################################
+
+!ifdef SHARED
+# --- shared ---
+
+!elseifdef THREADED
+# --- static multi-threaded ---
+
+!ifdef DEBUG
+LIBS=$(LIBS) flext_td-maxwin.lib
+!else
+LIBS=$(LIBS) flext_t-maxwin.lib
+!endif
+
+!else
+# --- static single-threaded ---
+
+!ifdef DEBUG
+LIBS=$(LIBS) flext_d-maxwin.lib
+!else
+LIBS=$(LIBS) flext-maxwin.lib
+!endif
+
+!endif
diff --git a/externals/grill/flext/build/win/pd/config-bcc.def b/externals/grill/flext/build/win/pd/config-bcc.def
new file mode 100644
index 00000000..b93cece3
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/config-bcc.def
@@ -0,0 +1,19 @@
+# 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
+
diff --git a/externals/grill/flext/build/win/pd/config-cygwin.def b/externals/grill/flext/build/win/pd/config-cygwin.def
new file mode 100644
index 00000000..1c92fe66
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/config-cygwin.def
@@ -0,0 +1,18 @@
+# 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
diff --git a/externals/grill/flext/build/win/pd/config-mingw.def b/externals/grill/flext/build/win/pd/config-mingw.def
new file mode 100644
index 00000000..a721d45d
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/config-mingw.def
@@ -0,0 +1,15 @@
+# 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
diff --git a/externals/grill/flext/build/win/pd/config-msvc.def b/externals/grill/flext/build/win/pd/config-msvc.def
new file mode 100644
index 00000000..aa4c5feb
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/config-msvc.def
@@ -0,0 +1,19 @@
+# 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 MS VC++?
+# (not necessary if the build is run with the compiler environment)
+# MSVCPATH=C:\Programme\Microsoft Visual Studio .NET 2003\Vc7
+
+# where should the external be built?
+OUTPATH=pd-msvc
+
+# user defined compiler flags
+# (check if they match your system!)
+OFLAGS=/G6 /Ox /arch:SSE
diff --git a/externals/grill/flext/build/win/pd/make-bcc.inc b/externals/grill/flext/build/win/pd/make-bcc.inc
new file mode 100644
index 00000000..bcc062eb
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/make-bcc.inc
@@ -0,0 +1,35 @@
+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
diff --git a/externals/grill/flext/build/win/pd/make-cygwin.inc b/externals/grill/flext/build/win/pd/make-cygwin.inc
new file mode 100644
index 00000000..e8913af7
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/make-cygwin.inc
@@ -0,0 +1,43 @@
+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
diff --git a/externals/grill/flext/build/win/pd/make-mingw.inc b/externals/grill/flext/build/win/pd/make-mingw.inc
new file mode 100644
index 00000000..a49e5b7a
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/make-mingw.inc
@@ -0,0 +1,34 @@
+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
diff --git a/externals/grill/flext/build/win/pd/make-msvc.inc b/externals/grill/flext/build/win/pd/make-msvc.inc
new file mode 100644
index 00000000..cec66266
--- /dev/null
+++ b/externals/grill/flext/build/win/pd/make-msvc.inc
@@ -0,0 +1,34 @@
+DEFS=$(DEFS) /DFLEXT_SYS=2
+
+INCPATH=$(INCPATH) /I$(PDPATH)\src
+LIBPATH=$(LIBPATH) /LIBPATH:$(PDPATH)\bin
+
+# these are both in PDPATH
+LIBS=$(LIBS) pd.lib pthreadVC.lib
+
+EXT=dll
+
+#########################################
+
+!ifdef SHARED
+# --- shared ---
+
+!elseifdef 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