Project

General

Profile

Statistics
| Branch: | Revision:

root / mainbox / Makefile @ 911e4e11

History | View | Annotate | Download (404 Bytes)

1
SRC=main.c tool.c query.c event.c util.c log.c cache.c
2
HDR=tool.h query.h event.h util.h log.h cache.h ../tooltron_mb.h
3

    
4
FLAGS=-O2 -g -Wall -I.. `pkg-config --cflags --libs libmodbus libcurl`
5

    
6
all: tooltron
7

    
8
tooltron: $(SRC) $(HDR)
9
	gcc $(SRC) $(FLAGS) -o $@
10

    
11
install: tooltron
12
	cp tooltron /usr/local/bin
13
	cp tooltron.init /usr/init.d/tooltron
14
	update-rc.d tooltron defaults
15

    
16
clean:
17
	rm -f *.o tooltron