87b0fc87fc
install macros to avoid such programs in the future. Bump revision.
59 lines
2.2 KiB
Text
59 lines
2.2 KiB
Text
$NetBSD: patch-aa,v 1.5 2007/09/02 12:10:03 joerg Exp $
|
|
|
|
--- Makefile.orig Wed Jun 22 10:29:06 1994
|
|
+++ Makefile
|
|
@@ -49,16 +49,21 @@
|
|
# been known to crash the emulator when running on certain machines (80x86
|
|
# based PCs under Linux, and HPs running HPUX).
|
|
|
|
+.include "Makefile.inc"
|
|
+
|
|
CC = gcc
|
|
-OPTIONS = -DBOOT720 -DBIG_ENDIAN -DALIGNED_ACCESS -DBIGCASE -DINLINE_FUNCTIONS
|
|
-XROOT = /usr/local/X11R5
|
|
-CFLAGS = -I$(XROOT)/include -O2 #-fomit-frame-pointer
|
|
+#OPTIONS = -DBOOT720 -DBIG_ENDIAN -DALIGNED_ACCESS -DBIGCASE -DINLINE_FUNCTIONS
|
|
+OPTIONS = -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS \
|
|
+ -DBOOTFILE=\"${PREFIX}/lib/pcemu/DriveA\"
|
|
+#XROOT = /usr/local/X11R5
|
|
+XROOT = ${X11BASE}
|
|
+CFLAGS = -I$(XROOT)/include -O2 -pipe #-fomit-frame-pointer
|
|
|
|
# You may need to add -N to the LFLAGS if you get sporadic segmentation
|
|
# faults. So far I have only needed to do this when compiling under Linux
|
|
# as Xlib seems to be mysteriously writing to its text segment
|
|
|
|
-LFLAGS = -L$(XROOT)/lib
|
|
+LFLAGS = -Wl,-R${XROOT}/lib -L$(XROOT)/lib
|
|
LIBRARIES = -lXext -lX11
|
|
OFILES = main.o cpu.o bios.o vga.o vgahard.o debugger.o xstuff.o \
|
|
hardware.o mfs.o
|
|
@@ -86,3 +91,28 @@
|
|
|
|
clean:
|
|
rm $(PROGNAME) *.o
|
|
+
|
|
+bootstrapper:
|
|
+ (cd bootstrap; make unpack)
|
|
+
|
|
+#mode 0666 is required for DriveA, alas
|
|
+install: pcemu bootstrapper
|
|
+ -mkdir -p ${LOCALPREFIX}/lib/pcemu \
|
|
+ ${LOCALPREFIX}/lib/pcemu/doc \
|
|
+ ${LOCALPREFIX}/lib/pcemu/font \
|
|
+ ${LOCALPREFIX}/lib/pcemu/C \
|
|
+ ${LOCALPREFIX}/bin
|
|
+ ${BSD_INSTALL_PROGRAM} pcemu ${LOCALPREFIX}/bin/
|
|
+ ${BSD_INSTALL_DATA} bootstrap/display.bin \
|
|
+ ${LOCALPREFIX}/lib/pcemu/DriveA
|
|
+ ${BSD_INSTALL_DATA} BUGS CHANGES README TODO bootstrap/README.BSD \
|
|
+ programs/lredir.readme \
|
|
+ ${LOCALPREFIX}/lib/pcemu/doc/
|
|
+ rm -f ${LOCALPREFIX}/lib/pcemu/doc/report.ps.gz
|
|
+ gzip --best < report.ps > ${LOCALPREFIX}/lib/pcemu/doc/report.ps.gz
|
|
+ rm -f ${LOCALPREFIX}/lib/pcemu/font/vga.pcf.Z
|
|
+ bdftopcf vga.bdf | compress > ${LOCALPREFIX}/lib/pcemu/font/vga.pcf.Z
|
|
+ mkfontdir ${LOCALPREFIX}/lib/pcemu/font
|
|
+ ${BSD_INSTALL_DATA} programs/vga50.com programs/config.sys \
|
|
+ programs/dumpdisk.exe programs/lredir.exe programs/emufs.sys \
|
|
+ ${LOCALPREFIX}/lib/pcemu/C
|