aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-01-30 00:27:43 +0100
committerjaseg <git@jaseg.de>2021-01-30 00:27:43 +0100
commiteac89409b80c8f61efc98a20b4d742c878cde637 (patch)
tree469f2188f3930f74ee91d90f627fcedfd4420dfe /Makefile
parent52dcceb87f5847dc235f5b5965f57881f327143c (diff)
downloadgerbolyze-eac89409b80c8f61efc98a20b4d742c878cde637.tar.gz
gerbolyze-eac89409b80c8f61efc98a20b4d742c878cde637.tar.bz2
gerbolyze-eac89409b80c8f61efc98a20b4d742c878cde637.zip
Add KiCAD sexp output
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a188e87..520100b 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ SOURCES := src/svg_color.cpp \
src/main.cpp \
src/out_svg.cpp \
src/out_gerber.cpp \
+ src/out_sexp.cpp \
src/out_flattener.cpp \
src/lambda_sink.cpp \
@@ -37,7 +38,9 @@ CXXFLAGS += $(shell $(PKG_CONFIG) --cflags pangocairo pugixml opencv4)
LDFLAGS := -lm -lc -lstdc++
LDFLAGS += $(shell $(PKG_CONFIG) --libs pangocairo pugixml opencv4)
-all: $(BUILDDIR)/svg-render
+TARGET := svg-render
+
+all: $(BUILDDIR)/$(TARGET)
test.gbr test.svg &: render
./render test.svg > test.gbr
@@ -46,7 +49,7 @@ $(BUILDDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
$(CXX) -c $(CXXFLAGS) $(CXXFLAGS) $(INCLUDES) -o $@ $^
-$(BUILDDIR)/svg-render: $(SOURCES:%.cpp=$(BUILDDIR)/%.o) $(BUILDDIR)/upstream/cpp-base64/base64.o
+$(BUILDDIR)/$(TARGET): $(SOURCES:%.cpp=$(BUILDDIR)/%.o) $(BUILDDIR)/upstream/cpp-base64/base64.o
@mkdir -p $(dir $@)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^