IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2833


Ignore:
Timestamp:
Dec 27, 2004, 2:30:56 PM (22 years ago)
Author:
eugene
Message:

mods to makefiles to fix solaris compile

Location:
trunk/Ohana
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/Configure.in

    r2510 r2833  
    2323# prefered C compiler
    2424CC   = gcc -g -O
     25
     26# select the appropriate version of ranlib
     27RANLIB-sol = touch
     28RANLIB-linux = ranlib
     29RANLIB-lin64 = ranlib
     30RANLIB = $(RANLIB-$(ARCH))
  • trunk/Ohana/Makefile

    r2631 r2833  
    7272LIBS-lin64 = libfits libohana libdummy
    7373LIBS-sid   = libfits libohana libdummy
     74LIBS-sol   = libfits libohana
    7475
    7576# general build targets:
    7677libs:
     78        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     79        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    7780        mkdir -p $(LINC)
    7881        mkdir -p $(LLIB)
     
    9093
    9194clean:
     95        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     96        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    9297        for i in $(LIBS-$(ARCH)); do make $$i.clean || exit; done
    9398        for i in $(PROGRAM); do make $$i.clean || exit; done
     
    95100
    96101dist:
     102        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     103        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    97104        for i in $(LIBS-$(ARCH)); do make $$i.dist || exit; done
    98105        for i in $(PROGRAM); do make $$i.dist || exit; done
    99106
    100107install:
     108        @if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
     109        @if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
    101110        for i in $(LIBS-$(ARCH)); do make $$i.install || exit; done
    102111        for i in $(PROGRAM); do make $$i.install || exit; done
     
    107116# standard rules: targets are foo, foo.clean, foo.install, foo.dist
    108117$(PROGRAM) $(LIBS-$(ARCH)) $(EXTRAS):
    109         if [ -e "src/$@" ]; then (cd src/$@ && make); fi
     118        if [ -d "src/$@" ]; then (cd src/$@ && make); fi
    110119
    111120%.install:
    112121        mkdir -p bin/$(ARCH)
    113         if [ -e "src/$*" ]; then (cd src/$* && make install); fi
     122        if [ -d "src/$*" ]; then (cd src/$* && make install); fi
    114123
    115124%.clean:
    116         if [ -e "src/$*" ]; then (cd src/$* && make clean); fi
     125        if [ -d "src/$*" ]; then (cd src/$* && make clean); fi
    117126
    118127%.dist:
  • trunk/Ohana/configure

    r2775 r2833  
    1111# libpng.a
    1212# libjpeg.a
     13# libz.a
    1314# libreadline.a
    1415# libtermcap.a
     
    8485# check for basic libraries
    8586set fail = 0
    86 foreach f ( libpng.a libjpeg.a libreadline.a libtermcap.a $sockets )
     87foreach f ( libpng.a libz.a libjpeg.a libreadline.a libtermcap.a $sockets )
    8788    foreach g ( /usr/lib $lib )
    8889        set name = "$g/$f"
  • trunk/Ohana/src/gastro2/Makefile

    r2510 r2833  
    1414
    1515INCS    =       -I$(INC) -I$(LINC) -I$(XINC)
    16 LIBS    =       -L$(LLIB) -lFITS -lohana -lm
     16LIBS    =       -L$(LLIB) -lFITS -lsocket -lnsl -lohana -lm
    1717CFLAGS  =       -o $*.$(ARCH).o $(INCS)
    1818CCFLAGS =       $(INCS) $(LIBS)
  • trunk/Ohana/src/libdummy/Makefile

    r2510 r2833  
    1616        gcc -c -o dummy.o dummy.c
    1717        ar rcv libsocket.a dummy.o
    18         ranlib libsocket.a
     18        $(RANLIB) libsocket.a
    1919        cp libsocket.a $(DESTLIB)
    2020        ar rcv libnsl.a dummy.o
    21         ranlib libnsl.a
     21        $(RANLIB) libnsl.a
    2222        cp libnsl.a $(DESTLIB)
    2323
  • trunk/Ohana/src/libfits/Makefile

    r2578 r2833  
    6969        rm -f $(LIB)/libFITS.$(ARCH).a
    7070        ar rcv $(LIB)/libFITS.$(ARCH).a $(LIBOBJ)
    71         ranlib $(LIB)/libFITS.$(ARCH).a
     71        $(RANLIB) $(LIB)/libFITS.$(ARCH).a
    7272
    7373$(DESTLIB)/libFITS.a: $(LIB)/libFITS.$(ARCH).a
  • trunk/Ohana/src/libohana/Makefile

    r2797 r2833  
    3939        rm -f $(LIB)/libohana.$(ARCH).a
    4040        ar rcv $(LIB)/libohana.$(ARCH).a $(LOBJ)
    41         ranlib $(LIB)/libohana.$(ARCH).a
     41        $(RANLIB) $(LIB)/libohana.$(ARCH).a
    4242
    4343$(LOBJ): $(DESTINC)/ohana.h $(DESTINC)/loneos.h
  • trunk/Ohana/src/opihi/Makefile

    r2774 r2833  
    3333
    3434$(PROGRAM) $(LIBS) $(EXTRAS):
    35         if [ -e "$@" ]; then (cd $@ && make); fi
     35        if [ -d "$@" ]; then (cd $@ && make); fi
    3636
    3737%.install:
    38         if [ -e "$*" ]; then make $*; fi
    39         if [ -e "$*" ]; then (cd $* && make install); fi
     38        if [ -d "$*" ]; then make $*; fi
     39        if [ -d "$*" ]; then (cd $* && make install); fi
    4040
    4141%.clean:
    42         if [ -e "$*" ]; then (cd $* && make clean); fi
     42        if [ -d "$*" ]; then (cd $* && make clean); fi
    4343
    4444.PHONY: $(PROGRAM) $(LIBS)
  • trunk/Ohana/src/opihi/cmd.astro/Makefile

    r2598 r2833  
    7676        rm -f $@
    7777        ar rcv $@ $^
    78         ranlib $@
     78        $(RANLIB) $@
    7979        @echo "compiled library $*"
    8080        @echo ""
  • trunk/Ohana/src/opihi/cmd.basic/Makefile

    r2598 r2833  
    7676        rm -f $@
    7777        ar rcv $@ $^
    78         ranlib $@
     78        $(RANLIB) $@
    7979        @echo "compiled library $*"
    8080        @echo ""
  • trunk/Ohana/src/opihi/cmd.data/Makefile

    r2826 r2833  
    138138        rm -f $@
    139139        ar rcv $@ $^
    140         ranlib $@
     140        $(RANLIB) $@
    141141        @echo "compiled library $*"
    142142        @echo ""
  • trunk/Ohana/src/opihi/dimm/Makefile

    r2799 r2833  
    8585        rm -f $@
    8686        ar rcv $@ $^
    87         ranlib $@
     87        $(RANLIB) $@
    8888        @echo "compiled library $*"
    8989        @echo ""
  • trunk/Ohana/src/opihi/dvo/Makefile

    r2822 r2833  
    117117        rm -f $@
    118118        ar rcv $@ $^
    119         ranlib $@
     119        $(RANLIB) $@
    120120        @echo "compiled library $*"
    121121        @echo ""
  • trunk/Ohana/src/opihi/dvo2/Makefile

    r2799 r2833  
    6565        rm -f $@
    6666        ar rcv $@ $^
    67         ranlib $@
     67        $(RANLIB) $@
    6868        @echo "compiled library $*"
    6969        @echo ""
  • trunk/Ohana/src/opihi/lib.data/Makefile

    r2598 r2833  
    6060        rm -f $@
    6161        ar rcv $@ $^
    62         ranlib $@
     62        $(RANLIB) $@
    6363        @echo "compiled library $*"
    6464        @echo ""
  • trunk/Ohana/src/opihi/lib.shell/Makefile

    r2598 r2833  
    8585        rm -f $@
    8686        ar rcv $@ $^
    87         ranlib $@
     87        $(RANLIB) $@
    8888        @echo "compiled library $*"
    8989        @echo ""
  • trunk/Ohana/src/opihi/lib.shell/stack_math.c

    r2801 r2833  
    11141114  if (!strcmp (op, "sqrt"))  {    *out = sqrt (*M1);          }
    11151115
    1116   if (!strcmp (op, "sinh"))  {    *out = sinhf (*M1);         }
    1117   if (!strcmp (op, "cosh"))  {    *out = coshf (*M1);         }
    1118   if (!strcmp (op, "asinh")) {    *out = asinhf (*M1);        }
    1119   if (!strcmp (op, "acosh")) {    *out = acoshf (*M1);        }
     1116  if (!strcmp (op, "sinh"))  {    *out = sinh (*M1);         }
     1117  if (!strcmp (op, "cosh"))  {    *out = cosh (*M1);         }
     1118  if (!strcmp (op, "asinh")) {    *out = asinh (*M1);        }
     1119  if (!strcmp (op, "acosh")) {    *out = acosh (*M1);        }
    11201120
    11211121  if (!strcmp (op, "sin"))   {    *out = sin (*M1);           }
     
    11701170  if (!strcmp (op, "sqrt"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = sqrt(*M1);         }}
    11711171
    1172   if (!strcmp (op, "sinh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sinhf(*M1);       }}
    1173   if (!strcmp (op, "cosh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = coshf(*M1);       }}
    1174   if (!strcmp (op, "asinh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = asinhf(*M1);      }}
    1175   if (!strcmp (op, "acosh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = acoshf(*M1);      }}
     1172  if (!strcmp (op, "sinh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sinh(*M1);       }}
     1173  if (!strcmp (op, "cosh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = cosh(*M1);       }}
     1174  if (!strcmp (op, "asinh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = asinh(*M1);      }}
     1175  if (!strcmp (op, "acosh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = acosh(*M1);      }}
    11761176
    11771177  if (!strcmp (op, "sin"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sin(*M1);          }}
     
    12351235  if (!strcmp (op, "sqrt"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sqrt(*M1);         }}
    12361236
    1237   if (!strcmp (op, "sinh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sinhf(*M1);        }}
    1238   if (!strcmp (op, "cosh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = coshf(*M1);        }}
    1239   if (!strcmp (op, "asinh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = asinhf(*M1);       }}
    1240   if (!strcmp (op, "acosh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = acoshf(*M1);       }}
     1237  if (!strcmp (op, "sinh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sinh(*M1);        }}
     1238  if (!strcmp (op, "cosh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = cosh(*M1);        }}
     1239  if (!strcmp (op, "asinh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = asinh(*M1);       }}
     1240  if (!strcmp (op, "acosh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = acosh(*M1);       }}
    12411241
    12421242  if (!strcmp (op, "sin"))   { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sin(*M1);          }}
  • trunk/Ohana/src/opihi/mana/Makefile

    r2827 r2833  
    7777        rm -f $@
    7878        ar rcv $@ $^
    79         ranlib $@
     79        $(RANLIB) $@
    8080        @echo "compiled library $*"
    8181        @echo ""
  • trunk/Ohana/src/opihi/pantasks/Makefile

    r2799 r2833  
    7171        rm -f $@
    7272        ar rcv $@ $^
    73         ranlib $@
     73        $(RANLIB) $@
    7474        @echo "compiled library $*"
    7575        @echo ""
  • trunk/Ohana/src/relphot/Makefile

    r2510 r2833  
    1515#
    1616INCS    =       -I$(INC) -I$(LINC) -I$(XINC)
    17 LIBS    =       -L$(LLIB) -lohana -lFITS -lm
     17LIBS    =       -L$(LLIB) -lsocket -lnsl -lohana -lFITS -lm
    1818CFLAGS  =       -o $*.$(ARCH).o $(INCS)
    1919CCFLAGS =       $(INCS) $(LIBS)
  • trunk/Ohana/src/skycalc/Makefile

    r2510 r2833  
    3333        rm -f $(LIB)/libskycalc.$(ARCH).a
    3434        ar rcv $(LIB)/libskycalc.$(ARCH).a $(OBJ)
    35         ranlib $(LIB)/libskycalc.$(ARCH).a
     35        $(RANLIB) $(LIB)/libskycalc.$(ARCH).a
    3636
    3737$(DESTLIB)/libskycalc.a: $(LIB)/libskycalc.$(ARCH).a
Note: See TracChangeset for help on using the changeset viewer.