Makefile 552 Bytes
Newer Older
1
2
3
all: frewe-client

frewe-client: frewe-client.c http_fetcher.c http_error_codes.c
4
	gcc frewe-client.c http_fetcher.c http_error_codes.c -o frewe-client -lusb -lm -lcrypto -lcurl 
Gebhardt, Albrecht's avatar
Gebhardt, Albrecht committed
5
6

install: frewe-client
Gebhardt, Albrecht's avatar
Gebhardt, Albrecht committed
7
8
9
10
	cp rc.frewe-client /etc/init.d/frewe-client
	cp frewe-client.cfg /etc && echo "please edit /etc/frewe-client.cfg"
	chmod 755  /etc/init.d/frewe-client
	update-rc.d frewe-client defaults
Gebhardt, Albrecht's avatar
Gebhardt, Albrecht committed
11
	mkdir -p /var/spool/frewe
Gebhardt, Albrecht's avatar
Gebhardt, Albrecht committed
12
	service frewe-client stop || true
Gebhardt, Albrecht's avatar
Gebhardt, Albrecht committed
13
	cp frewe-client /usr/local/bin/
Gebhardt, Albrecht's avatar
Gebhardt, Albrecht committed
14
	service frewe-client start || true
Gebhardt, Albrecht's avatar
Gebhardt, Albrecht committed
15
16
17

clean:
	rm -f *.o frewe-client