aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/make-inc.pd-msvc
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-10-22 23:07:10 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-10-22 23:07:10 +0000
commitd62e56f4df9594f72ce501f5e19c974fd18e7295 (patch)
tree635d4af7a7c2425098e60ca277086ec436b617f7 /externals/grill/flext/make-inc.pd-msvc
parentc6f373c281ecb5cd1f4aa7a070e15cc61ab8793c (diff)
This commit was generated by cvs2svn to compensate for changes in r186,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=187
Diffstat (limited to 'externals/grill/flext/make-inc.pd-msvc')
-rw-r--r--externals/grill/flext/make-inc.pd-msvc99
1 files changed, 99 insertions, 0 deletions
diff --git a/externals/grill/flext/make-inc.pd-msvc b/externals/grill/flext/make-inc.pd-msvc
new file mode 100644
index 00000000..2bd528d9
--- /dev/null
+++ b/externals/grill/flext/make-inc.pd-msvc
@@ -0,0 +1,99 @@
+# flext - C++ layer for Max/MSP and pd (pure data) externals
+# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net)
+#
+# ----- for internal use ----------------------
+#
+
+!include config-pd-msvc.txt
+
+# source files
+SOURCE=source
+
+# includes
+INCPATH=/I$(MSVCPATH)\include /I$(PDPATH)\src /I$(SOURCE)
+
+!ifdef SNDOBJ
+INCPATH=$(INCPATH) /I$(SNDOBJ)
+!endif
+
+# compiler definitions and flags
+DEFS=/DPD /DNT
+
+CFLAGS=/GR /GD /G6
+OFLAGS=/Ox
+DFLAGS=/Od /Zi
+
+TARGET=pdwin # appendix to lib name
+
+
+!ifdef FLEXT_THREADS
+DEFS=$(DEFS) /DFLEXT_THREADS
+
+!ifndef _DEBUG
+CFLAGS=$(CFLAGS) $(OFLAGS) /MT
+OBJPATH=t
+!else
+CFLAGS=$(CFLAGS) $(DFLAGS) /MTd
+OBJPATH=td
+!endif
+
+!else
+
+!ifndef _DEBUG
+CFLAGS=$(CFLAGS) $(OFLAGS) /ML
+OBJPATH=s
+!else
+CFLAGS=$(CFLAGS) $(DFLAGS) /MLd
+OBJPATH=sd
+!endif
+
+!endif
+
+
+
+# the rest can stay untouched
+# ----------------------------------------------
+
+# all the source files from the package
+!include make-files.txt
+
+!ifdef SNDOBJ
+SRCS=$(SRCS) flsndobj.cpp
+HDRS=$(HDRS) flsndobj.h
+!endif
+
+#default target
+all: $(OUTPATH)\$(NAME)-$(TARGET).lib
+
+# remove build
+clean:
+ -cd $(OUTPATH)
+ -del /s /q $(OBJPATH) > nul
+ -rmdir $(OBJPATH)
+ -cd ..
+ -del /q $(OUTPATH)\$(NAME)-$(TARGET).lib > nul
+ -rmdir $(OUTPATH)
+
+# -----------------------------------------------
+
+OBJS= $(SRCS:.cpp=.obj)
+
+{$(SOURCE)\}.cpp.obj:
+ @-if not exist $(OUTPATH) mkdir $(OUTPATH)
+ @cd $(OUTPATH)
+ @-if not exist $(OBJPATH) mkdir $(OBJPATH)
+ @cd ..
+ cl /c $(CFLAGS) $(DEFS) $(INCPATH) /Fo$(OUTPATH)\$(OBJPATH)\$@ $<
+
+$(OUTPATH)\$(NAME)-$(TARGET).lib: $(OBJS)
+ @cd $(OUTPATH)\$(OBJPATH)
+ lib /OUT:..\$(NAME)-$(TARGET).lib $**
+ @cd ..\..
+!ifdef INSTALL
+!if "$(INSTALL)" == "yes"
+ @-if not exist $(OBJPATH) mkdir $(INSTDIR)
+ copy $(OUTPATH)\$(NAME)-$(TARGET).lib $(INSTDIR) > nul
+ copy $(SOURCE)\*.h $(INSTDIR) > nul
+!endif
+!endif
+