"Fossies" - the Fresh Open Source Software Archive

Member "pcemu/Makefile" (22 Jan 2001, 4471 Bytes) of package /linux/privat/old/pcemu-1.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #############################################################################
    2 #                                                                           #
    3 #                            Third Year Project                             #
    4 #                                                                           #
    5 #                            An IBM PC Emulator                             #
    6 #                          For Unix and X Windows                           #
    7 #                                                                           #
    8 #                             By David Hedley                               #
    9 #                                                                           #
   10 #                                                                           #
   11 # This program is Copyrighted.  Consult the file COPYRIGHT for more details #
   12 #                                                                           #
   13 #############################################################################
   14 
   15 # Valid options are as follow:
   16 # -DINLINE_FUNCTIONS if your compiler support inline functions (most do)
   17 # -DDEBUG            prints lots of debugging messages.
   18 # -DDEBUGGER         compiles in the debugger
   19 # -DKBUK             if you have a UK style 102 key keyboard
   20 # -DBIG_ENDIAN       if your computer is big-endian (Sparc, 68000 etc)
   21 # -DLITTLE_ENDIAN    if your computer is little-endian (80x86 etc)
   22 # -DALIGNED_ACCESS   if your computer requires words to be on even boundaries
   23 # -DBIGCASE          If your compiler/computer can handle 256 case switches
   24 #
   25 # -D_HPUX_SOURCE     If you are compiling on an HP
   26 # -DSOLARIS          If you are using Solaris (only 2.3 has been tested)
   27 # -DSGI              If you are using an SGI
   28 # -DRS6000           If you are using an RS6000
   29 #
   30 # Note that when compiling on the RS6000 and SGI using the standard cc compiler
   31 # specifying -O2 to optimise the code results in the emulator crashing. I
   32 # believe this is due to compiler bugs (as the programs run OK without
   33 # optimisation). If anyone can shed light on what the problem is I would be
   34 # eternally grateful.
   35 #
   36 # Not specifying the following will mean the defaults are used. They can be
   37 # overridden in the .pcemurc file
   38 #
   39 # -DBOOT360          Boot from a 360k disk image  file
   40 # -DBOOT720          Boot from a 720k disk image file
   41 # -DBOOT1_44         Boot from a 1.44Mb disk image file
   42 # -DBOOT1_2          Boot from a 1.2Mb disk image file
   43 #
   44 # -DBOOTFILE="xyz"   Boot from disk image "xyz" (default "DriveA")
   45 # -DCURSORSPEED=n    Set cursor flash speed to n frames per flash (default 30)
   46 # -DUPDATESPEED=n    Set screen update speed to n frames per update (default 5)
   47 # 
   48 # Including -fomit-frame-pointer should increase speed a little, but it has
   49 # been known to crash the emulator when running on certain machines (80x86
   50 # based PCs under Linux, and HPs running HPUX). 
   51 
   52 CC =		gcc -Wall
   53 OPTIONS =	-DALIGNED_ACCESS -DBIGCASE -DINLINE_FUNCTIONS -DDISABLE_MFS
   54 XROOT = 	/usr/X11R6
   55 #CFLAGS = 	-g
   56 CFLAGS = 	-O2 -fomit-frame-pointer -fno-strength-reduce
   57 
   58 # You may need to add -N to the LFLAGS if you get sporadic segmentation
   59 # faults. So far I have only needed to do this when compiling under Linux
   60 # as Xlib seems to be mysteriously writing to its text segment
   61 
   62 LFLAGS = 	-g
   63 
   64 LIBRARIES =	-L$(XROOT)/lib		\
   65 		-lXext			\
   66 		-lX11
   67 
   68 LIBRARIES := 	$(LIBRARIES) -lefence -lncurses
   69 
   70 OFILES =	main.o		\
   71 		cpu.o		\
   72 		bios.o		\
   73 		vga.o		\
   74 		vgahard.o	\
   75 		debugger.o	\
   76 		hardware.o	\
   77 		mfs.o		\
   78 		ems.o		\
   79 		video.o		\
   80 		curses.o	\
   81 		xstuff.o	\
   82 		config.o
   83 
   84 PROGNAME  =	pcemu
   85 
   86 GLOBAL_DEP =	global.h	\
   87 		mytypes.h
   88 
   89 all: $(PROGNAME)
   90 
   91 cpu.o:	$(GLOBAL_DEP) cpu.h instr.h debugger.h hardware.h
   92 ems.o:	$(GLOBAL_DEP) cpu.h bios.h
   93 main.o: $(GLOBAL_DEP) bios.h hardware.h video.h
   94 bios.o: $(GLOBAL_DEP) bios.h cpu.h vga.h vgahard.h debugger.h hardware.h \
   95         keytabs.h mfs_link.h
   96 vga.o:	$(GLOBAL_DEP) bios.h cpu.h vga.h vgahard.h hardware.h
   97 vgahard.o: $(GLOBAL_DEP) vgahard.h video.h hardware.h
   98 debugger.o: $(GLOBAL_DEP) cpu.h debugger.h disasm.h vgahard.h
   99 xstuff.o: $(GLOBAL_DEP) vgahard.h video.h icon.h hardware.h
  100 hardware.o: $(GLOBAL_DEP) cpu.h vgahard.h debugger.h hardware.h
  101 mfs.o: $(GLOBAL_DEP) cpu.h mfs.h mfs_link.h
  102 mytypes.h: autodetect.h
  103 
  104 autodetect.h: autodetect
  105 	./autodetect > autodetect.h
  106 
  107 .c.o:
  108 	$(CC) $(CFLAGS) $(OPTIONS) -c $<
  109 
  110 $(PROGNAME): $(OFILES)
  111 	$(CC) $(CFLAGS) -o $(PROGNAME) $(OFILES) $(LFLAGS) $(LIBRARIES)
  112 
  113 clean:
  114 	rm -f $(PROGNAME) autodetect *.o *~
  115