Initial checkin of tethering script and C implementation with hardcoded paths
[mtetherd] / Makefile
1 MAD = mad
2 CC = gcc
3 CFLAGS = -Wall -O2 -D_GNU_SOURCE
4 INCLUDES = -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
5 LIBS = -ldbus-1 -lpthread
6 SSH_ADDRESS = developer@192.168.253.254
7 SSH_SCP = scp
8 SSH_SSH = ssh
9 SSH_PATH = /home/developer
10
11 maemo-tethering: main.o
12         $(MAD) $(CC) $(LDLFAGS) $(LIBS) -o $@ $^
13
14 %PHONY: copy run clean
15
16 copy: maemo-tethering
17         $(SSH_SCP) $^ $(SSH_ADDRESS):$(SSH_PATH)
18
19 run: copy
20         $(SSH_SSH) $(SSH_ADDRESS) $(SSH_PATH)/maemo-tethering
21
22 clean:
23         rm -f *.o maemo-tethering
24
25 %.o: %.c
26         $(MAD) $(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $^
27