Add -fPIC for x86_64; add blerg_auth.a to clean target
include libs.mk
+ARCH=$(shell uname -m)
CFLAGS ?= -g
+ifeq ($(ARCH),x86_64)
+ CFLAGS += -fPIC
+endif
INCLUDES = -I. -Idatabase -Icommon -Ibuilddeps/scrypt-1.1.6/lib/crypto $(YAJL_INCLUDES)
HTTP_INCLUDES = -Ihttp $(MHD_INCLUDES)
CGI_INCLUDES = -Icgi $(CGI_UTIL_INCLUDES)
all: $(targets)
clean:
- rm -f $(targets) $(blerg_a_objects) $(blergtool_objects) $(blerglatest_objects) $(http_blerg_objects) $(cgi_blerg_objects) builddeps/*.a
+ rm -f $(targets) $(blerg_a_objects) $(blerg_auth_a_objects) $(blergtool_objects) $(blerglatest_objects) $(http_blerg_objects) $(cgi_blerg_objects) builddeps/*.a
@make -C builddeps/scrypt-1.1.6 distclean
@make -C builddeps/scrypt-1.1.6/lib/crypto clean