aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: e4b2a0fcddb18a3eb83cf80e64bf749251c52297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CC=gcc
SDIR=src
MODBUSLOGCFLAGS=-I/usr/include/modbus
MODBUSLOGLIBS=-lmodbus -lconfig
FTPHELPERCFLAGS=
FTPHELPERLIBS=-lconfig

all: modbuslog ftphelper

modbuslog: $(SDIR)/modbuslog.c
	$(CC) -o $(SDIR)/$@ $^ $(MODBUSLOGCFLAGS) $(MODBUSLOGLIBS)

ftphelper: $(SDIR)/ftphelper.c
	$(CC) -o $(SDIR)/$@ $^ $(FTPHELPERCFLAGS) $(FTPHELPERLIBS)