Artifact b269c69e1918307fc7736a9a01157210f2f6d58dad290e0db297b9b133cd0906:
- File
src/test/Makefile
— part of check-in
[1cd17a28dd]
at
2024-02-10 00:27:45
on branch objfwtest
— Build ObjFWTest only as a static library
There is no reason to have this as a shared library (or .framework) as
it's only used for tests. This also means there doesn't need to be a
stable ABI. (user: js, size: 1050) [annotate] [blame] [check-ins using] [more...]
include ../../extra.mk DISTCLEAN = Info.plist STATIC_LIB = libobjfwtest.a SRCS = OTAssert.m \ OTTestCase.m INCLUDES := ${SRCS:.m=.h} \ ObjFWTest.h SRCS += OTAppDelegate.m \ OTAssertionFailedException.m includesubdir = ObjFWTest include ../../buildsys.mk CPPFLAGS += -I. \ -I.. \ -I../.. \ -I../exceptions \ -I../runtime \ -DOBJFWTEST_LOCAL_INCLUDES LD = ${OBJC} FRAMEWORK_LIBS := -F.. \ -framework ObjFW \ -F../runtime \ ${RUNTIME_FRAMEWORK_LIBS} \ ${LIBS} LIBS := -L.. -lobjfw -L../runtime ${RUNTIME_LIBS} ${LIBS} install-extra: i=ObjFWTest.oc; \ ${INSTALL_STATUS}; \ if ${MKDIR_P} ${libdir}/objfw-config && ${INSTALL} -m 644 $$i ${libdir}/objfw-config/$$i; then \ ${INSTALL_OK}; \ else \ ${INSTALL_FAILED}; \ fi uninstall-extra: i=ObjFWTest.oc; \ if test -f ${libdir}/objfw-config/$$i; then \ if rm -f ${libdir}/objfw-config/$$i; then \ ${DELETE_OK}; \ else \ ${DELETE_FAILED}; \ fi \ fi; \ rmdir ${libdir}/objfw-config >/dev/null 2>&1 || true