b0f35cbe8c5cec1e546d4f7543f3fc2816142b46
[framework/appfw/alarm-manager.git] / TC / unit / Makefile
1 CC ?= gcc
2
3 TARGETS = utc_ApplicationFW_alarmmgr_init_func \
4           utc_ApplicationFW_alarmmgr_set_cb_func \
5           utc_ApplicationFW_alarmmgr_create_alarm_func \
6           utc_ApplicationFW_alarmmgr_free_alarm_func \
7           utc_ApplicationFW_alarmmgr_set_time_func \
8           utc_ApplicationFW_alarmmgr_get_time_func \
9           utc_ApplicationFW_alarmmgr_set_repeat_mode_func \
10           utc_ApplicationFW_alarmmgr_get_repeat_mode_func \
11           utc_ApplicationFW_alarmmgr_set_type_func \
12           utc_ApplicationFW_alarmmgr_get_type_func \
13           utc_ApplicationFW_alarmmgr_add_alarm_with_localtime_func \
14           utc_ApplicationFW_alarmmgr_add_alarm_func \
15           utc_ApplicationFW_alarmmgr_remove_alarm_func \
16           utc_ApplicationFW_alarmmgr_enum_alarm_ids_func \
17           utc_ApplicationFW_alarmmgr_get_info_func
18
19 PKGS = alarm-service 
20
21 LDFLAGS = `pkg-config --libs $(PKGS)`
22 LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
23 LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
24 LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
25
26 CFLAGS = -I. `pkg-config --cflags $(PKGS)`
27 CFLAGS += -I$(TET_ROOT)/inc/tet3
28 CFLAGS += -Wall
29
30 all: $(TARGETS)
31
32 $(TARGETS): %: %.c
33         $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
34
35 clean:
36         rm -f $(TARGETS)