blob: 235077549a042cbc794a1eda94b5b7adc50e72a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|