diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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) |