summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-05-21 01:35:20 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-05-21 01:35:20 +0300
commit7c26dcc4480025b5d11e315273541b3fb2c34a09 (patch)
tree0fe3f3ff8cdd0d728f15f6cec4cca4d39aa8cb71 /src/Makefile.am
parent9ead62940aecb7793b3d82c9c8eb73bc9eb4f60f (diff)
downloadcgame-7c26dcc4480025b5d11e315273541b3fb2c34a09.tar.gz
cgame-7c26dcc4480025b5d11e315273541b3fb2c34a09.tar.bz2
cgame-7c26dcc4480025b5d11e315273541b3fb2c34a09.zip
ez going
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 44c7cc1..7ef364b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,6 +2,9 @@ bin_PROGRAMS = game
common_sources = state.h
+
+AM_LDFLAGS = -fuse-ld=lld -flto
+
# -fwhole-program allows cross-file inlining, but only works when you put all
# the source files on one gcc command-line. -flto is another way to get the
# same effect. (Link-Time Optimization). clang supports -flto but not
@@ -15,5 +18,9 @@ common_sources = state.h
AM_CFLAGS = -march=native -fno-math-errno -funroll-loops -flto -pthread -ggdb -DVKDEBUG
# AM_CFLAGS = -O0 -march=native -fno-math-errno -funroll-loops -flto -pthread -ggdb -fsanitize=address
+AM_CXXFLAGS = -Wall -Wextra -O2 -g -std=c++17
+
game_SOURCES = game.c cplusplus.cpp $(common_sources)
game_LDADD = -lSDL2 -lm -lSDL2_image -lvulkan -lshaderc_shared -lstdc++
+
+cplusplus.$(OBJEXT) : CXXFLAGS += -Wno-nullability-completeness -Wno-unused-function -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-variable