summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2018-04-22 12:43:31 +1000
committerDamien Zammit <damien@zamaudio.com>2018-04-22 12:43:31 +1000
commitc0305a2333b8ae5f360190e823e05908680ba0e6 (patch)
tree2d0992de03ce778aee70a7071e6245af181aa116 /Makefile
parent236df89bedc8aa02cd1fa05593d4d162c3a38373 (diff)
Optionally compile for 32 bit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 856ca2f..b454029 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
INCL=$(shell pkg-config --cflags glib-2.0)
+INCL32=$(shell PKG_CONFIG_PATH=/usr/lib/pkgconfig pkg-config --cflags glib-2.0)
STRICT=-Wall -Wcast-align -Wextra -Wwrite-strings -Wunsafe-loop-optimizations -Wlogical-op -Wno-unused-function -Wno-implicit-fallthrough -std=c++98
CLANGSTRICT=-Woverloaded-virtual -Wno-mismatched-tags -ansi -Wnon-virtual-dtor -Woverloaded-virtual -fstrict-overflow -Wall -Wcast-align -Wextra -Wwrite-strings -Wno-unused-function -std=c++98
@@ -6,6 +7,10 @@ all:
$(CXX) -o ptftool -g ${INCL} ${STRICT} ptftool.cc ptfformat.cc
$(CXX) -o ptunxor -g ${INCL} ${STRICT} ptunxor.cc ptfformat.cc
+all32:
+ $(CXX) -m32 -o ptftool -g ${INCL32} ${STRICT} ptftool.cc ptfformat.cc
+ $(CXX) -m32 -o ptunxor -g ${INCL32} ${STRICT} ptunxor.cc ptfformat.cc
+
clangall:
clang++ -o ptftool -g ${INCL} ${CLANGSTRICT} ptftool.cc ptfformat.cc
clang++ -o ptunxor -g ${INCL} ${CLANGSTRICT} ptunxor.cc ptfformat.cc