blob: 884c5ba2973e58d5a4889ca420227aa35fc73447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
--- Makefile.orig Wed Jun 22 07:29:06 1994
+++ Makefile Tue Mar 30 20:01:40 1999
@@ -49,10 +49,15 @@
# 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
@@ -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
+ install -c -s -o bin -g bin pcemu ${LOCALPREFIX}/bin/
+ install -c -m 666 bootstrap/display.bin \
+ ${LOCALPREFIX}/lib/pcemu/DriveA
+ install -c -m 644 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
+ install -c -m 644 programs/vga50.com programs/config.sys \
+ programs/dumpdisk.exe programs/lredir.exe programs/emufs.sys \
+ ${LOCALPREFIX}/lib/pcemu/C
|