~ubuntu-branches/debian/stretch/tcl-fitstcl/stretch

« back to all changes in this revision

Viewing changes to .pc/use_shared_cfitsio.patch/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2015-06-10 17:35:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20150610173543-37jifpt0bjuocrr0
Tags: 2.4-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# FITS TCL makefile.in
2
 
# $Id: Makefile.in,v 1.17 2006/09/25 15:27:02 irby Exp $
 
2
# $Id: Makefile.in,v 1.19 2015/02/26 16:54:22 irby Exp $
3
3
 
4
4
#----------------------------------------------------------------------------
5
5
# Definitions:
7
7
LIBRARY         = fitstcl
8
8
 
9
9
CFILES          = fitsInit.c fitsUtils.c fitsTcl.c fitsCmds.c fitsIO.c fvTcl.c
10
 
 
11
10
SHARED_CFILE    = tclShared.c
12
11
 
13
12
OBJECTS         = ${CFILES:.c=.o}
14
13
LOCAL_OBJ       = ${OBJECTS} ${SHARED_CFILE:.c=.o}
15
 
SHARED_OBJ      = ${LOCAL_OBJ} ${CFITSIO_DIR}/*.o
 
14
 
 
15
CFITSIO_OBJ_TMP = ${shell if [ -f ${CFITSIO_DIR}/Makefile ]; then ${MAKE} -f ${CFITSIO_DIR}/Makefile cfitsioLibObjs; fi | grep buffers}
 
16
CFITSIO_OBJ     = ${shell if [ "x${CFITSIO_OBJ_TMP}" != "x" ]; then echo ${CFITSIO_OBJ_TMP}; fi | sed "s: : ${CFITSIO_DIR}/:g" | sed "s:^:${CFITSIO_DIR}/:"}
 
17
 
 
18
SHARED_OBJ      = ${LOCAL_OBJ} ${CFITSIO_OBJ}
16
19
 
17
20
STATIC_LIB      = lib${LIBRARY}.a
18
21
SHARED_LIB      = lib${LIBRARY}${SHLIB_SUFFIX}
19
22
 
20
 
IFLAGS          = -I${CFITSIO_DIR} -I${TCL_INC_PATH}
 
23
IFLAGS          = -I${CFITSIO_DIR} -I${TCL_INC_PATH} -I./
21
24
 
22
25
#----------------------------------------------------------------------------
23
26
# Configurable macros:
66
69
build-cfitsio:
67
70
        @if [ "x${CFITSIO_DIR}" != x ]; then \
68
71
            if [ -d "${CFITSIO_DIR}" ]; then \
69
 
                if [ ! -f ${CFITSIO_DIR}/f77_wrap4.o ]; then \
 
72
                if [ ! -f ${CFITSIO_DIR}/buffers.o ]; then \
70
73
                        echo "Configuring and building in ${CFITSIO_DIR}"; \
71
74
                        cd ${CFITSIO_DIR}; ./configure; \
72
75
                        ${MAKE} stand_alone "CC=${CC}" "CFLAGS=${CFLAGS}" \
91
94
        fi
92
95
 
93
96
clean:
94
 
        -rm -rf *.o *~ ${STATIC_LIB} ${SHARED_LIB}
 
97
        -rm -rf ${LOCAL_OBJ} ${STATIC_LIB} ${SHARED_LIB}
95
98
 
96
99
distclean: clean
97
100
        -rm -f config.cache config.status config.log Makefile so_locations
106
109
 
107
110
 
108
111
.c.o:
109
 
        ${CC} -c ${CFLAGS} ${DEFS} ${IFLAGS} $<
 
112
        ${CC} -c -o ${<D}/${@F} ${CFLAGS} ${DEFS} ${IFLAGS} $<
110
113
 
111
114
#
112
115
# $Log: Makefile.in,v $
 
116
# Revision 1.19  2015/02/26 16:54:22  irby
 
117
# Remove wcslib dependency.
 
118
#
 
119
# Revision 1.18  2013/01/15 16:47:25  irby
 
120
# Rework inclusion of cfitsio objects and add wcslib object (wcstrig.o).
 
121
#
113
122
# Revision 1.17  2006/09/25 15:27:02  irby
114
123
# Do not remove wcssub.o prior to creating libfitstcl.  As of cfitsio
115
124
# v3.004 the wcssub routine is needed by fitsTcl.