diff options
Diffstat (limited to 'TC/testcase/Makefile')
-rwxr-xr-x | TC/testcase/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile new file mode 100755 index 0000000..b69c2cc --- /dev/null +++ b/TC/testcase/Makefile @@ -0,0 +1,30 @@ +CC = gcc + +C_FILES = $(shell ls *.c) + +PKGS = dlog capi-uix-face + +#TET_ROOT = /home/idkiller/work/tetware/TETware/tetware-target + +ROOT_DIR = /mnt/nfs/slp2.0/api/face/TC/testcase + +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 -DDATADIR=\"$(ROOT_DIR)/images/\" + +#TARGETS = $(C_FILES:%.c=tc-%) +TCS := $(shell ls -1 *.c | cut -d. -f1) + +all: $(TCS) + +%: %.c + $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) + +clean: + rm -f $(TCS) |