aboutsummaryrefslogtreecommitdiff
path: root/externals/build/win
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2005-05-22 13:59:31 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2005-05-22 13:59:31 +0000
commitf10af12c104b350b88a94fa95b89beb779c10822 (patch)
tree089d16cda8ec6c81785752eda3a5157181c02e7f /externals/build/win
parentcc51a787202ef572e03a7c15c41c381c832dc45c (diff)
- Added the -mms-bitfields flag (compiles against the official Pd)
- Changed path where pd is looked for (looks for the official Pd) - Some of the externals do not compile, make sure make -k is invoked svn path=/trunk/; revision=3063
Diffstat (limited to 'externals/build/win')
-rw-r--r--externals/build/win/makefile35
1 files changed, 23 insertions, 12 deletions
diff --git a/externals/build/win/makefile b/externals/build/win/makefile
index b1e77ca8..c9289591 100644
--- a/externals/build/win/makefile
+++ b/externals/build/win/makefile
@@ -1,29 +1,40 @@
-prefix=../../..
+
+# Adapt the PDPATH if your pd is not installed in the standard place
+
+PDPATH="$(PROGRAMFILES)/pd"
+
+
+
EXTERNALS = $(shell ls ../src)
-all: $(EXTERNALS:.c=.dll)
+all:
+ make -k externals
+
+externals: $(EXTERNALS:.c=.dll)
.SUFFIXES: .dll
-CFLAGS = -DPD -DMSW -DNT -Wall -W -Wshadow -Wstrict-prototypes \
+DEFINES = -DPD -DNT
+CFLAGS = -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
-INCLUDE = -I. -I.. -I ../../../pd/src -I../include -I/usr/local/include
+INCLUDE = -I. -I.. -I$(PDPATH)/src
+
%.dll: ../src/%.c
- $(CC) $(CFLAGS) $(INCLUDE) -o "$*.o" -c "../src/$*.c"
- gcc -shared -o "$*.dll" "$*.o" $(prefix)/bin/pd.dll \
- `test -f $*.libs && cat $*.libs` -L/usr/local/lib \
- `test -f ../src/$*.libs && cat ../src/$*.libs`
+ $(CC) -mms-bitfields $(CFLAGS) $(DEFINES) $(INCLUDE) -o "$*.o" -c "../src/$*.c"
+ gcc -shared -o "$*.dll" "$*.o" $(PDPATH)/bin/pd.dll \
+ `test -f $*.libs && cat $*.libs` `test -f ../src/$*.libs && cat ../src/$*.libs`
+
clean:
-rm *.a *.def *.dll *.o
install-doc:
- @test -d $(prefix)/doc/5.reference || mkdir -p $(prefix)/doc/5.reference
+ @test -d $(PDPATH)/doc/5.reference || mkdir -p $(PDPATH)/doc/5.reference
cd ../doc && make all
- cp -r ../doc/* $(prefix)/doc/5.reference
+ cp -r ../doc/* $(PDPATH)/doc/5.reference
install: install-doc
- @test -d $(prefix)/extra || mkdir -p $(prefix)/extra
- install *.dll $(prefix)/extra
+ @test -d $(PDPATH)/extra || mkdir -p $(PDPATH)/extra
+ install *.dll $(PDPATH)/extra