summaryrefslogtreecommitdiff
path: root/TC/testcase/Makefile
blob: 0d15f6534eca46d92c7bbf57e41545524eb27851 (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
CC = gcc

C_FILES = $(shell ls *.c)

PKGS = capi-ui-efl-util elementary ecore-x ecore evas x11 dlog glib-2.0

LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
LDFLAGS += `pkg-config --libs $(PKGS)`

CFLAGS += `pkg-config --cflags $(PKGS)`
CFLAGS += -I.
CFLAGS += -I$(TET_ROOT)/inc/tet3
CFLAGS += -Wall

#TARGETS = $(C_FILES:%.c=tc-%)
TCS := $(shell ls -1 *.c | cut -d. -f1)

all: $(TCS)

%: %.c
	$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)

clean:
	rm -f $(TCS)