- iffexplore to decocde globals.iff - font2png parses the font blobs found therein
34 lines
809 B
Makefile
34 lines
809 B
Makefile
CXX=g++
|
|
CXXOPTS=-Og -ggdb -Wall -Wextra -pedantic -std=c++14 -flto
|
|
LDOPTS=
|
|
|
|
IFFEXPLORE_CXXSRCS=iffexplore.cc
|
|
IFFEXPLORE_OBJS=$(addprefix objs/,$(IFFEXPLORE_CXXSRCS:.cc=.o))
|
|
|
|
FONT2PNG_CXXSRCS=font2png.cc
|
|
FONT2PNG_OBJS=$(addprefix objs/,$(FONT2PNG_CXXSRCS:.cc=.o))
|
|
FONT2PNG_LIBS=-lpng
|
|
|
|
all: iffexplore font2png
|
|
|
|
objs/%.o: %.cc
|
|
$(CXX) $(CXXOPTS) -c -MMD -MP -o $@ $<
|
|
@cp objs/$*.d objs/$*.P; rm -f objs/$*.d
|
|
|
|
%.pb.cc %.pb.h: %.proto
|
|
protoc --cpp_out=. $<
|
|
|
|
iffexplore: $(IFFEXPLORE_OBJS)
|
|
$(CXX) $(CXXOPTS) $(LDOPTS) -o $@ $(IFFEXPLORE_OBJS)
|
|
|
|
font2png: $(FONT2PNG_OBJS)
|
|
$(CXX) $(CXXOPTS) $(LDOPTS) -o $@ $(FONT2PNG_OBJS) $(FONT2PNG_LIBS)
|
|
|
|
|
|
clean:
|
|
rm -f iffexplore $(IFFEXPLORE_OBJS) $(addprefix objs/,$(IFFEXPLORE_CXXSRCS:.cc=.P))
|
|
|
|
.PHONY: clean all
|
|
|
|
-include $(addprefix objs/,$(IFFEXPLORE_CXXSRCS:.cc=.P))
|