forked from sbingner/snappy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 772 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
target ?= iphone:clang:11.0:10.0
ARCHS ?= arm64 armv7
DEBUG ?= no
THEOS ?= theos
include $(THEOS)/makefiles/common.mk
LIBRARY_NAME = libsnappy
libsnappy_FILES = libsnappy.c libsnappy.m
libsnappy_FRAMEWORKS = IOKit
libsnappy_LDFLAGS = -compatibility_version 1.0.0 -current_version $(THEOS_PACKAGE_BASE_VERSION)
TOOL_NAME = snappy
snappy_FILES = snappy.c
snappy_LDFLAGS = -L$(THEOS_OBJ_DIR) -lsnappy
snappy_CODESIGN_FLAGS = -Sentitlements.xml
snappy_FRAMEWORKS = IOKit
after-stage::
$(ECHO_NOTHING)chmod u+s $(THEOS_STAGING_DIR)/usr/bin/snappy$(ECHO_END)
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/usr/include$(ECHO_END)
$(ECHO_NOTHING)cp snappy.h $(THEOS_STAGING_DIR)/usr/include$(ECHO_END)
include $(THEOS_MAKE_PATH)/library.mk
include $(THEOS_MAKE_PATH)/tool.mk