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