|
| 1 | +# |
| 2 | +# Makefile for iMatix GSL/4.1 |
| 3 | +# |
| 4 | +# Copyright (c) 1996-2010 iMatix Corporation |
| 5 | +# All rights reserved. |
| 6 | +# |
| 7 | +# This file is licensed under the BSD license as follows: |
| 8 | +# |
| 9 | +# Redistribution and use in source and binary forms, with or without |
| 10 | +# modification, are permitted provided that the following conditions |
| 11 | +# are met: |
| 12 | +# |
| 13 | +# * Redistributions of source code must retain the above copyright |
| 14 | +# notice, this list of conditions and the following disclaimer. |
| 15 | +# * Redistributions in binary form must reproduce the above copyright |
| 16 | +# notice, this list of conditions and the following disclaimer in |
| 17 | +# the documentation and/or other materials provided with the |
| 18 | +# distribution. |
| 19 | +# * Neither the name of iMatix Corporation nor the names of its |
| 20 | +# contributors may be used to endorse or promote products derived |
| 21 | +# from this software without specific prior written permission. |
| 22 | +# |
| 23 | +# THIS SOFTWARE IS PROVIDED BY IMATIX CORPORATION "AS IS" AND ANY |
| 24 | +# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 25 | +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 26 | +# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL IMATIX CORPORATION BE |
| 27 | +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 28 | +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 29 | +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 30 | +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 31 | +# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 32 | +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 33 | +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 34 | +# |
| 35 | +# Default values for object, library, and executable extensions. |
| 36 | +# |
| 37 | +OBJ = .o |
| 38 | +LIB = .a |
| 39 | +EXE = |
| 40 | +CC = c -q |
| 41 | + |
| 42 | +# Reset the suffixes that will be considered to just our own list. |
| 43 | +# |
| 44 | +# Make programs use the .SUFFIXES psuedo rule for this |
| 45 | + |
| 46 | +.SUFFIXES: |
| 47 | +.SUFFIXES: $(EXE) $(LIB) $(OBJ) .c .d .i |
| 48 | + |
| 49 | +# Objects depend on source files with the same name; and are compiled |
| 50 | +# with the iMatix c script without any arguments. |
| 51 | +# |
| 52 | +.c$(OBJ): |
| 53 | + $(CC) $< |
| 54 | + |
| 55 | +# |
| 56 | +# Default rule -- all depends on everything. |
| 57 | +# We do this so that we can define the rule at the end. |
| 58 | +# |
| 59 | +all: everything |
| 60 | +# |
| 61 | +# The following targets are not files. Mark them as such. |
| 62 | +# |
| 63 | +.PHONY: all everything install clean |
| 64 | +# |
| 65 | +# Dependencies |
| 66 | +# |
| 67 | +libgsl$(LIB): ggobjt$(OBJ) ggcomm$(OBJ) ggscop$(OBJ) ggcode$(OBJ) ggcodem$(OBJ) ggpars$(OBJ) ggparsm$(OBJ) ggconv$(OBJ) ggdiag$(OBJ) ggenvt$(OBJ) ggfile$(OBJ) gggsl$(OBJ) ggmath$(OBJ) ggpcre$(OBJ) ggproc$(OBJ) ggscrp$(OBJ) ggsock$(OBJ) ggstrn$(OBJ) ggsymb$(OBJ) ggthrd$(OBJ) ggtime$(OBJ) ggxml$(OBJ) sflbits$(OBJ) sflcvds$(OBJ) sflcvts$(OBJ) sflfile$(OBJ) sfllbuf$(OBJ) sflnode$(OBJ) sflsock$(OBJ) sfltron$(OBJ) smtlog$(OBJ) smtsimu$(OBJ) smttst2$(OBJ) sflcomp$(OBJ) sflcvns$(OBJ) sfldate$(OBJ) sflfind$(OBJ) sfllist$(OBJ) sflprint$(OBJ) sflsort$(OBJ) sfluid$(OBJ) smtoper$(OBJ) smtslot$(OBJ) smttst3$(OBJ) sflcons$(OBJ) sflcvsb$(OBJ) sfldes$(OBJ) sflfort$(OBJ) sflmail$(OBJ) sflproc$(OBJ) sflstr$(OBJ) sflxml$(OBJ) smtpipe$(OBJ) smtsmtp$(OBJ) smtxlog$(OBJ) sflconv$(OBJ) sflcvsd$(OBJ) sfldescr$(OBJ) sflheap$(OBJ) sflmath$(OBJ) sflscrit$(OBJ) sflsymb$(OBJ) sflxmll$(OBJ) smtpop$(OBJ) smtsock$(OBJ) sflcryp$(OBJ) sflcvsn$(OBJ) sfldir$(OBJ) sflhttp$(OBJ) sflmem$(OBJ) sflsearch$(OBJ) sflsyst$(OBJ) sflxmls$(OBJ) smtrdns$(OBJ) smttime$(OBJ) sflcvbs$(OBJ) sflcvst$(OBJ) sflenv$(OBJ) sflini$(OBJ) sflmesg$(OBJ) sflsha$(OBJ) sfltok$(OBJ) smtecho$(OBJ) smtrdnsl$(OBJ) smttran$(OBJ) sflcvdp$(OBJ) sflcvtp$(OBJ) sflexdr$(OBJ) sfllang$(OBJ) sflmime$(OBJ) sflslot$(OBJ) sfltree$(OBJ) smtlib$(OBJ) smtserv$(OBJ) smttst1$(OBJ) |
| 68 | + $(CC) -r libgsl$(LIB) ggobjt$(OBJ) ggcomm$(OBJ) ggscop$(OBJ) ggcode$(OBJ) ggcodem$(OBJ) ggpars$(OBJ) ggparsm$(OBJ) ggconv$(OBJ) ggdiag$(OBJ) ggenvt$(OBJ) ggfile$(OBJ) gggsl$(OBJ) ggmath$(OBJ) ggpcre$(OBJ) ggproc$(OBJ) ggscrp$(OBJ) ggsock$(OBJ) ggstrn$(OBJ) ggsymb$(OBJ) ggthrd$(OBJ) ggtime$(OBJ) ggxml$(OBJ) sflbits$(OBJ) sflcvds$(OBJ) sflcvts$(OBJ) sflfile$(OBJ) sfllbuf$(OBJ) sflnode$(OBJ) sflsock$(OBJ) sfltron$(OBJ) smtlog$(OBJ) smtsimu$(OBJ) smttst2$(OBJ) sflcomp$(OBJ) sflcvns$(OBJ) sfldate$(OBJ) sflfind$(OBJ) sfllist$(OBJ) sflprint$(OBJ) sflsort$(OBJ) sfluid$(OBJ) smtoper$(OBJ) smtslot$(OBJ) smttst3$(OBJ) sflcons$(OBJ) sflcvsb$(OBJ) sfldes$(OBJ) sflfort$(OBJ) sflmail$(OBJ) sflproc$(OBJ) sflstr$(OBJ) sflxml$(OBJ) smtpipe$(OBJ) smtsmtp$(OBJ) smtxlog$(OBJ) sflconv$(OBJ) sflcvsd$(OBJ) sfldescr$(OBJ) sflheap$(OBJ) sflmath$(OBJ) sflscrit$(OBJ) sflsymb$(OBJ) sflxmll$(OBJ) smtpop$(OBJ) smtsock$(OBJ) sflcryp$(OBJ) sflcvsn$(OBJ) sfldir$(OBJ) sflhttp$(OBJ) sflmem$(OBJ) sflsearch$(OBJ) sflsyst$(OBJ) sflxmls$(OBJ) smtrdns$(OBJ) smttime$(OBJ) sflcvbs$(OBJ) sflcvst$(OBJ) sflenv$(OBJ) sflini$(OBJ) sflmesg$(OBJ) sflsha$(OBJ) sfltok$(OBJ) smtecho$(OBJ) smtrdnsl$(OBJ) smttran$(OBJ) sflcvdp$(OBJ) sflcvtp$(OBJ) sflexdr$(OBJ) sfllang$(OBJ) sflmime$(OBJ) sflslot$(OBJ) sfltree$(OBJ) smtlib$(OBJ) smtserv$(OBJ) smttst1$(OBJ) |
| 69 | +gsl$(OBJ): gsl.c ggpriv.h ggcomm.h ggpars.h ggscop.h ggcode.h ggobjt.h version.h sflbits.h sfldescr.h sflfind.h sflini.h sflmem.h sflprocx.h sflstr.h sfluid.h smthead.h smtserv.h sflcomp.h sfldes.h sflfort.h sfllang.h sflmesg.h sflsearch.h sflsymb.h sflxml.h smtlib.h smtsimu.h sflcons.h sfldir.h sfl.h sfllbuf.h sflmime.h sflsha.h sflsyst.h sflxmll.h smtmem.h smtsslm.h sflconv.h sflenv.h sflhead.h sfllist.h sflnode.h sflslot.h sfltok.h sflxmls.h smtmsg.h smttime.h sflcryp.h sflexdr.h sflheap.h sflmail.h sflprint.h sflsock.h sfltree.h smt3.h smtpriv.h smtxlog.h sfldate.h sflfile.h sflhttp.h sflmath.h sflproc.h sflsort.h sfltron.h smtdefn.h smtrdnsl.h |
| 70 | +gsl$(EXE): gsl$(OBJ) libgsl$(LIB) |
| 71 | + $(CC) -L gsl |
| 72 | +ggobjt$(OBJ): ggobjt.c |
| 73 | +ggcomm$(OBJ): ggcomm.c |
| 74 | +ggscop$(OBJ): ggscop.c |
| 75 | +ggcode$(OBJ): ggcode.c |
| 76 | +ggcodem$(OBJ): ggcodem.c |
| 77 | +ggpars$(OBJ): ggpars.c |
| 78 | +ggparsm$(OBJ): ggparsm.c |
| 79 | +ggconv$(OBJ): ggconv.c |
| 80 | +ggdiag$(OBJ): ggdiag.c |
| 81 | +ggenvt$(OBJ): ggenvt.c |
| 82 | +ggfile$(OBJ): ggfile.c |
| 83 | +gggsl$(OBJ): gggsl.c |
| 84 | +ggmath$(OBJ): ggmath.c |
| 85 | +ggpcre$(OBJ): ggpcre.c |
| 86 | +ggproc$(OBJ): ggproc.c |
| 87 | +ggscrp$(OBJ): ggscrp.c |
| 88 | +ggsock$(OBJ): ggsock.c |
| 89 | +ggstrn$(OBJ): ggstrn.c |
| 90 | +ggsymb$(OBJ): ggsymb.c |
| 91 | +ggthrd$(OBJ): ggthrd.c |
| 92 | +ggtime$(OBJ): ggtime.c |
| 93 | +ggxml$(OBJ): ggxml.c |
| 94 | +sflbits$(OBJ): sflbits.c |
| 95 | +sflcomp$(OBJ): sflcomp.c |
| 96 | +sflcons$(OBJ): sflcons.c |
| 97 | +sflconv$(OBJ): sflconv.c |
| 98 | +sflcryp$(OBJ): sflcryp.c |
| 99 | +sflcvbs$(OBJ): sflcvbs.c |
| 100 | +sflcvdp$(OBJ): sflcvdp.c |
| 101 | +sflcvds$(OBJ): sflcvds.c |
| 102 | +sflcvns$(OBJ): sflcvns.c |
| 103 | +sflcvsb$(OBJ): sflcvsb.c |
| 104 | +sflcvsd$(OBJ): sflcvsd.c |
| 105 | +sflcvsn$(OBJ): sflcvsn.c |
| 106 | +sflcvst$(OBJ): sflcvst.c |
| 107 | +sflcvtp$(OBJ): sflcvtp.c |
| 108 | +sflcvts$(OBJ): sflcvts.c |
| 109 | +sfldate$(OBJ): sfldate.c |
| 110 | +sfldes$(OBJ): sfldes.c |
| 111 | +sfldescr$(OBJ): sfldescr.c |
| 112 | +sfldir$(OBJ): sfldir.c |
| 113 | +sflenv$(OBJ): sflenv.c |
| 114 | +sflexdr$(OBJ): sflexdr.c |
| 115 | +sflfile$(OBJ): sflfile.c |
| 116 | +sflfind$(OBJ): sflfind.c |
| 117 | +sflfort$(OBJ): sflfort.c |
| 118 | +sflheap$(OBJ): sflheap.c |
| 119 | +sflhttp$(OBJ): sflhttp.c |
| 120 | +sflini$(OBJ): sflini.c |
| 121 | +sfllang$(OBJ): sfllang.c |
| 122 | +sfllbuf$(OBJ): sfllbuf.c |
| 123 | +sfllist$(OBJ): sfllist.c |
| 124 | +sflmail$(OBJ): sflmail.c |
| 125 | +sflmath$(OBJ): sflmath.c |
| 126 | +sflmem$(OBJ): sflmem.c |
| 127 | +sflmesg$(OBJ): sflmesg.c |
| 128 | +sflmime$(OBJ): sflmime.c |
| 129 | +sflnode$(OBJ): sflnode.c |
| 130 | +sflprint$(OBJ): sflprint.c |
| 131 | +sflproc$(OBJ): sflproc.c |
| 132 | +sflscrit$(OBJ): sflscrit.c |
| 133 | +sflsearch$(OBJ): sflsearch.c |
| 134 | +sflsha$(OBJ): sflsha.c |
| 135 | +sflslot$(OBJ): sflslot.c |
| 136 | +sflsock$(OBJ): sflsock.c |
| 137 | +sflsort$(OBJ): sflsort.c |
| 138 | +sflstr$(OBJ): sflstr.c |
| 139 | +sflsymb$(OBJ): sflsymb.c |
| 140 | +sflsyst$(OBJ): sflsyst.c |
| 141 | +sfltok$(OBJ): sfltok.c |
| 142 | +sfltree$(OBJ): sfltree.c |
| 143 | +sfltron$(OBJ): sfltron.c |
| 144 | +sfluid$(OBJ): sfluid.c |
| 145 | +sflxml$(OBJ): sflxml.c |
| 146 | +sflxmll$(OBJ): sflxmll.c |
| 147 | +sflxmls$(OBJ): sflxmls.c |
| 148 | +smtecho$(OBJ): smtecho.c |
| 149 | +smtlib$(OBJ): smtlib.c |
| 150 | +smtlog$(OBJ): smtlog.c |
| 151 | +smtoper$(OBJ): smtoper.c |
| 152 | +smtpipe$(OBJ): smtpipe.c |
| 153 | +smtpop$(OBJ): smtpop.c |
| 154 | +smtrdns$(OBJ): smtrdns.c |
| 155 | +smtrdnsl$(OBJ): smtrdnsl.c |
| 156 | +smtserv$(OBJ): smtserv.c |
| 157 | +smtsimu$(OBJ): smtsimu.c |
| 158 | +smtslot$(OBJ): smtslot.c |
| 159 | +smtsmtp$(OBJ): smtsmtp.c |
| 160 | +smtsock$(OBJ): smtsock.c |
| 161 | +smttime$(OBJ): smttime.c |
| 162 | +smttran$(OBJ): smttran.c |
| 163 | +smttst1$(OBJ): smttst1.c |
| 164 | +smttst2$(OBJ): smttst2.c |
| 165 | +smttst3$(OBJ): smttst3.c |
| 166 | +smtxlog$(OBJ): smtxlog.c |
| 167 | +everything: libgsl$(LIB) gsl$(EXE) |
| 168 | + ./gsl -v |
| 169 | +install: |
| 170 | + cp gsl /usr/local/bin |
| 171 | +clean: |
| 172 | + rm *.o *.a gsl |
0 commit comments