1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
|
#
# Generic Makefile for the Client Display Library V1.0
#
# Mike Fitzpatrick, National Optical Astronomy Observatories, IRAF project.
# Apr 1997
EXTRA_CFLAGS =
CDEBUGFLAGS = -g
AR = ar r
ARADD = ar rul
RANLIB = ranlib
RM = rm
SUBDIRS = examples test
MATHLIB = -lm
SRCS = cdl.c cdlmark.c cdlfits.c cdliraf.c cdlzscale.c cdl_f77.c \
cdl_spp.c eps.c comm.c imd.c
OBJS = cdl.o cdlmark.o cdlfits.o cdliraf.o cdlzscale.o cdl_f77.o \
cdl_spp.o eps.o comm.o imd.o
CDL_INCLUDES = cdl.h cdlP.h cdlProto.h cdl_f77.h cdlfont.h eps.h
World::
@echo "Building Release 1.6 of the IRAF CLient Display Library"
@echo "" ; date ; echo ""
$(MAKE) $(MFLAGS) all
@echo "Done." ; date ; echo ""
.c.o:
$(RM) -f $@
$(CC) -c $(EXTRA_CFLAGS) $(CFLAGS) $*.c
all:: libcdl.a vximtool
libcdl.a: $(OBJS) $(CDL_INCLUDES)
$(RM) -f libcdl.a
$(AR) libcdl.a $(OBJS)
$(RANLIB) libcdl.a
vximtool: vximtool.o
$(RM) -f vximtool
$(CC) -o vximtool -DHAVE_CDL vximtool.o libcdl.a $(MATHLIB)
vximtool.o:
$(CC) -c $(CFLAGS) -DHAVE_CDL vximtool.c
$(SUBDIRS): FRC
@cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \
$(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' all
FRC:
all::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
(cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \
$(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' all); \
done
depend::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
(cd $$i ; echo "depending" "in $(CURRENT_DIR)/$$i..."; \
$(MAKE) $(MFLAGS) depend); \
done
pristine::
$(MAKE) $(MFLAGS) clean
$(RM) -f Makefile test/Makefile examples/Makefile
$(RM) -f Makefile.bak test/Makefile.bak examples/Makefile.bak
clean::
$(RM) -f *.o *.a *spool* vximtool
depend::
# -------------------------------------------------------------------------
# common rules for all Makefiles - do not edit
emptyrule::
Makefile::
-@if [ -f Makefile ]; then set -x; \
$(RM) -f Makefile.bak; $(MV) Makefile Makefile.bak; \
else exit 0; fi
$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
tags::
$(TAGS) -w *.[ch]
$(TAGS) -xw *.[ch] > TAGS
saber:
# load $(ALLDEFINES) $(SRCS)
osaber:
# load $(ALLDEFINES) $(OBJS)
# -------------------------------------------------------------------------
# rules for building in SUBDIRS - do not edit
install::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
done
install.man::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
(cd $$i ; echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.man); \
done
clean::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
(cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
$(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \
done
tags::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
(cd $$i ; echo "tagging" "in $(CURRENT_DIR)/$$i..."; \
$(MAKE) $(MFLAGS) TAGS='$(TAGS)' tags); \
done
Makefiles::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \
case "$$i" in \
./?*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
./?*/?*/?*) newtop=../../../ sub=subsubsub;; \
./?*/?*) newtop=../../ sub=subsub;; \
./?*) newtop=../ sub=sub;; \
*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
*/?*/?*) newtop=../../../ sub=subsubsub;; \
*/?*) newtop=../../ sub=subsub;; \
*) newtop=../ sub=sub;; \
esac; \
case "$(TOP)" in \
/?*) newtop= upprefix= ;; \
*) upprefix=../ ;; \
esac; \
$(MAKE) $${sub}dirMakefiles UPPREFIX=$$upprefix NEWTOP=$$newtop \
MAKEFILE_SUBDIR=$$i NEW_CURRENT_DIR=$(CURRENT_DIR)/$$i;\
done
subdirMakefiles:
$(RM) -f $(MAKEFILE_SUBDIR)/Makefile.bak
-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
else exit 0; fi
cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
$(MAKE) $(MFLAGS) Makefiles
subsubdirMakefiles:
$(RM) -f $(MAKEFILE_SUBDIR)/Makefile.bak
-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
else exit 0; fi
cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
$(MAKE) $(MFLAGS) Makefiles
subsubsubdirMakefiles:
$(RM) -f $(MAKEFILE_SUBDIR)/Makefile.bak
-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
else exit 0; fi
cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
$(MAKE) $(MFLAGS) Makefiles
subsubsubsubdirMakefiles:
$(RM) -f $(MAKEFILE_SUBDIR)/Makefile.bak
-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
else exit 0; fi
cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
$(MAKE) $(MFLAGS) Makefiles
includes::
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
for i in $(SUBDIRS) ;\
do \
(cd $$i ; echo including "in $(CURRENT_DIR)/$$i..."; \
$(MAKE) $(MFLAGS) includes); \
done
# -------------------------------------------------------------------------
# dependencies generated by makedepend
# DO NOT DELETE
|