2004-09-08 15:32:31 +02:00
|
|
|
$NetBSD: patch-aa,v 1.2 2004/09/08 13:32:31 wiz Exp $
|
2000-07-31 18:47:04 +02:00
|
|
|
|
2004-09-08 15:32:31 +02:00
|
|
|
--- Makefile.in.orig 2003-06-19 21:34:17.000000000 +0200
|
|
|
|
+++ Makefile.in
|
|
|
|
@@ -23,11 +23,12 @@ CFITSIO_INCLUDE = @CFITSIO_PREFIX@/inclu
|
2000-07-31 18:47:04 +02:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
-CC = @CC@
|
2004-09-08 15:32:31 +02:00
|
|
|
+CC = ${LIBTOOL} --mode=compile @CC@
|
|
|
|
+LD = ${LIBTOOL} --mode=link @CC@
|
2000-07-31 18:47:04 +02:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
FC = @FC@
|
|
|
|
LDFLAGS = $(CFLAGS)
|
|
|
|
-DEFS = @DEFS@
|
|
|
|
+DEFS = @DEFS@ -Dunix
|
|
|
|
LIBS = @LIBS@
|
|
|
|
FLEX = flex
|
|
|
|
BISON = bison
|
2004-09-08 15:32:31 +02:00
|
|
|
@@ -73,46 +74,41 @@ all:
|
2000-07-31 18:47:04 +02:00
|
|
|
all-nofitsio:
|
|
|
|
${MAKE} stand_alone "FITSIO_SRC="
|
|
|
|
|
|
|
|
-stand_alone: libcfitsio.a
|
|
|
|
+stand_alone: libcfitsio.la
|
2004-09-08 15:32:31 +02:00
|
|
|
+
|
|
|
|
+libcfitsio.la: ${OBJECTS}
|
|
|
|
+ ${LIBTOOL} --mode=link @CC@ -o $@ ${OBJECTS:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:0
|
2000-07-31 18:47:04 +02:00
|
|
|
|
|
|
|
-libcfitsio.a: ${OBJECTS}
|
|
|
|
- ar rv libcfitsio.a ${OBJECTS}; \
|
|
|
|
- ${RANLIB} libcfitsio.a;
|
|
|
|
|
2004-09-08 15:32:31 +02:00
|
|
|
shared: libcfitsio${SHLIB_SUFFIX}
|
|
|
|
|
|
|
|
libcfitsio${SHLIB_SUFFIX}: ${OBJECTS}
|
|
|
|
${SHLIB_LD} -o $@ ${OBJECTS}
|
2000-07-31 18:47:04 +02:00
|
|
|
|
2004-09-08 15:32:31 +02:00
|
|
|
-install: libcfitsio.a ${CFITSIO_LIB} ${CFITSIO_INCLUDE}
|
|
|
|
- @if [ -f libcfitsio.a ]; then \
|
|
|
|
- /bin/mv libcfitsio.a ${CFITSIO_LIB}; \
|
|
|
|
- fi; \
|
|
|
|
- if [ -f libcfitsio${SHLIB_SUFFIX} ]; then \
|
|
|
|
- /bin/mv libcfitsio${SHLIB_SUFFIX} ${CFITSIO_LIB}; \
|
|
|
|
- fi; \
|
|
|
|
- /bin/cp fitsio.h fitsio2.h longnam.h drvrsmem.h ${CFITSIO_INCLUDE}/
|
|
|
|
-
|
|
|
|
-smem: smem.o libcfitsio.a ${OBJECTS}
|
|
|
|
- ${CC} $(CFLAGS) $(DEFS) -o smem smem.o -L. -lcfitsio -lm
|
|
|
|
-
|
|
|
|
-testprog: testprog.o libcfitsio.a ${OBJECTS}
|
2000-07-31 18:47:04 +02:00
|
|
|
- ${CC} $(CFLAGS) $(DEFS) -o testprog testprog.o -L. -lcfitsio -lm ${LIBS}
|
2004-09-08 15:32:31 +02:00
|
|
|
-
|
|
|
|
-fitscopy: fitscopy.o libcfitsio.a ${OBJECTS}
|
|
|
|
- ${CC} $(CFLAGS) $(DEFS) -o fitscopy fitscopy.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
-
|
|
|
|
-speed: speed.o libcfitsio.a ${OBJECTS}
|
|
|
|
- ${CC} $(CFLAGS) $(DEFS) -o speed speed.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
+install: libcfitsio.la ${CFITSIO_LIB} ${CFITSIO_INCLUDE}
|
|
|
|
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcfitsio.la ${CFITSIO_LIB}
|
|
|
|
+ ${BSD_INSTALL_DATA} fitsio.h fitsio2.h longnam.h drvrsmem.h ${CFITSIO_INCLUDE}/
|
|
|
|
+
|
|
|
|
+smem: smem.o libcfitsio.la ${OBJECTS}
|
|
|
|
+ ${LD} $(CFLAGS) $(DEFS) -o smem smem.o -L. -lcfitsio -lm
|
|
|
|
+
|
|
|
|
+testprog: testprog.o libcfitsio.la ${OBJECTS}
|
|
|
|
+ ${LD} $(CFLAGS) $(DEFS) -o testprog testprog.o libcfitsio.la -lm ${LIBS}
|
|
|
|
+
|
|
|
|
+fitscopy: fitscopy.o libcfitsio.la ${OBJECTS}
|
|
|
|
+ ${LD} $(CFLAGS) $(DEFS) -o fitscopy fitscopy.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
+
|
|
|
|
+speed: speed.o libcfitsio.la ${OBJECTS}
|
|
|
|
+ ${LD} $(CFLAGS) $(DEFS) -o speed speed.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
|
|
|
|
-imcopy: imcopy.o libcfitsio.a ${OBJECTS}
|
|
|
|
- ${CC} $(CFLAGS) $(DEFS) -o imcopy imcopy.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
+imcopy: imcopy.o libcfitsio.la ${OBJECTS}
|
|
|
|
+ ${LD} $(CFLAGS) $(DEFS) -o imcopy imcopy.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
|
|
|
|
-listhead: listhead.o libcfitsio.a ${OBJECTS}
|
|
|
|
- ${CC} $(CFLAGS) $(DEFS) -o listhead listhead.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
+listhead: listhead.o libcfitsio.la ${OBJECTS}
|
|
|
|
+ ${LD} $(CFLAGS) $(DEFS) -o listhead listhead.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
|
|
|
|
-cookbook: cookbook.o libcfitsio.a ${OBJECTS}
|
|
|
|
- ${CC} $(CFLAGS) $(DEFS) -o cookbook cookbook.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
+cookbook: cookbook.o libcfitsio.la ${OBJECTS}
|
|
|
|
+ ${LD} $(CFLAGS) $(DEFS) -o cookbook cookbook.o -L. -lcfitsio -lm ${LIBS}
|
|
|
|
|
|
|
|
eval: # Rebuild eval_* files from flex/bison source
|
|
|
|
$(FLEX) -t eval.l > eval_l.c1
|
|
|
|
@@ -124,7 +120,7 @@ eval: # Rebuild eval_* files from flex/
|
|
|
|
/bin/rm -f y.tab.c y.tab.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
- - /bin/rm -f *.o libcfitsio.a libcfitsio${SHLIB_SUFFIX} \
|
|
|
|
+ - /bin/rm -f *.o libcfitsio.la libcfitsio${SHLIB_SUFFIX} \
|
|
|
|
smem testprog y.output
|
2000-07-31 18:47:04 +02:00
|
|
|
|
2004-09-08 15:32:31 +02:00
|
|
|
distclean: clean
|