libcubescript/Makefile

36 lines
617 B
Makefile
Raw Normal View History

2016-08-02 01:48:07 +02:00
OSTD_PATH = ../octastd
2016-03-02 23:24:15 +01:00
2016-08-02 01:48:07 +02:00
LIBCS_CXXFLAGS = \
-std=c++14 -Wall -Wextra -Wshadow -Wold-style-cast -I. \
-fvisibility=hidden -I$(OSTD_PATH)
2016-03-02 23:24:15 +01:00
2016-08-02 01:48:07 +02:00
LIBCS_LDFLAGS = -shared
LIBCS_OBJ = \
cubescript.o \
2016-08-12 18:38:43 +02:00
cs_vm.o \
lib_str.o \
lib_math.o \
lib_list.o
2016-08-02 01:48:07 +02:00
LIBCS_LIB = libcubescript.a
2016-08-02 01:48:07 +02:00
.cc.o:
$(CXX) $(CXXFLAGS) $(LIBCS_CXXFLAGS) -c -o $@ $<
2016-03-02 23:24:15 +01:00
all: library
2016-08-02 01:48:07 +02:00
library: $(LIBCS_LIB)
2016-03-02 23:24:15 +01:00
2016-08-02 01:48:07 +02:00
$(LIBCS_LIB): $(LIBCS_OBJ)
ar rcs $(LIBCS_LIB) $(LIBCS_OBJ)
2016-03-02 23:24:15 +01:00
clean:
2016-08-02 01:48:07 +02:00
rm -f $(LIBCS_LIB) $(LIBCS_OBJ)
2016-08-12 18:38:43 +02:00
cubescript.o: cubescript.hh cs_vm.hh
cs_vm.o: cubescript.hh cs_vm.hh
lib_str.o: cubescript.hh
lib_math.o: cubescript.hh
lib_list.o: cubescript.hh