summaryrefslogtreecommitdiff
path: root/TC/unit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'TC/unit/Makefile')
-rw-r--r--TC/unit/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/TC/unit/Makefile b/TC/unit/Makefile
new file mode 100644
index 0000000..7bb6092
--- /dev/null
+++ b/TC/unit/Makefile
@@ -0,0 +1,31 @@
+CC ?= gcc
+
+TARGETS = utc_SystemFW_sysconf_is_vip_func \
+ utc_SystemFW_sysconf_set_mempolicy_bypid_func \
+ utc_SystemFW_sysconf_set_mempolicy_func \
+ utc_SystemFW_sysconf_set_permanent_bypid_func \
+ utc_SystemFW_sysconf_set_permanent_func \
+ utc_SystemFW_sysconf_set_vip_func \
+ utc_SystemFW_sysman_get_apppath_func \
+ utc_SystemFW_sysman_get_cmdline_name_func \
+ utc_SystemFW_sysman_get_pid_func \
+ utc_SystemFW_sysman_set_datetime_func \
+
+PKGS = sysman
+
+LDFLAGS = `pkg-config --libs $(PKGS)`
+LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
+LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
+
+CFLAGS = -I. `pkg-config --cflags $(PKGS)`
+CFLAGS += -I$(TET_ROOT)/inc/tet3
+CFLAGS += -Wall
+
+all: $(TARGETS)
+
+$(TARGETS): %: %.c
+ $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
+
+clean:
+ rm -f $(TARGETS)