Index: trunk/psLib/src/Makefile.Globals
===================================================================
--- trunk/psLib/src/Makefile.Globals	(revision 1525)
+++ trunk/psLib/src/Makefile.Globals	(revision 1533)
@@ -5,6 +5,6 @@
 ##  Assumptions:    Variable "prefix" already defined
 ##
-##  $Revision: 1.17 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-08-13 01:14:26 $
+##  $Revision: 1.18 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-08-13 23:47:10 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -40,4 +40,8 @@
 endif
 
+ifndef sladir
+	export sladir =  /usr/local/star
+endif	
+
 # Set initial value for CFLAGS which will include all OS common flags for GCC
 
@@ -50,5 +54,6 @@
 # Set initial value for LDFLAGS which will include all OS common flags for GCC and required libraries.
 
-EXTLIBS := -lcfitsio -lgsl -lgslcblas -lfftw3f -lsla
+SLA_LINK := $(shell $(sladir)/bin/sla_link)
+EXTLIBS := -lcfitsio -lgsl -lgslcblas -lfftw3f -L$(sladir)/lib $(SLA_LINK) 
 LDFLAGS := -g2 -pipe $(EXTLIBS) 
 
@@ -67,5 +72,5 @@
 
 ifneq "$(findstring arwin,$(OSTYPE))" ""
-    CFLAGS += -Wno-long-double -DDARWIN -DFORTRAN_UNDERSCORE_PREFIX
+    CFLAGS += -Wno-long-double -DDARWIN 
     CFLAGS_RELOC := $(CFLAGS)
     LDFLAGS := $(LDFLAGS) -lmx
@@ -76,5 +81,5 @@
     DOCS =
     BUILD_DYNAMIC1 = libtool -dynamic
-    BUILD_DYNAMIC2 = -lm -lmx -lgcc $(EXTLIBS) -o
+    BUILD_DYNAMIC2 = -L/usr/local/star/lib -lm -lmx -lgcc $(EXTLIBS) -lg2c -o
 endif
 
