pkgsrc/biology/xylem/patches/patch-ab
2005-11-03 19:52:44 +00:00

76 lines
1.9 KiB
Text

$NetBSD: patch-ab,v 1.2 2005/11/03 19:52:44 rillig Exp $
--- src.c/Makefile.orig 2000-08-17 12:17:18.000000000 -0400
+++ src.c/Makefile 2003-09-28 17:05:26.000000000 -0400
@@ -6,9 +6,9 @@
LDLIB = .
LIBOBJS = p2clib.o
#CC= gcc
-CC= cc
-CFLAGS= -O -L$(LDLIB) -lp2c -lm -I$(INCLIB)
-LFLAGS= -c
+#CC= cc
+MYCFLAGS= -O -L$(LDLIB) -lp2c -lm -I$(INCLIB)
+LFLAGS+= -c
PROGS= dbstat getloc getob identify prot2nuc reform ribosome splitdb shuffle flat2phyl phyl2flat
@@ -22,45 +22,45 @@
# Making the p2c runtime library
libp2c.a: $(LIBOBJS)
- ar r libp2c.a $(LIBOBJS); ranlib libp2c.a
+ ${AR} r libp2c.a $(LIBOBJS); ranlib libp2c.a
p2clib.o: p2clib.c
- $(CC) $(LFLAGS) p2clib.c
+ $(CC) $(LFLAGS) ${CFLAGS} p2clib.c
#libp2c.a: libp2c.a
# ranlib libp2c.a
# Making the programs
dbstat :
- $(CC) dbstat.c $(CFLAGS) -o dbstat
+ $(CC) dbstat.c $(MYCFLAGS) ${CFLAGS} -o dbstat
flat2phyl :
- $(CC) flat2phyl.c $(CFLAGS) -o flat2phyl
+ $(CC) flat2phyl.c $(MYCFLAGS) ${CFLAGS} -o flat2phyl
phyl2flat :
- $(CC) phyl2flat.c $(CFLAGS) -o phyl2flat
+ $(CC) phyl2flat.c $(MYCFLAGS) ${CFLAGS} -o phyl2flat
getloc :
- $(CC) getloc.c $(CFLAGS) -o getloc
+ $(CC) getloc.c $(MYCFLAGS) ${CFLAGS} -o getloc
getob :
- $(CC) getob.c $(CFLAGS) -o getob
+ $(CC) getob.c $(MYCFLAGS) ${CFLAGS} -o getob
identify :
- $(CC) identify.c $(CFLAGS) -o identify
+ $(CC) identify.c $(MYCFLAGS) ${CFLAGS} -o identify
prot2nuc :
- $(CC) prot2nuc.c $(CFLAGS) -o prot2nuc
+ $(CC) prot2nuc.c $(MYCFLAGS) ${CFLAGS} -o prot2nuc
reform :
- $(CC) reform.c $(CFLAGS) -o reform
+ $(CC) reform.c $(MYCFLAGS) ${CFLAGS} -o reform
ribosome :
- $(CC) ribosome.c $(CFLAGS) -o ribosome
+ $(CC) ribosome.c $(MYCFLAGS) ${CFLAGS} -o ribosome
shuffle :
- $(CC) shuffle.c $(CFLAGS) -o shuffle
+ $(CC) shuffle.c $(MYCFLAGS) ${CFLAGS} -o shuffle
splitdb :
- $(CC) splitdb.c $(CFLAGS) -o splitdb
+ $(CC) splitdb.c $(MYCFLAGS) ${CFLAGS} -o splitdb