summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-02 22:35:43 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-02 22:35:43 (GMT)
commitc4f8f5e0225cca8e188ba81a56573124b6273dde (patch)
treebe21547eb37078aee3904553a2cbd36dc82ef469 /Makefile
parent63c47828b196e6740d98cc150992ecc7aba0dc79 (diff)
downloadeeshow-c4f8f5e0225cca8e188ba81a56573124b6273dde.zip
eeshow-c4f8f5e0225cca8e188ba81a56573124b6273dde.tar.gz
eeshow-c4f8f5e0225cca8e188ba81a56573124b6273dde.tar.bz2
main/eetest.c: split off main.c
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 645e280..7546417 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,11 @@ OBJS = main.o version.o \
gfx/style.o gfx/fig.o gfx/record.o gfx/cro.o gfx/diff.o gfx/gfx.o \
gfx/text.o gfx/misc.o gfx/pdftoc.o \
misc/diag.o misc/util.o
+EETEST_OBJS = main/eetest.o main/common.o version.o \
+ kicad/sexpr.o \
+ gui/fmt-pango.o \
+ file/file.o file/git-util.o file/git-file.o file/git-hist.o \
+ misc/diag.o misc/util.o
ICONS = delta diff
@@ -59,12 +64,16 @@ include Makefile.c-common
.PHONY: test neo900 sch test testref png pngref pdf diff view newref
.PHONY: leak
-all:: $(NAME)
+all:: $(NAME) eetest
$(NAME): $(OBJS)
$(MAKE) -B version.o
$(CC) -o $(NAME) $(OBJS) $(LDLIBS)
+eetest: $(EETEST_OBJS)
+ $(MAKE) -B version.o
+ $(CC) -o eetest $(EETEST_OBJS) $(LDLIBS)
+
#----- Help texts -------------------------------------------------------------
help.inc: $(HELP_TEXT) Makefile
@@ -163,3 +172,8 @@ leak: $(NAME)
diff $(NEO900_HW)/neo900.pro >/dev/null
# eeshow -N 1 $(NEO900_HW)/neo900.pro -- pdf >/dev/null
# eeshow -N 1 $(NEO900_HW)/neo900.pro -- png >/dev/null
+
+#----- Cleanup ----------------------------------------------------------------
+
+spotless::
+ rm -f eetest