override DSTROOT := $(DSTROOT)/$(INSTALL_LOCATION)
endif
-PRODUCT_TYPE ?= DYLIB
+PRODUCT_TYPE ?= ALL
HDRDST=$(DSTROOT)/usr/local/include
DYLIBDST=$(DSTROOT)/usr/lib/system
TESTSRC=$(SRCROOT)/tests
TESTDST=./BUILD/tests
+# Build both the dylib and archive
+LIBKXLDDST_ALL=$(LIBKXLDDST_DYLIB) $(LIBKXLDDST_ARCHIVE)
+
# Flags
ifdef SDKROOT
SDK_DIR := $(shell xcodebuild -version -sdk $(SDKROOT) Path)
# Tools
CC = xcrun -sdk $(SDK_DIR) clang
-CLANG_ANALYZER = clang --analyze
LIBTOOL = xcrun -sdk $(SDK_DIR) libtool
STRIP = xcrun -sdk $(SDK_DIR) strip
DSYMUTIL = xcrun -sdk $(SDK_DIR) dsymutil
$(CC) $(ARCHS) $(COPYTESTOBJS) -framework CoreFoundation -framework IOKit -o $(OBJROOT)/copyrighttest
install -c -m 755 $(OBJROOT)/copyrighttest $@
-analyze:
- @$(CLANG_ANALYZER) $(CFLAGS) $(INCLUDES) $(filter-out WKdm%.c,$(wildcard *.c))
- @$(CLANG_ANALYZER) $(CFLAGS) $(INCLUDES) -I$(SRCROOT) tests/*.c
- @rm -f *.plist
-
clean:
@rm -rf $(OBJROOT)/*