# # =========================== # Uncomment for BASIC Version # =========================== # #CC = gcc #CPPFLAGS = -DBASIC #CFLAGS = -c -O6 #LD = gcc #LDFLAGS = #LDLIBS = #OBJ = atari_basic.o # # ============================= # Uncomment for SVGALIB Version # ============================= # #CC = gcc #CPPFLAGS = -DSVGALIB #CFLAGS = -c -O6 #LD = gcc #LDFLAGS = #LDLIBS = -lvgagl -lvga #OBJ = atari_svgalib.o # # ========================= # Uncomment for X11 Version # ========================= # CC = gcc CPPFLAGS = CFLAGS = -c -O6 LD = gcc LDFLAGS = LDLIBS = -lX11 OBJ = atari_x11.o # *** If you are using Open Windows you may *** # *** have to Uncomment the following lines *** #CPPFLAGS = -I/usr/openwin/include #LDFLAGS = -L/usr/openwin/lib # # ======================================== # Uncomment for X11 version for HP9000/7xx # using ANSI C Compiler with HP-UX 9.0x # ======================================== # #CC = cc #CPPFLAGS = -D_POSIX_SOURCE #CFLAGS = -c -O -Aa -I/usr/include/X11R5 #LD = cc #LDFLAGS = #LDLIBS = -L/usr/lib/X11R5 -lX11 # # ================================================ # Uncomment for CURSES version (Solaris + others?) # For SOLARIS2 you must add -DSOLARIS2 to CPPFLAGS # ================================================ # #CC = gcc #CPPFLAGS = -DCURSES #CFLAGS = -c -O6 #LD = gcc #LDFLAGS = #LDLIBS = -lcurses #OBJ = atari_curses.o # # ==================================================== # Uncomment for CURSES version (SunOS 4.1.x + others?) # ==================================================== # #CC = gcc #CPPFLAGS = -I/usr/5include -DCURSES #CFLAGS = -c -O6 #LD = gcc #LDFLAGS = -L/usr/5lib #LDLIBS = -lcurses #OBJ = atari_curses.o # # =============================================== # Uncomment for NCURSES version (Linux + others?) # =============================================== # #CC = gcc #CPPFLAGS = -I/usr/include/ncurses -DCURSES -DNCURSES #CFLAGS = -c -O6 #LD = gcc #LDFLAGS = #LDLIBS = -lncurses #OBJ = atari_curses.o # # =========================================== # Uncomment for Commodore Amiga BASIC Version # =========================================== # #CC = dcc #CPPFLAGS = -DAMIGA -DBASIC #CFLAGS = -c -mD #LD = dcc #LDFLAGS = #LDLIBS = #OBJ = # # ============================================== # Uncomment for the Amiga DICE Graphical Version # ============================================== # #CC = dcc #CPPFLAGS = -DAMIGA -DDICE_C #CFLAGS = -c -mD #LD = dcc #LDFLAGS = #LDLIBS = #OBJ = atari_amiga.o # # ============================================= # Uncomment for the Amiga GCC Graphical Version # ============================================= # #CC = gcc #CPPFLAGS = -DAMIGA -DGNU_C -IApplications:Dice/Include/Amiga30/ #CFLAGS = -c -O6 -m68030 #LD = gcc #LDFLAGS = #LDLIBS = -lamiga #OBJ = atari_amiga.o # # ====================================================== # You should not need to modify anything below this here # ====================================================== # DOCS = BUGS CHANGES COPYING CREDITS INSTALL OVERVIEW README USAGE vmsbuild.com INCLUDES = Makefile system.h cpu.h atari.h atari_custom.h atari_h_device.h colours.h atari800 : main.o atari.o cpu.o monitor.o atari_sio.o atari_h_device.o atari_custom.o $(OBJ) $(DOCS) $(LD) $(LDFLAGS) main.o atari.o cpu.o monitor.o atari_sio.o atari_h_device.o atari_custom.o $(OBJ) $(LDLIBS) -o atari800 main.o : main.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) main.c atari.o : atari.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari.c cpu.o : cpu.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) cpu.c monitor.o : monitor.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) monitor.c atari_sio.o : atari_sio.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari_sio.c atari_h_device.o: atari_h_device.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari_h_device.c atari_custom.o : atari_custom.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari_custom.c atari_x11.o : atari_x11.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari_x11.c atari_svgalib.o : atari_svgalib.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari_svgalib.c atari_curses.o : atari_curses.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari_curses.c atari_amiga.o : atari_amiga.c $(INCLUDES) $(CC) $(CPPFLAGS) $(CFLAGS) atari_amiga.c clean : rm *.o install : cp atari800 /usr/local/bin/atari800 cp atari800.man /usr/local/man/man1/atari800.1 install-svgalib : cp atari800 /usr/local/bin/atari800 cp atari800.man /usr/local/man/man1/atari800.1 chown root.root /usr/local/bin/atari800 chmod 4755 /usr/local/bin/atari800