summaryrefslogtreecommitdiff
path: root/TC/testcase/Makefile
diff options
context:
space:
mode:
authorjy910.yun <jy910.yun@samsung.com>2012-08-21 19:11:00 +0900
committerjy910.yun <jy910.yun@samsung.com>2012-08-21 19:11:00 +0900
commit084b8672dd390c1338a7949ebe91ad76f081a29e (patch)
tree2f6a5a833bbd67aaee97bb644d4b739a38b40f3c /TC/testcase/Makefile
parent24c06363581c4713b198e0c12d6c01ae380da000 (diff)
downloadhaptic-master.tar.gz
haptic-master.tar.bz2
haptic-master.zip
Diffstat (limited to 'TC/testcase/Makefile')
-rwxr-xr-xTC/testcase/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile
new file mode 100755
index 0000000..04df82b
--- /dev/null
+++ b/TC/testcase/Makefile
@@ -0,0 +1,28 @@
+CC = gcc
+
+C_FILES = $(shell ls *.c)
+
+PKGS = dlog capi-system-haptic
+
+#TET_ROOT = /home/idkiller/work/tetware/TETware/tetware-target
+
+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)