-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.common
35 lines (30 loc) · 1.17 KB
/
Makefile.common
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
LIBRARY_NAME = libsymbolicate
PKG_ID = jp.ashikase.libsymbolicate
libsymbolicate_INSTALL_PATH = /usr/lib
libsymbolicate_OBJC_FILES = \
Libraries/launch-cache/dsc_iterator.cpp \
lib/SCBinaryInfo.mm \
lib/SCMethodInfo.mm \
lib/SCSymbolicator.mm \
lib/SCSymbolInfo.mm \
lib/binary.mm \
lib/demangle.mm \
lib/sharedCache.mm \
lib/methods.mm
libsymbolicate_PRIVATE_FRAMEWORKS = CoreSymbolication Symbolication
ADDITIONAL_CFLAGS = -DPKG_ID=\"$(PKG_ID)\" -ILibraries -Iinclude -Wno-unused-local-typedef
include theos/makefiles/common.mk
include $(THEOS)/makefiles/library.mk
after-stage::
# Remove repository-related files.
- find $(THEOS_STAGING_DIR) -name '.gitkeep' -delete
# Copy header files to include directory.
- mkdir -p $(THEOS_STAGING_DIR)/usr/include/$(LIBRARY_NAME)/
- cp $(THEOS_PROJECT_DIR)/include/*.h $(THEOS_STAGING_DIR)/usr/include/$(LIBRARY_NAME)/
distclean: clean
- rm -f $(THEOS_PROJECT_DIR)/$(PKG_ID)*.deb
- rm -f $(THEOS_PROJECT_DIR)/.theos/packages/*
sdk:
- mkdir -p $(THEOS)/include/$(LIBRARY_NAME)/
- cp $(THEOS_PROJECT_DIR)/include/*.h $(THEOS)/include/$(LIBRARY_NAME)/
- cp $(THEOS_OBJ_DIR)/$(LIBRARY_NAME).dylib $(THEOS)/lib/