aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-02-12 23:25:19 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-02-12 23:25:19 +0000
commitd9e7690dc169c82d0011ca0a49f74e980f707b0b (patch)
tree3c3a9ffeb773a94e838d2c7f9d9e6e76374809cc /Makefile
parent94dc9792a9f636771ea1388f395ca89a2d07c74b (diff)
downloadverteco-d9e7690dc169c82d0011ca0a49f74e980f707b0b.tar.gz
Add ftp upload function + add documentation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c4a7d89..e4b2a0f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,14 @@
CC=gcc
-CFLAGS=-I/usr/include/modbus
-LIBS=-lmodbus -lconfig
SDIR=src
+MODBUSLOGCFLAGS=-I/usr/include/modbus
+MODBUSLOGLIBS=-lmodbus -lconfig
+FTPHELPERCFLAGS=
+FTPHELPERLIBS=-lconfig
+
+all: modbuslog ftphelper
modbuslog: $(SDIR)/modbuslog.c
- $(CC) -o $(SDIR)/$@ $^ $(CFLAGS) $(LIBS)
+ $(CC) -o $(SDIR)/$@ $^ $(MODBUSLOGCFLAGS) $(MODBUSLOGLIBS)
+
+ftphelper: $(SDIR)/ftphelper.c
+ $(CC) -o $(SDIR)/$@ $^ $(FTPHELPERCFLAGS) $(FTPHELPERLIBS)