Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
build: parametrize++
Browse files Browse the repository at this point in the history
  • Loading branch information
corwinn committed Aug 1, 2023
1 parent 698214c commit 15622c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,21 @@ APP = nifwind
MOC = $(QTDIR)/bin/moc
CC = ccache clang
LD = clang++
FFD_CFLAGS = -I${FFDIR} -I${FFDIR}/stl
FFD_LDFLAGS = -L${FFDIR} -Wl,-rpath -Wl,${FFDIR}
CXXFLAGS = -std=c++14 -march=core2 -mtune=core2 \
-Wall -Wextra -Wshadow -Werror=shadow -Wno-deprecated-copy \
-fvisibility=hidden -frtti -fno-exceptions -pipe -O0 -g
SAN = -fsanitize=undefined,leak,address
CXXFLAGS += $(SAN) -std=c++14 \
-DNIFWIND_VERSION="\"1.0\"" \
-I. -Isrc -I${FFDIR} -I${FFDIR}/stl \
-I. -Isrc $(FFD_CFLAGS) \
-I${QTDIR}/include -I${QTDIR}/include/QtCore -I${QTDIR}/include/QtWidgets \
-I${QTDIR}/include/QtOpenGL -I${QTDIR}/include/QtGui \
-DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB \
-DQT_CORE_LIB -UQT_NO_CAST_FROM_ASCII -UQT_RESTRICTED_CAST_FROM_ASCII \
-DGL_GLEXT_PROTOTYPES -DGL_2_0=1
LDFLAGS = $(SAN) -Wl,--as-needed -L${QTDIR}/lib \
-L${FFDIR} -Wl,-rpath -Wl,${FFDIR} \
LDFLAGS = $(SAN) -Wl,--as-needed -L${QTDIR}/lib $(FFD_LDFLAGS) \
-lQt5Core -lQt5Widgets -lQt5OpenGL -lQt5Gui -lGL -lpthread -lwind-ffd

SRC := $(patsubst %.h,%.moc.cpp,$(shell grep --exclude=*~ -rl '\(signal\|slot\)s:'))
Expand Down

0 comments on commit 15622c7

Please sign in to comment.