| @@ -1,15 +1,29 @@ | | | @@ -1,15 +1,29 @@ |
1 | $NetBSD: patch-aa,v 1.1 2011/02/10 16:15:36 agc Exp $ | | 1 | $NetBSD: patch-aa,v 1.2 2013/05/11 21:21:22 agc Exp $ |
2 | | | 2 | |
3 | Refer to the file of random numbers in the correct location | | 3 | Refer to the file of random numbers in the correct location |
4 | | | 4 | |
5 | --- Makefile 2011/02/10 04:47:36 1.1 | | 5 | Pick up ${CC} from environment if defined |
6 | +++ Makefile 2011/02/10 04:46:57 | | 6 | |
7 | @@ -104,7 +104,7 @@ | | 7 | --- Makefile.orig 2006-02-08 18:48:55.000000000 -0800 |
| | | 8 | +++ Makefile 2013-05-11 13:54:48.000000000 -0700 |
| | | 9 | @@ -25,8 +25,9 @@ |
| | | 10 | # make things more complex and error-prone. |
| | | 11 | |
| | | 12 | |
| | | 13 | -COMPILE = cc -c -O # Command to compile a module from .c to .o |
| | | 14 | -LINK = cc # Command to link a program |
| | | 15 | +CC?= cc |
| | | 16 | +COMPILE = ${CC} -c -O # Command to compile a module from .c to .o |
| | | 17 | +LINK = ${CC} # Command to link a program |
| | | 18 | |
| | | 19 | |
| | | 20 | # MAKE ALL THE MAIN PROGRAMS. First makes the modules used. |
| | | 21 | @@ -104,7 +105,7 @@ |
8 | $(COMPILE) mod2sparse.c | | 22 | $(COMPILE) mod2sparse.c |
9 | $(COMPILE) mod2convert.c | | 23 | $(COMPILE) mod2convert.c |
10 | $(COMPILE) distrib.c | | 24 | $(COMPILE) distrib.c |
11 | - $(COMPILE) -DRAND_FILE=\"`pwd`/randfile\" rand.c | | 25 | - $(COMPILE) -DRAND_FILE=\"`pwd`/randfile\" rand.c |
12 | + $(COMPILE) -DRAND_FILE=\"${PREFIX}/share/ldpc/randfile\" rand.c | | 26 | + $(COMPILE) -DRAND_FILE=\"${PREFIX}/share/ldpc/randfile\" rand.c |
13 | | | 27 | |
14 | | | 28 | |
15 | # CLEAN UP ALL PROGRAMS AND REMOVE ALL FILES PRODUCED BY TESTS AND EXAMPLES. | | 29 | # CLEAN UP ALL PROGRAMS AND REMOVE ALL FILES PRODUCED BY TESTS AND EXAMPLES. |