aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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