-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
23 lines (17 loc) · 974 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CXX = clang++
CXXFLAGS = -std=c++17 -stdlib=libc++ -O3 -ferror-limit=2 -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-sign-conversion -Wno-exit-time-destructors -Wno-float-equal -Wno-global-constructors -Wno-missing-declarations -Wno-unused-parameter -Wno-padded -Wno-shadow -Wno-weak-vtables -Wno-missing-prototypes -Wno-unused-variable -ferror-limit=1 -Wno-deprecated -Wno-conversion -Wno-double-promotion -fPIC -Wno-documentation -Wno-old-style-cast -Wno-reserved-id-macro -Wno-documentation-unknown-command -Wno-undef
INCPATH = -Iinclude -Igame
LINK = $(CXX)
LFLAGS = -lc++ -lc++abi -O3
DEL_FILE = rm -f
####### Output directory
OBJECTS_DIR = ./obj
BIN_DIR = ./bin
all: lspe
clean:
rm -rf $(OBJECTS_DIR)/*.o
rm -rf $(BIN_DIR)/*
lspe.o: src/lspe.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/lspe.o src/lspe.cpp
lspe: lspe.o
$(LINK) -o $(BIN_DIR)/lspe $(OBJECTS_DIR)/lspe.o $(LFLAGS)