IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 13, 2004, 1:47:10 PM (22 years ago)
Author:
desonia
Message:

changes to make it work on MAC OSX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/Makefile.Globals

    r1525 r1533  
    55##  Assumptions:    Variable "prefix" already defined
    66##
    7 ##  $Revision: 1.17 $  $Name: not supported by cvs2svn $
    8 ##  $Date: 2004-08-13 01:14:26 $
     7##  $Revision: 1.18 $  $Name: not supported by cvs2svn $
     8##  $Date: 2004-08-13 23:47:10 $
    99##
    1010##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4040endif
    4141
     42ifndef sladir
     43        export sladir =  /usr/local/star
     44endif   
     45
    4246# Set initial value for CFLAGS which will include all OS common flags for GCC
    4347
     
    5054# Set initial value for LDFLAGS which will include all OS common flags for GCC and required libraries.
    5155
    52 EXTLIBS := -lcfitsio -lgsl -lgslcblas -lfftw3f -lsla
     56SLA_LINK := $(shell $(sladir)/bin/sla_link)
     57EXTLIBS := -lcfitsio -lgsl -lgslcblas -lfftw3f -L$(sladir)/lib $(SLA_LINK)
    5358LDFLAGS := -g2 -pipe $(EXTLIBS)
    5459
     
    6772
    6873ifneq "$(findstring arwin,$(OSTYPE))" ""
    69     CFLAGS += -Wno-long-double -DDARWIN -DFORTRAN_UNDERSCORE_PREFIX
     74    CFLAGS += -Wno-long-double -DDARWIN
    7075    CFLAGS_RELOC := $(CFLAGS)
    7176    LDFLAGS := $(LDFLAGS) -lmx
     
    7681    DOCS =
    7782    BUILD_DYNAMIC1 = libtool -dynamic
    78     BUILD_DYNAMIC2 = -lm -lmx -lgcc $(EXTLIBS) -o
     83    BUILD_DYNAMIC2 = -L/usr/local/star/lib -lm -lmx -lgcc $(EXTLIBS) -lg2c -o
    7984endif
    8085
Note: See TracChangeset for help on using the changeset viewer.