From 7249087222c562b7afd16d76eb31de6a83aa98ef Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Sun, 20 May 2012 22:05:03 +0100 Subject: weatherstation_test.c: initial commit --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3