1999-10-10 23:42:47 +00:00
|
|
|
--- Makefile.orig Sat Sep 11 20:32:16 1999
|
|
|
|
+++ Makefile Fri Oct 8 18:18:25 1999
|
|
|
|
@@ -2,11 +2,11 @@
|
1997-10-07 11:48:49 +00:00
|
|
|
# SRCDIR should be a path to the directory that will hold fractint.hlp
|
|
|
|
# You will have to copy fractint.hlp to SRCDIR and make it world readable.
|
|
|
|
# SRCDIR should also hold the .par, .frm, etc. files
|
1999-10-10 23:42:47 +00:00
|
|
|
-SRCDIR = /usr/src/xfractint
|
|
|
|
+SRCDIR = ${PREFIX}/lib/fractint
|
1997-10-07 11:48:49 +00:00
|
|
|
# BINDIR is where you put your X11 binaries
|
1999-10-10 23:42:47 +00:00
|
|
|
-BINDIR = /usr/X11R6/bin
|
1997-10-07 11:48:49 +00:00
|
|
|
+BINDIR = ${PREFIX}/bin
|
|
|
|
# MANDIR is where you put your chapter 1 man pages
|
1999-10-10 23:42:47 +00:00
|
|
|
-MANDIR = /usr/X11R6/man/man1
|
1997-10-07 11:48:49 +00:00
|
|
|
+MANDIR = ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
NOBSTRING =
|
|
|
|
HAVESTRI =
|
1999-10-10 23:42:47 +00:00
|
|
|
@@ -51,7 +51,7 @@
|
1997-10-07 11:48:49 +00:00
|
|
|
#For Solaris, use CFLAGS = -I. -I/usr/openwin/include $(DEFINES) -g
|
|
|
|
|
|
|
|
#CFLAGS = -I. -D_CONST $(DEFINES)
|
1999-10-10 23:42:47 +00:00
|
|
|
-CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX
|
1997-10-07 11:48:49 +00:00
|
|
|
+CFLAGS += -I. $(DEFINES) -DBIG_ANSI_C -I${X11BASE}/include
|
|
|
|
|
|
|
|
# Gcc is often the only compiler that works for this
|
|
|
|
# For HPUX, use CC = cc -Aa -D_HPUX_SOURCE
|
1999-10-10 23:42:47 +00:00
|
|
|
@@ -68,8 +68,8 @@
|
1997-10-07 11:48:49 +00:00
|
|
|
# For Apollo, change -lX11 to -L/usr/X11/libX11
|
|
|
|
# For Solaris, add -L/usr/openwin/lib
|
|
|
|
# For Linux, use
|
|
|
|
-LIBS = -L/usr/X11R6/lib -lX11 -lm -lncurses -ltermcap
|
|
|
|
-#LIBS = -L/usr/X11R6/lib -lX11 -lm -lcurses -ltermcap
|
|
|
|
+#LIBS = -L/usr/X11R6/lib -lX11 -lm -lncurses -ltermcap
|
|
|
|
+LIBS = -L/usr/X11R6/lib -lX11 -lm -lcurses -ltermcap
|
|
|
|
#LIBS = -lX11 -lm -lcurses -ltermcap
|
|
|
|
|
|
|
|
# HPUX fixes thanks to David Allport, Bill Broadley, and R. Lloyd.
|
1999-10-10 23:42:47 +00:00
|
|
|
@@ -166,6 +166,8 @@
|
1997-10-07 11:48:49 +00:00
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .o .c .s .h
|
|
|
|
|
|
|
|
+all: xfractint
|
|
|
|
+
|
|
|
|
xfractint: fractint.hlp .WAIT $(OBJS)
|
|
|
|
$(CC) -o xfractint $(CFLAGS) $(OBJS) $(LIBS)
|
|
|
|
# strip xfractint
|
1999-10-10 23:42:47 +00:00
|
|
|
@@ -183,6 +185,12 @@
|
1997-10-07 11:48:49 +00:00
|
|
|
cp xfractint $(BINDIR)/xfractint
|
|
|
|
strip $(BINDIR)/xfractint
|
|
|
|
chmod a+x $(BINDIR)/xfractint
|
|
|
|
+ if [ ! -d $(SRCDIR) ]; then \
|
|
|
|
+ echo "Making $(SRCDIR)"; \
|
|
|
|
+ mkdir $(SRCDIR); \
|
|
|
|
+ chmod 755 $(SRCDIR); \
|
|
|
|
+ else true; \
|
|
|
|
+ fi;
|
|
|
|
cp fractint.hlp $(PARFILES) $(FRMFILES) $(IFSFILES) $(LFILES) $(MAPFILES) $(SRCDIR)
|
|
|
|
(cd $(SRCDIR); chmod a+r fractint.hlp $(PARFILES) $(FRMFILES) $(IFSFILES) $(LFILES) $(MAPFILES) )
|
|
|
|
cp xfractint.man $(MANDIR)/xfractint.1
|