- moved default compile and link flags to defaults.mk

git-svn-id: http://moon:8086/svn/software/trunk/make@1056 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-22 09:16:44 +00:00
parent 547f44ceef
commit c127d0faa7
3 changed files with 18 additions and 10 deletions
+16
View File
@@ -0,0 +1,16 @@
MAKEFLAGS += --no-print-directory
TARGET_ARCH := -march=native
# debug
LDFLAGS_debug := -g
CXXFLAGS_debug := -g -O0
CFLAGS_debug := -g -O0
LDFLAGS_debug := -g -O0
# release
LDFLAGS_release := -g
CXXFLAGS_release := -g -O3
CFLAGS_release := -g -O3
LDFLAGS_release := -g -O3