summaryrefslogtreecommitdiff
path: root/plugins/ao
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-30 22:15:04 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-30 22:15:04 +0200
commit85fd12a315d55de041ac3b5ef1ef22c27715bd65 (patch)
tree548c9b22f0b0c50c2f3a67f014a84c4a44939be6 /plugins/ao
parentffc6278146bd03ca73f6768c88b37865a1ccd5fc (diff)
fixed ao static build
Diffstat (limited to 'plugins/ao')
-rw-r--r--plugins/ao/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ao/Makefile b/plugins/ao/Makefile
index 3b8e24ad..890c0010 100644
--- a/plugins/ao/Makefile
+++ b/plugins/ao/Makefile
@@ -2,13 +2,14 @@ OUT=ao.so
CC=gcc
-ZLIB_LIBS?=-lz
+#ZLIB_LIBS?=-lz
+ZLIB_LIBS=../../lib-x86-32/libz.a
CFLAGS?=-O2 -fomit-frame-pointer
CFLAGS+=-Wall -fPIC -DPATH_MAX=1024 -DHAS_PSXCPU=1 -I../.. -I./ -Ieng_ssf -Ieng_qsf -Ieng_dsf
CFLAGS+=$(STATIC_CFLAGS)
-LDFLAGS+=-module -shared $(ZLIB_LIBS) -lm
+LDFLAGS+=-module -shared -lm
SOURCES=plugin.c main.c corlett.c\
eng_dsf/eng_dsf.c eng_dsf/dc_hw.c eng_dsf/aica.c eng_dsf/aicadsp.c eng_dsf/arm7.c eng_dsf/arm7i.c\
@@ -24,7 +25,7 @@ OBJECTS=$(SOURCES:.c=.o)
all: $(SOURCES) $(OUT)
$(OUT): $(OBJECTS)
- $(CC) $(LDFLAGS) $(OBJECTS) -o $@
+ $(CC) $(LDFLAGS) $(OBJECTS) -o $@ $(ZLIB_LIBS)
.c.o:
$(CC) $(CFLAGS) $< -c -o $@