| 1234567891011121314151617181920212223242526272829 |
- # Utilities
- RM = rm -rf
- EXEC = exec
- # Artifacts
- OBJS = functions.out
- DEPS = $(OBJS:%=%.d)
- # Compiler
- CXX ?= clang++
- CXXFLAGS += -std=c++14 -O2 -fno-exceptions -fno-rtti -fmessage-length=0 -Wall -Wextra \
- -pedantic -I../lib
- LDLIBS += -llua
- # Default Targets
- all: $(OBJS)
- clean:
- $(RM) $(DEPS) $(OBJS)
- # Objects
- -include $(DEPS)
- %.out: %.cc Makefile
- $(CXX) $(CXXFLAGS) -MMD -MF$(@:%=%.d) -MT$@ -o$@ $< $(LDLIBS)
- $(EXEC) ./$@
- # Phony
- .PHONY: clean
|