diff options
author | august black <augmentus@users.sourceforge.net> | 2010-11-05 15:25:30 +0000 |
---|---|---|
committer | august black <augmentus@users.sourceforge.net> | 2010-11-05 15:25:30 +0000 |
commit | 1d4c449ca8d2a49197fe4000df47f6df95e5e380 (patch) | |
tree | cf0cb9f57eb21f9709bd2fcab1d233438b3d0b69 /mp3cast~ | |
parent | 606bb9189e1abd574c299ac84e738d68cefb21f2 (diff) |
changed makefile to support 64bit recognition, if it finds 64 it adds -fPIC to compile options
svn path=/trunk/externals/unauthorized/; revision=14265
Diffstat (limited to 'mp3cast~')
-rw-r--r-- | mp3cast~/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mp3cast~/Makefile b/mp3cast~/Makefile index 4bd2813..923edb2 100644 --- a/mp3cast~/Makefile +++ b/mp3cast~/Makefile @@ -62,12 +62,20 @@ pd_linux: $(NAME).pd_linux LINUXCFLAGS = -DPD -DUNIX -DICECAST -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes \
- -Wno-unused -Wno-parentheses -Wno-switch
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+LBITS := $(shell getconf LONG_BIT)
+ifeq ($(LBITS),64)
+ # do 64 bit stuff here, like set some CFLAGS
+ARCHFLAGS= -fPIC
+else
+ARCHFLAGS=
+endif
LINUXINCLUDE = -I../../src
.c.pd_linux:
- cc $(LINUXCFLAGS) $(LINUXINCLUDE) -DHAVE_STRCHR -o $*.o -c $*.c
+ cc $(LINUXCFLAGS) $(ARCHFLAGS) $(LINUXINCLUDE) -DHAVE_STRCHR -o $*.o -c $*.c
ld --export-dynamic -shared -o $*.pd_linux $*.o -lc -lm -L/usr/local/lib -lmp3lame
strip --strip-unneeded $*.pd_linux
rm -f $*.o ../$*.pd_linux
|