summaryrefslogtreecommitdiff
path: root/samsung_tools/Makefile
blob: 971e010b54d09a0a713ac4ffcffbc62a83ff6b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#CROSS_COMPILE = arm-linux-gnueabi-
CC            = $(CROSS_COMPILE)gcc

SERVER_DBUS_SOURCES=serwer.c

CLIENT_DBUS_SOURCES=client.c

#SQLITE_CFLAGS=`pkg-config --cflags sqlite3`
#SQLITE_LIBS=`pkg-config --libs sqlite3`

ifndef CROSS_COMPILE
DBUS_CFLAGS=-I../
DBUS_LIBS=-L../dbus/.libs/ -ldbus-1
else
DBUS_CFLAGS=-I/home/`whoami`/GBS-ROOT/local/BUILD-ROOTS/scratch.armv7l.0/.build.packages/BUILD/com.samsung.dbus-1.7.5
DBUS_LIBS=-L/home/`whoami`/GBS-ROOT/local/BUILD-ROOTS/scratch.armv7l.0/.build.packages/BUILD/com.samsung.dbus-1.7.5/dbus/.libs -ldbus-1
endif

INCLUDES=-Wall -g -O0

SUBDIRS = test_foxp_latency

.PHONY: test_foxp_latency all

all: ping-server ping-client test_foxp_latency

test_foxp_latency:
	$(MAKE) -C $@

ping-server:
	$(CC) -o $@ $(SERVER_DBUS_SOURCES) $(INCLUDES) $(DBUS_CFLAGS) $(CFLAGS) $(DBUS_LIBS) $(SQLITE_CFLAGS) $(SQLITE_LIBS)

ping-client: 
	$(CC) -o $@ $(CLIENT_DBUS_SOURCES) $(INCLUDES) $(DBUS_CFLAGS) $(CFLAGS) $(DBUS_LIBS) $(SQLITE_CFLAGS) $(SQLITE_LIBS) 

install:


clean:
	rm -f *.o ping-server ping-client