summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorLi Baiyang <[email protected]>2018-11-13 10:33:59 +0800
committerLi Baiyang <[email protected]>2018-11-13 10:33:59 +0800
commit45fc5bdffc619b424608016c94c7174897f318e9 (patch)
tree28777e26d3b979eb7567ae804a4d01e33bdcaca0 /common.mk
initialize
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.mk b/common.mk
new file mode 100644
index 0000000..0ee1558
--- /dev/null
+++ b/common.mk
@@ -0,0 +1,7 @@
+if DEBUG
+AM_CFLAGS=-O0 -g -Wall -Wextra
+else
+AM_CFLAGS=-O2 -g
+endif
+
+AM_CPPFLAGS = -I$(top_srcdir)/include