forked from danmar/simplecpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 646 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
all: testrunner simplecpp
CXXFLAGS = -Wall -Wextra -pedantic -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wundef -Wno-multichar -Wold-style-cast -std=c++11 -g $(CXXOPTS)
LDFLAGS = -g $(LDOPTS)
%.o: %.cpp simplecpp.h
$(CXX) $(CXXFLAGS) -c $<
testrunner: test.o simplecpp.o
$(CXX) $(LDFLAGS) simplecpp.o test.o -o testrunner
test: testrunner simplecpp
./testrunner
python3 run-tests.py
python3 -m pytest integration_test.py -vv
selfcheck: simplecpp
./selfcheck.sh
simplecpp: main.o simplecpp.o
$(CXX) $(LDFLAGS) main.o simplecpp.o -o simplecpp
clean:
rm -f testrunner simplecpp *.o