Mercurial > hg > Members > masakoha > testcode
comparison c/getWord/Makefile @ 113:ffef79514d3c pairPro
add getWord
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Nov 2015 17:49:11 +0900 |
parents | c/regexParser/Makefile@7809fb223dc9 |
children |
comparison
equal
deleted
inserted
replaced
112:ec485345daf9 | 113:ffef79514d3c |
---|---|
1 TARGET= getWord | |
2 CFLAGS= -Wall -O0 -g | |
3 CC= clang | |
4 | |
5 SRCS_TMP = $(wildcard *.c) | |
6 SRCS_EXCLUDE = # 除外するファイルを書く | |
7 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
8 OBJS = $(SRCS:.c=.o) | |
9 | |
10 .SUFFIXES: .c .o | |
11 | |
12 .c.o: | |
13 $(CC) $(CFLAGS) -c $< -o $@ | |
14 | |
15 all: $(TARGET) | |
16 | |
17 $(TARGET):$(OBJS) | |
18 $(CC) -o $@ $(OBJS) | |
19 | |
20 link: | |
21 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
22 | |
23 clean: | |
24 rm -f $(TARGET) $(OBJS) | |
25 rm -f *~ \#* | |
26 | |
27 test: | |
28 ./$(TARGET) -w "test" | |
29 ./$(TARGET) -w "test)" | |
30 ./$(TARGET) -w "(test)" |