OLD | NEW |
1 # | 1 # |
2 # Copyright (c) International Business Machines Corp., 2004, 2005 | 2 # Copyright (c) International Business Machines Corp., 2004, 2005 |
3 # | 3 # |
4 # This program is free software; you can redistribute it and/or modify | 4 # This program is free software; you can redistribute it and/or modify |
5 # it under the terms of the GNU General Public License as published by | 5 # it under the terms of the GNU General Public License as published by |
6 # the Free Software Foundation; either version 2 of the License, or | 6 # the Free Software Foundation; either version 2 of the License, or |
7 # (at your option) any later version. | 7 # (at your option) any later version. |
8 # | 8 # |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
12 # the GNU General Public License for more details. | 12 # the GNU General Public License for more details. |
13 # | 13 # |
14 # You should have received a copy of the GNU General Public License | 14 # You should have received a copy of the GNU General Public License |
15 # along with this program; if not, write to the Free Software | 15 # along with this program; if not, write to the Free Software |
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 # | 17 # |
18 | 18 |
19 ########################################################################### | 19 ########################################################################### |
20 # name of file : Makefile # | 20 # name of file : Makefile # |
21 # description : make(1) description file for the testcase directories. # | 21 # description : make(1) description file for the testcase directories. # |
22 ########################################################################### | 22 ########################################################################### |
23 CC = gcc | 23 CC = gcc |
24 ifeq ($(WITH_GCOV),1) | 24 ifeq ($(WITH_GCOV),1) |
25 OPTS = -fprofile-arcs -ftest-coverage | 25 OPTS = -fprofile-arcs -ftest-coverage |
26 else | 26 else |
27 OPTS = | 27 OPTS = |
28 endif | 28 endif |
29 ALL = $(shell ls *.c | sed "s/\.c//g") | 29 ALL = $(shell ls *.c | sed "s/\.c//g") |
30 LIBS = ../../common/common.o -L/usr/local/lib -ltspi $(LDFLAGS) | 30 LIBS = ../../common/common.o -ltspi $(LDFLAGS) |
31 CFLAGS += -g -O0 -I../../include | 31 CFLAGS += -g -O0 -I../../include |
32 | 32 |
33 .c: ../../common/common.c | 33 .c: ../../common/common.c |
34 $(CC) $(OPTS) $(CFLAGS) -o $@ $< $(LIBS) | 34 $(CC) $(OPTS) $(CFLAGS) -o $@ $< $(LIBS) |
35 | 35 |
36 all: $(ALL) | 36 all: $(ALL) |
37 | 37 |
38 install: | 38 install: |
39 @set -e; for i in $(ALL); do mv $$i ../../bin/$$i ; done | 39 @set -e; for i in $(ALL); do mv $$i ../../bin/$$i ; done |
40 | 40 |
41 clean: | 41 clean: |
42 rm -f *.o ../../bin/$(ALL) *~ $(ALL) *.bbg *.bb *.da | 42 rm -f *.o ../../bin/$(ALL) *~ $(ALL) *.bbg *.bb *.da |
OLD | NEW |