blob: 7aab45c449ac44aec93f0d2492afcf0dfa2e5adf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- makefile.orig 2022-05-31 07:36:32 UTC
+++ makefile
@@ -1,4 +1,5 @@
-CXX = g++
+CXX ?= g++
+CXXFLAGS ?= -O2
SRCS = library/preprocessor.cpp
OUT = bin/preprocessor
@@ -15,6 +16,6 @@ clean:
rm -f $(OUT)
$(OUT): $(SRCS)
- $(CXX) -o $(OUT) -O2 -s $(SRCS) -lz -DWITH_ZLIB
+ $(CXX) -o $(OUT) $(CXXFLAGS) -s $(SRCS) -lz -DWITH_ZLIB
.PHONY: all help clean
|