summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-02 17:37:22 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-02 17:37:22 +0100
commit314c04840b5d576e7178f13e75a21b87e8bf01de (patch)
treed08abffcaf5bdc3ec02a7de0ec1f9604c780b7d9 /Makefile
parente51ddd7c2ca49beaee361861d1989b2597aac5bd (diff)
Update examples
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cb1fe22..2ae73d4 100644
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,9 @@ ifeq ($(uname_S),SunOS)
STLIBNAME?=libhiredis.a
STLIB_MAKE_CMD?=ar rcs ${STLIBNAME} ${OBJ}
else ifeq ($(uname_S),Darwin)
- ARCH?= -arch i386 -arch x86_64
CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -Wwrite-strings $(ARCH) $(PROF)
CCLINK?= -lm -pthread
+ OBJARCH?= -arch i386 -arch x86_64
DYLIBNAME?=libhiredis.dylib
DYLIB_MAKE_CMD?=libtool -dynamic -o ${DYLIBNAME} -lm ${DEBUG} - ${OBJ}
STLIBNAME?=libhiredis.a
@@ -73,7 +73,7 @@ test: hiredis-test
./hiredis-test
.c.o:
- $(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) $<
+ $(CC) -c $(CFLAGS) $(OBJARCH) $(DEBUG) $(COMPILE_TIME) $<
clean:
rm -rf ${DYLIBNAME} ${STLIBNAME} $(BINS) hiredis-example* *.o *.gcda *.gcno *.gcov