summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-02 23:29:24 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-03 22:18:28 (GMT)
commit2c3c9ab4a6c22eccd3371576f8c396740cf224ce (patch)
tree63f214cb747886cd120066d8e6c7d8be550568d4 /Makefile
parent9e611f0d25c8e9716f2f2792c8827c71bcc0e684 (diff)
downloadeeshow-2c3c9ab4a6c22eccd3371576f8c396740cf224ce.zip
eeshow-2c3c9ab4a6c22eccd3371576f8c396740cf224ce.tar.gz
eeshow-2c3c9ab4a6c22eccd3371576f8c396740cf224ce.tar.bz2
main/eeplot.c: separate main/eediff.c
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b2305fb..a3dee2d 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,13 @@ EESHOW_OBJS = main/eeshow.o main/common.o version.o \
EEPLOT_OBJS = main/eeplot.o main/common.o version.o \
$(OBJS_KICAD) \
$(OBJS_FILE) \
- gfx/style.o gfx/fig.o gfx/record.o gfx/cro.o gfx/diff.o gfx/gfx.o \
+ gfx/style.o gfx/fig.o gfx/record.o gfx/cro.o gfx/gfx.o \
+ gfx/text.o gfx/misc.o gfx/pdftoc.o \
+ $(OBJS_MISC)
+EEDIFF_OBJS = main/eediff.o main/common.o version.o \
+ $(OBJS_KICAD) \
+ $(OBJS_FILE) \
+ gfx/style.o gfx/record.o gfx/cro.o gfx/diff.o gfx/gfx.o \
gfx/text.o gfx/misc.o gfx/pdftoc.o \
$(OBJS_MISC)
EETEST_OBJS = main/eetest.o main/common.o version.o \
@@ -77,7 +83,7 @@ include Makefile.c-common
.PHONY: test neo900 sch test testref png pngref pdf diff view newref
.PHONY: leak
-all:: eeshow eeplot eetest
+all:: eeshow eeplot eediff eetest
eeshow: $(EESHOW_OBJS)
$(MAKE) -B version.o
@@ -87,6 +93,10 @@ eeplot: $(EEPLOT_OBJS)
$(MAKE) -B version.o
$(CC) -o $@ $(EEPLOT_OBJS) $(LDLIBS)
+eediff: $(EEDIFF_OBJS)
+ $(MAKE) -B version.o
+ $(CC) -o $@ $(EEDIFF_OBJS) $(LDLIBS)
+
eetest: $(EETEST_OBJS)
$(MAKE) -B version.o
$(CC) -o $@ $(EETEST_OBJS) $(LDLIBS)
@@ -181,11 +191,11 @@ newref:
SUPP = dl-init cairo-font
-leak: eeplot
+leak: eediff
valgrind --leak-check=full --show-leak-kinds=all \
--num-callers=50 \
$(SUPP:%=--suppressions=%.supp) \
- ./eeplot $(NEO900_HW)/neo900.pro -- \
+ ./eediff $(NEO900_HW)/neo900.pro -- \
diff $(NEO900_HW)/neo900.pro >/dev/null
# ./eeplot -N 1 $(NEO900_HW)/neo900.pro -- pdf >/dev/null
# ./eeplot -N 1 $(NEO900_HW)/neo900.pro -- png >/dev/null
@@ -193,4 +203,4 @@ leak: eeplot
#----- Cleanup ----------------------------------------------------------------
spotless::
- rm -f eeshow eeplot eetest
+ rm -f eeshow eeplot eediff eetest