diff options
author | Deposite Pirate | 2018-09-17 11:16:16 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-17 11:16:16 +0200 |
commit | f590ac14a7da6f8c400dd5b5c0cfa91bb289c99d (patch) | |
tree | df371091d0f895a44033608850a52e435eaf6da5 /my_basic-git/my_basic-makefile.patch | |
parent | 803557f1fbf8171013272c77dd28e1355b22f6df (diff) |
Add my_basic-git.
Diffstat (limited to 'my_basic-git/my_basic-makefile.patch')
-rw-r--r-- | my_basic-git/my_basic-makefile.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/my_basic-git/my_basic-makefile.patch b/my_basic-git/my_basic-makefile.patch new file mode 100644 index 0000000..2350775 --- /dev/null +++ b/my_basic-git/my_basic-makefile.patch @@ -0,0 +1,22 @@ +diff -u -r -N my_basic/makefile my_basic-makefile/makefile +--- my_basic/makefile 2018-08-28 20:17:25.725132293 +0200 ++++ my_basic-makefile/makefile 2018-08-28 20:32:42.807023449 +0200 +@@ -1,3 +1,5 @@ ++CFLAGS=-Os
++
+ OS := $(shell uname -s)
+ IS_APPLE := $(shell echo $(OS)|grep -i darwin)
+
+@@ -10,10 +12,10 @@ + endif
+
+ main.o : shell/main.c core/my_basic.h
+- cc -Os -c shell/main.c -Wno-unused-result
++ cc $(CFLAGS) -c shell/main.c -Wno-unused-result
+
+ my_basic.o : core/my_basic.c core/my_basic.h
+- cc -Os -c core/my_basic.c -Wno-multichar -Wno-overflow -Wno-unused-result
++ cc $(CFLAGS) -c core/my_basic.c -Wno-multichar -Wno-overflow -Wno-unused-result
+
+ clean :
+ rm -f main.o my_basic.o output/my_basic_bin output/my_basic_bin.exe
|