annotate CbC-examples/quicksort/mc/Makefile @ 41:c816ae4380d7

add quicksort/mc/Makefile
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Mon, 25 Jan 2010 16:58:29 +0900
parents
children 9e4f9e20b8f1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 CbCC=../../../../device/mc
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #CC=gcc
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 CC=../../../../build-gcc/INSTALL_DIR/bin/cbc-gcc
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 HEADERMAKER=../../../CbC-scripts/make_headers.py2
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 CFLAGS=-g -Wall
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 .SUFFIXES: .cbc .o .s .c
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 all: quicksort_cbc quicksort_c quicksort_cbc2
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 quicksort_c.c quicksort_cbc.cbc quicksort_cbc2.cbc quicksort_test.cbc benchmark.sh:
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 ln -s ../$@
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 .s.o:
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 $(CC) -c -o $@ $<
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 .cbc.s:
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 $(CbCC) $<
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 .cbc.h:
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 $(HEADERMAKER) $^ > $@
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 quicksort_cbc.o: quicksort_cbc.h
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 quicksort_cbc2.o: quicksort_cbc2.h
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 quicksort_test.o: quicksort_test.h
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 quicksort_cbc: quicksort_cbc.o quicksort_test.o
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 $(CC) $(CFLAGS) -o $@ $^
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 quicksort_cbc2: quicksort_cbc2.o quicksort_test.o
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 $(CC) $(CFLAGS) -o $@ $^
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 quicksort_c: quicksort_c.o
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 $(CC) $(CFLAGS) -o $@ $^
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 clean:
c816ae4380d7 add quicksort/mc/Makefile
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 rm -rf *.o *.s quicksort_c quicksort_cbc quicksort_cbc2