View | Details | Raw Unified
Collapse All | Expand All

(-) Makefile.old (-14 / +16 lines)
 Lines 2-12    Link Here 
# SRCDIR should be a path to the directory that will hold fractint.hlp
# SRCDIR should be a path to the directory that will hold fractint.hlp
# SRCDIR should also hold the .par, .frm, etc. files
# SRCDIR should also hold the .par, .frm, etc. files
SRCDIR = /usr/share/xfractint
SRCDIR = $(DESTDIR)/usr/share/xfractint
# BINDIR is where you put your X11 binaries
# BINDIR is where you put your X11 binaries
BINDIR = /usr/X11R6/bin
BINDIR = $(DESTDIR)/usr/X11R6/bin
# MANDIR is where you put your chapter 1 man pages
# MANDIR is where you put your chapter 1 man pages
MANDIR = /usr/X11R6/man/man1
MANDIR = $(DESTDIR)/usr/X11R6/man/man1
HFD = ./headers
HFD = ./headers
UDIR = ./unix
UDIR = ./unix
 Lines 85-98    Link Here 
ifeq ($(AS),/usr/bin/nasm)
ifeq ($(AS),/usr/bin/nasm)
#CFLAGS = -I. -D_CONST $(DEFINES)
#CFLAGS = -I. -D_CONST $(DEFINES)
CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os \
CFLAGS := -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX\
         -mcpu=pentium -DNASM -fno-builtin
	-DNASM -fno-builtin
#CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -DNASM -fno-builtin
#CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -DNASM -fno-builtin
else
else
CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os \
CFLAGS := -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX \
         -mcpu=pentium -fno-builtin
         -fno-builtin
#CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -fno-builtin
#CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -fno-builtin
endif
endif
 Lines 257-274    Link Here 
install: xfractint fractint.hlp
install: xfractint fractint.hlp
	strip xfractint
	strip xfractint
# only next 4 lines might need su
# only next 4 lines might need su
	if [ ! -d $(BINDIR) ]; then mkdir -p $(BINDIR) ; fi
	cp xfractint $(BINDIR)/xfractint;
	cp xfractint $(BINDIR)/xfractint;
	chmod a+x $(BINDIR)/xfractint;
	chmod a+x $(BINDIR)/xfractint;
	if [ ! -d $(DESTDIR)$(MANDIR) ]; then mkdir -p $(MANDIR) ; fi
	cp $(UDIR)/xfractint.man $(MANDIR)/xfractint.1;
	cp $(UDIR)/xfractint.man $(MANDIR)/xfractint.1;
	chmod a+r $(MANDIR)/xfractint.1
	chmod a+r $(MANDIR)/xfractint.1
# create directories if they don't exist
# create directories if they don't exist
	if [ ! -d $(SRCDIR) ] ; then mkdir $(SRCDIR) ; fi
	if [ ! -d $(SRCDIR) ] ; then mkdir -p $(SRCDIR) ; fi
	if [ ! -d $(SRCDIR)/$(PDIR) ] ; then mkdir $(SRCDIR)/$(PDIR) ; fi
	if [ ! -d $(SRCDIR)/$(PDIR) ] ; then mkdir -p $(SRCDIR)/$(PDIR) ; fi
	if [ ! -d $(SRCDIR)/$(FDIR) ] ; then mkdir $(SRCDIR)/$(FDIR) ; fi
	if [ ! -d $(SRCDIR)/$(FDIR) ] ; then mkdir -p $(SRCDIR)/$(FDIR) ; fi
	if [ ! -d $(SRCDIR)/$(IDIR) ] ; then mkdir $(SRCDIR)/$(IDIR) ; fi
	if [ ! -d $(SRCDIR)/$(IDIR) ] ; then mkdir -p $(SRCDIR)/$(IDIR) ; fi
	if [ ! -d $(SRCDIR)/$(LDIR) ] ; then mkdir $(SRCDIR)/$(LDIR) ; fi
	if [ ! -d $(SRCDIR)/$(LDIR) ] ; then mkdir -p $(SRCDIR)/$(LDIR) ; fi
	if [ ! -d $(SRCDIR)/$(MDIR) ] ; then mkdir $(SRCDIR)/$(MDIR) ; fi
	if [ ! -d $(SRCDIR)/$(MDIR) ] ; then mkdir -p $(SRCDIR)/$(MDIR) ; fi
	if [ ! -d $(SRCDIR)/$(XDIR) ] ; then mkdir $(SRCDIR)/$(XDIR) ; fi
	if [ ! -d $(SRCDIR)/$(XDIR) ] ; then mkdir -p $(SRCDIR)/$(XDIR) ; fi
# copy all the files to the appropriate directories
# copy all the files to the appropriate directories
	cp fractint.hlp sstools.ini $(DOCS) $(SRCDIR)
	cp fractint.hlp sstools.ini $(DOCS) $(SRCDIR)
	cd ./$(PDIR); cp $(PARFILES) $(SRCDIR)/$(PDIR)
	cd ./$(PDIR); cp $(PARFILES) $(SRCDIR)/$(PDIR)