mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 09:00:33 -04:00
114 lines
3.1 KiB
Text
114 lines
3.1 KiB
Text
--- Robot/Makefile.orig Tue May 3 17:14:51 2005
|
|
+++ Robot/Makefile Wed Dec 28 16:58:22 2005
|
|
@@ -15,7 +15,7 @@
|
|
|
|
|
|
# define system utilities - i.e. mail and print
|
|
-MAILER = /bin/mail
|
|
+MAILER = /usr/bin/mail
|
|
# Either lpr, lp, or enscript/genscript may be used to print
|
|
#LPR = /usr/ucb/lpr
|
|
#LPR = /bin/lp
|
|
@@ -23,18 +23,18 @@
|
|
|
|
# installation directory - this is used both if a "make install" is
|
|
# done and also used to add path to robot at top of log files
|
|
-INSTDIR = $(HOME)/bin/
|
|
+INSTDIR = $(PREFIX)/bin/
|
|
#INSTDIR = /usr/local/bin
|
|
|
|
|
|
# define compilers
|
|
#CC = cc
|
|
-CC = gcc
|
|
+CC ?= gcc
|
|
#FC = g77
|
|
-FC = f77
|
|
+FC ?= f77
|
|
# define compile options here if required,
|
|
# e.g. debug
|
|
- CFLAGS = -g -Wall
|
|
+# CFLAGS = -g -Wall
|
|
# or optimize (if you have enough swap space)
|
|
# CFLAGS = -O
|
|
# Turn warnings on
|
|
@@ -47,7 +47,6 @@
|
|
# Check array boundaries
|
|
# FFLAGS = -C
|
|
|
|
-
|
|
# specify here the directory where the openwindow include
|
|
# files are kept
|
|
# INCLUDE = /usr/local/openwin/include
|
|
@@ -65,15 +64,15 @@
|
|
#F77LIB = -lF77
|
|
|
|
#X library - may need to edit if location different
|
|
-XLIB = -L/usr/X11R6/lib -lX11
|
|
+XLIB = -L${X11BASE}/lib -lX11
|
|
|
|
# location of the FITS library
|
|
FITSDIR = ../Fitsio/
|
|
FITSLIB = $(FITSDIR)libfits.a
|
|
|
|
# if USA is defined we make some attempt to use USA spellings
|
|
-LANGUAGE = -DUSA
|
|
-#LANGUAGE = -DUK
|
|
+#LANGUAGE = -DUSA
|
|
+LANGUAGE = -DUK #UK is more international
|
|
|
|
|
|
# This specifies the location of the graphics routines in
|
|
@@ -81,7 +80,7 @@
|
|
ARKDIR = ../ARK/
|
|
ARKLIB = $(ARKDIR)libark.a
|
|
# place to put the robot.info file
|
|
-HELPDIR = /home/heasfs/corbet/help
|
|
+HELPDIR = ${PREFIX}/lib/X11/help
|
|
|
|
OBJS = robot.o subroutines.o subroutines2.o subroutines3.o \
|
|
user.o main.o rfitsf.o rfitsc.o fits3d.o york.o classify.o \
|
|
@@ -111,11 +110,11 @@
|
|
"OLLIBS=$(OPENWINHOME)/lib/libxview.so $(OPENWINHOME)/lib/libolgx.so"
|
|
|
|
FITSLIB:
|
|
- (cd $(FITSDIR); make libfits.a)
|
|
+ (cd $(FITSDIR); ${MAKE} libfits.a)
|
|
ARKLIB:
|
|
- (cd $(ARKDIR); make libark.a "OS=$(OS)" "LPR=$(LPR)")
|
|
+ (cd $(ARKDIR); ${MAKE} libark.a "OS=$(OS)" "LPR=$(LPR)")
|
|
robot.o: robot.f robcom msizcom fitcom
|
|
- $(FC) -c -Nx300 $(CFLAGS) $(FFLAGS) robot.f
|
|
+ $(FC) -c $(CFLAGS) $(FFLAGS) robot.f
|
|
subroutines.o: subroutines.f robcom fitcom
|
|
$(FC) -c $(CFLAGS) $(FFLAGS) subroutines.f
|
|
subroutines2.o: subroutines2.f robcom msizcom fitcom
|
|
@@ -123,7 +122,7 @@
|
|
subroutines3.o: subroutines3.f robcom msizcom
|
|
$(FC) -c $(CFLAGS) $(FFLAGS) subroutines3.f
|
|
nr.o: nr.f robcom
|
|
- $(FC) -c $(CFLAGS) nr.f
|
|
+ $(FC) -c $(FFLAGS) nr.f
|
|
main.o: main.c robot.h patchlevel.h
|
|
$(CC) -c $(CFLAGS) main.c -I$(INCLUDE) $(LANGUAGE) $(OS) -DARRAYSIZE=$(ARRAYSIZE) -DINSTDIR=\"$(INSTDIR)\" -DWEB_HELP=\"$(WEB_HELP)\"
|
|
colors.o: colors.c
|
|
@@ -157,15 +156,15 @@
|
|
math.o: math.c
|
|
$(CC) -c $(CFLAGS) math.c
|
|
user.o: user.f
|
|
- $(FC) -c $(CFLAGS) user.f
|
|
+ $(FC) -c $(FFLAGS) user.f
|
|
york.o: york.f robcom
|
|
- $(FC) -c $(CFLAGS) york.f
|
|
+ $(FC) -c $(FFLAGS) york.f
|
|
rfitsf.o: rfitsf.f robcom
|
|
- $(FC) -c $(CFLAGS) rfitsf.f
|
|
+ $(FC) -c $(FFLAGS) rfitsf.f
|
|
rfitsc.o: rfitsc.c
|
|
$(CC) -c $(CFLAGS) rfitsc.c
|
|
fits3d.o: fits3d.f robcom
|
|
- $(FC) -c $(CFLAGS) fits3d.f
|
|
+ $(FC) -c $(FFLAGS) fits3d.f
|
|
classify.o: classify.c
|
|
$(CC) -c $(CFLAGS) classify.c
|
|
backup:
|