summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-05-27 15:43:29 -1000
committerSam Bingner <sam@bingner.com>2019-05-27 15:43:29 -1000
commit1d744444486fc66c8f12e2a8f0e81773a65bf545 (patch)
tree7337e2e70e15ff4cecfcbaedb450ce157b699751 /makefile
parentd84dcba99f5c2657d2df37518feb59312bcc59fc (diff)
Make it actually compile with saurik's updates
Diffstat (limited to 'makefile')
-rw-r--r--makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/makefile b/makefile
index 2d6565a..e0183d7 100644
--- a/makefile
+++ b/makefile
@@ -86,9 +86,9 @@ libs += -framework WebKit
libs += -framework CFNetwork
+libs += -llockdown
ifeq ($(do32),yes)
libs += -framework WebCore
-libs += -llockdown
libs += -Xarch_armv6 -Wl,-force_load,Objects/libapt32.a
lapt += Objects/libapt32.a
endif
@@ -154,7 +154,7 @@ flag32 += -arch armv6
flag32 += -Xarch_armv6 -miphoneos-version-min=2.0
flag32 += -Xarch_armv6 -marm # @synchronized
flag32 += -Xarch_armv6 -mcpu=arm1176jzf-s
-flag32 += -mllvm -arm-reserve-r9
+flag32 += -Xarch_armv6 -ffixed-r9
link += -Xarch_armv6 -Wl,-lgcc_s.1
link += -Xarch_armv6 -Wl,-segalign,4000
@@ -222,11 +222,6 @@ Objects/apt64/apt-pkg/tagfile-keys%h apt64/apt-pkg/tagfile-keys%cc:
../apt64/apt-pkg/tagfile-keys.list
sed -i -e 's@typedef char static_assert64@//\\0@' apt64/apt-pkg/tagfile-keys.cc
-Objects/%.o: %.cc $(header)
- @mkdir -p $(dir $@)
- @echo "[cycc] $<"
- @$(cycc) $(plus) -c -o $@ $< $(flag) -Wno-format -include apt.h -Dmain=main_$(basename $(notdir $@))
-
Objects/apt32/%.o: apt32/%.cc $(header) apt.h apt-extra/*.h
@mkdir -p $(dir $@)
@echo "[cycc] $<"
@@ -237,6 +232,11 @@ Objects/apt64/%.o: apt64/%.cc $(header) apt.h apt-extra/*.h
@echo "[cycc] $<"
@$(apt64) $(plus) -c -o $@ $< -Dmain=main_$(basename $(notdir $@))
+Objects/%.o: %.cc $(header)
+ @mkdir -p $(dir $@)
+ @echo "[cycc] $<"
+ $(cycc) $(plus) -c -o $@ $< $(flag) -Wno-format -include apt.h -Dmain=main_$(basename $(notdir $@))
+
Objects/%.o: %.c $(header)
@mkdir -p $(dir $@)
@echo "[cycc] $<"
@@ -280,7 +280,7 @@ Objects/libapt64.a: $(libapt64)
MobileCydia: $(object) entitlements.xml $(lapt)
@echo "[link] $@"
- @$(cycc) -o $@ $(filter %.o,$^) $(link) $(plus) $(libs) $(uikit) -Wl,-sdk_version,11.0
+ @$(cycc) -o $@ $(filter %.o,$^) $(link) $(libs) $(uikit) -Wl,-sdk_version,11.0
@mkdir -p bins
@cp -a $@ bins/$@-$(version)_$(shell date +%s)
@echo "[strp] $@"