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 |
(...skipping 10 matching lines...) Expand all Loading... |
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 SUBDIRS = `ls */Makefile | sed "s/Makefile//g"` | 30 SUBDIRS = `ls */Makefile | sed "s/Makefile//g"` |
31 LIBS = ../common/common.o $(LDFLAGS) | 31 LIBS = ../common/common.o -ltspi $(LDFLAGS) |
32 CFLAGS += -g -I../include | 32 CFLAGS += -g -I../include |
33 | 33 |
34 .c: | 34 .c: |
35 $(CC) $(OPTS) $(CFLAGS) -o $@ $< $(LIBS) | 35 $(CC) $(OPTS) $(CFLAGS) -o $@ $< $(LIBS) |
36 | 36 |
37 all: $(ALL) | 37 all: $(ALL) |
38 for i in $(SUBDIRS) ; do $(MAKE) -C $$i ; done | 38 for i in $(SUBDIRS) ; do $(MAKE) -C $$i ; done |
39 | 39 |
40 install: | 40 install: |
41 @set -e; for i in $(ALL); do mv $$i ../../bin/$$i ; done | 41 @set -e; for i in $(ALL); do mv $$i ../../bin/$$i ; done |
42 | 42 |
43 clean: | 43 clean: |
44 rm -f *.o ../../bin/$(ALL) *~ $(ALL) *.bbg *.bb *.da | 44 rm -f *.o ../../bin/$(ALL) *~ $(ALL) *.bbg *.bb *.da |
45 for i in $(SUBDIRS) ; do $(MAKE) -C $$i clean ; done | 45 for i in $(SUBDIRS) ; do $(MAKE) -C $$i clean ; done |
OLD | NEW |