From 2b2b512dca67d8db9bbad76a14bf7c7860a94166 Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Mon, 26 Jan 2015 09:55:32 -0500 Subject: Build test binary by default This is the only way to force a 32-bit build of the test binary --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 30c865b..805c2c5 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ ifeq ($(uname_S),Darwin) DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS) endif -all: $(DYLIBNAME) $(STLIBNAME) $(PKGCONFNAME) +all: $(DYLIBNAME) $(STLIBNAME) hiredis-test $(PKGCONFNAME) # Deps (use make dep to generate this) async.o: async.c fmacros.h async.h hiredis.h read.h sds.h net.h dict.c dict.h @@ -121,7 +121,7 @@ examples: $(EXAMPLES) hiredis-test: test.o $(STLIBNAME) hiredis-%: %.o $(STLIBNAME) - $(CC) -o $@ $(REAL_LDFLAGS) $< $(STLIBNAME) + $(CC) $(REAL_CFLAGS) -o $@ $(REAL_LDFLAGS) $< $(STLIBNAME) test: hiredis-test ./hiredis-test -- cgit v1.2.3