OctaBuild/Makefile

23 lines
524 B
Makefile
Raw Permalink Normal View History

2016-08-01 01:09:29 +02:00
OB_CXXFLAGS = -g -Wall -Wextra -Wshadow -Wold-style-cast -O2
2015-09-13 19:53:16 +02:00
CUBESCRIPT_PATH = ../libcubescript
2017-04-17 17:14:28 +02:00
OSTD_PATH = ../libostd
2015-09-13 19:53:16 +02:00
2016-08-02 23:37:26 +02:00
FILES = main.o
2015-09-13 19:53:16 +02:00
2017-04-17 17:14:28 +02:00
OB_CXXFLAGS += -std=c++1z -I. -I$(CUBESCRIPT_PATH)/include -I$(OSTD_PATH) -pthread
2015-09-13 19:53:16 +02:00
all: obuild
obuild: $(FILES)
2017-03-10 20:38:57 +01:00
$(CXX) $(CXXFLAGS) $(OB_CXXFLAGS) -o obuild $(FILES) \
2017-04-17 17:14:28 +02:00
$(CUBESCRIPT_PATH)/libcubescript.a $(OSTD_PATH)/libostd.a $(LDFLAGS)
2015-09-13 19:53:16 +02:00
.cc.o:
$(CXX) $(CXXFLAGS) $(OB_CXXFLAGS) -c -o $@ $<
clean:
rm -f $(FILES) obuild
2017-03-18 18:49:52 +01:00
main.o: $(CUBESCRIPT_PATH)/include/cubescript/cubescript.hh