aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-05-20 22:05:03 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-05-20 23:26:36 +0100
commit7249087222c562b7afd16d76eb31de6a83aa98ef (patch)
treed4c74bbc65d34f2bb053116a67b75b36062b59c5 /Makefile
parent96117e05c387c930c9619e3ae5c0ad0b4da196d2 (diff)
downloadverteco-7249087222c562b7afd16d76eb31de6a83aa98ef.tar.gz
weatherstation_test.c: initial commit
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fbf0267..3c3c86f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ GITTAGFLAG := -D'VERSION_STRING="$(shell LC_ALL=C git describe --tags)"'
MODBUSLOGCFLAGS += $(GITTAGFLAG)
FTPHELPERCFLAGS += $(GITTAGFLAG)
-all: modbuslog ftphelper
+all: modbuslog ftphelper weatherstation_test
modbuslog: $(SDIR)/modbuslog.c
$(CC) -o $(SDIR)/$@ $^ $(MODBUSLOGCFLAGS) $(MODBUSLOGLIBS)
@@ -26,6 +26,9 @@ modbuslog: $(SDIR)/modbuslog.c
ftphelper: $(SDIR)/ftphelper.c
$(CC) -o $(SDIR)/$@ $^ $(FTPHELPERCFLAGS) $(FTPHELPERLIBS)
+weatherstation_test: $(SDIR)/weatherstation_test.c
+ $(CC) -o $(SDIR)/$@ $^ $(MODBUSLOGCFLAGS) $(MODBUSLOGLIBS)
+
install: all
$(INSTALL) $(SDIR)/modbuslog $(MODBUSLOGBINDIR)/modbuslog
test -f $(MODBUSLOGCFGDIR)/modbuslog.cfg || $(INSTALL) -m 644 $(SDIR)/modbuslog.cfg $(MODBUSLOGCFGDIR)/modbuslog.cfg