summaryrefslogtreecommitdiff
path: root/TC/unit/Makefile
diff options
context:
space:
mode:
authorKibum Kim <kb0929.kim@samsung.com>2012-02-27 21:16:23 +0900
committerKibum Kim <kb0929.kim@samsung.com>2012-02-27 21:16:23 +0900
commitb20978afef9aeac60c217b7d4ba02a87b8b95296 (patch)
tree6fcfd38b47191b8f89fa76ba491c047a717affc6 /TC/unit/Makefile
downloadlibslp-pm-b20978afef9aeac60c217b7d4ba02a87b8b95296.tar.gz
libslp-pm-b20978afef9aeac60c217b7d4ba02a87b8b95296.tar.bz2
libslp-pm-b20978afef9aeac60c217b7d4ba02a87b8b95296.zip
tizen beta release
Diffstat (limited to 'TC/unit/Makefile')
-rw-r--r--TC/unit/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/TC/unit/Makefile b/TC/unit/Makefile
new file mode 100644
index 0000000..8474034
--- /dev/null
+++ b/TC/unit/Makefile
@@ -0,0 +1,24 @@
+CC ?= gcc
+
+TARGETS = utc_SystemFW_pm_change_state_func \
+ utc_SystemFW_pm_lock_state_func \
+ utc_SystemFW_pm_unlock_state_func \
+
+PKGS = pmapi
+
+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)