Tasmota/lib/libesp32/Berry/tools/coc/Makefile

27 lines
504 B
Makefile
Raw Normal View History

2021-04-12 18:53:35 +01:00
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)