mirror of https://github.com/arendst/Tasmota.git
27 lines
504 B
Makefile
27 lines
504 B
Makefile
|
TARGET = coc
|
||
|
CXXFLAGS = -std=c++11 -O2
|
||
|
CXX = g++
|
||
|
|
||
|
OBJS = coc_string.o \
|
||
|
hash_map.o \
|
||
|
macro_table.o \
|
||
|
main.o \
|
||
|
block_builder.o \
|
||
|
str_build.o \
|
||
|
coc_parser.o
|
||
|
|
||
|
ifeq ($(OS), Windows_NT) # Windows
|
||
|
TARGET := $(TARGET).exe
|
||
|
endif
|
||
|
|
||
|
all: $(TARGET)
|
||
|
|
||
|
$(TARGET): $(OBJS)
|
||
|
$(Q) $(CXX) $(OBJS) -o $@
|
||
|
|
||
|
$(OBJS): %.o: %.cpp
|
||
|
$(Q) $(CXX) $(CXXFLAGS) -c $< -o $@
|
||
|
|
||
|
clean:
|
||
|
$(Q) $(RM) $(OBJS)
|