Skip to content

Commit 0251792

Browse files
committed
[Build] Add Makefile for use with Theos, add .gitignore for build systems, switch Xcode to build with C99 to match Theos
1 parent 3db5001 commit 0251792

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# macOS
2+
.DS_Store
3+
4+
# Theos
5+
obj/
6+
.theos/
7+
8+
# Xcode
9+
xcuserdata/
10+
xcshareddata/
11+
build
12+
13+
# VSCode
14+
.vscode/

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include $(THEOS)/makefiles/common.mk
2+
3+
LIBRARY_NAME = inject_decrypt
4+
inject_decrypt_FILES = inject_decrypt/inject_decrypt.c
5+
6+
include $(THEOS_MAKE_PATH)/library.mk

inject_decrypt.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
DEBUG_INFORMATION_FORMAT = dwarf;
164164
ENABLE_STRICT_OBJC_MSGSEND = YES;
165165
ENABLE_TESTABILITY = YES;
166-
GCC_C_LANGUAGE_STANDARD = gnu11;
166+
GCC_C_LANGUAGE_STANDARD = c99;
167167
GCC_DYNAMIC_NO_PIC = NO;
168168
GCC_NO_COMMON_BLOCKS = YES;
169169
GCC_OPTIMIZATION_LEVEL = 0;
@@ -222,7 +222,7 @@
222222
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
223223
ENABLE_NS_ASSERTIONS = NO;
224224
ENABLE_STRICT_OBJC_MSGSEND = YES;
225-
GCC_C_LANGUAGE_STANDARD = gnu11;
225+
GCC_C_LANGUAGE_STANDARD = c99;
226226
GCC_NO_COMMON_BLOCKS = YES;
227227
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
228228
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;

0 commit comments

Comments
 (0)