2000-01-22 13:15:51 +00:00
|
|
|
*** Makefile.orig Tue Jan 9 13:00:03 1996
|
|
|
|
--- Makefile Mon Jan 10 04:44:20 2000
|
1997-07-07 11:22:08 +00:00
|
|
|
***************
|
|
|
|
*** 1,12 ****
|
|
|
|
#
|
|
|
|
! #Makefile for ProDOS Emulator v0.1
|
|
|
|
! #
|
|
|
|
|
|
|
|
all : prodos
|
|
|
|
|
|
|
|
# Linux doesn't seem to like Randy Frank's beep code,
|
|
|
|
# if you're compiling on something else, you could try not defining NOBEEP
|
|
|
|
! OPT = -O2 -DNOBEEP
|
|
|
|
|
|
|
|
# Necessary libraries
|
|
|
|
LIB = -lcurses -ltermcap
|
2000-01-22 13:15:51 +00:00
|
|
|
--- 1,23 ----
|
1997-07-07 11:22:08 +00:00
|
|
|
#
|
|
|
|
! # Makefile for ProDOS Emulator v0.1
|
|
|
|
! # FreeBSD modifications by Joel Sutton 18th Feb, 1997
|
|
|
|
!
|
|
|
|
! # Paths to various places
|
|
|
|
! PREFIX?= /usr/local
|
2000-01-22 13:15:51 +00:00
|
|
|
! BINDIR= ${PREFIX}/bin
|
|
|
|
! LIBDIR= ${PREFIX}/libdata
|
1997-07-07 11:22:08 +00:00
|
|
|
! ROMDIR= ${LIBDIR}/apple2
|
|
|
|
! ROM= prodos-2e.rom
|
|
|
|
!
|
|
|
|
! # Certain programs
|
2000-01-22 13:15:51 +00:00
|
|
|
! CC?= cc
|
|
|
|
! MKDIR?= mkdir -p
|
1997-07-07 11:22:08 +00:00
|
|
|
|
|
|
|
all : prodos
|
|
|
|
|
|
|
|
# Linux doesn't seem to like Randy Frank's beep code,
|
|
|
|
# if you're compiling on something else, you could try not defining NOBEEP
|
2000-01-22 13:15:51 +00:00
|
|
|
! OPT = ${CFLAGS} -DNOBEEP -DROMFILE=\"${ROMDIR}/${ROM}\"
|
1997-07-07 11:22:08 +00:00
|
|
|
|
|
|
|
# Necessary libraries
|
|
|
|
LIB = -lcurses -ltermcap
|
|
|
|
***************
|
2000-01-22 13:15:51 +00:00
|
|
|
*** 16,35 ****
|
|
|
|
|
|
|
|
# Build modules from source:
|
|
|
|
main.o: main.c apple.h
|
|
|
|
! cc -c $(OPT) main.c
|
|
|
|
6502.o: 6502.c apple.h
|
|
|
|
! cc -c $(OPT) 6502.c
|
|
|
|
mega2.o: mega2.c apple.h
|
|
|
|
! cc -c $(OPT) mega2.c
|
|
|
|
debug.o: debug.c apple.h
|
|
|
|
! cc -c $(OPT) debug.c
|
|
|
|
prodos.o: prodos.c apple.h
|
|
|
|
! cc -c $(OPT) prodos.c
|
|
|
|
|
|
|
|
# Build the executale
|
1997-07-07 11:22:08 +00:00
|
|
|
prodos : $(OBJ)
|
2000-01-22 13:15:51 +00:00
|
|
|
! cc $(OPT) -o prodos $(OBJ) $(LIB)
|
1997-07-07 11:22:08 +00:00
|
|
|
|
|
|
|
# Clean up
|
|
|
|
clean:
|
|
|
|
! rm *.o *~
|
2000-01-22 13:15:51 +00:00
|
|
|
--- 27,52 ----
|
|
|
|
|
|
|
|
# Build modules from source:
|
|
|
|
main.o: main.c apple.h
|
|
|
|
! $(CC) -c $(OPT) main.c
|
|
|
|
6502.o: 6502.c apple.h
|
|
|
|
! $(CC) -c $(OPT) 6502.c
|
|
|
|
mega2.o: mega2.c apple.h
|
|
|
|
! $(CC) -c $(OPT) mega2.c
|
|
|
|
debug.o: debug.c apple.h
|
|
|
|
! $(CC) -c $(OPT) debug.c
|
|
|
|
prodos.o: prodos.c apple.h
|
|
|
|
! $(CC) -c $(OPT) prodos.c
|
|
|
|
|
|
|
|
# Build the executale
|
1997-07-07 11:22:08 +00:00
|
|
|
prodos : $(OBJ)
|
2000-01-22 13:15:51 +00:00
|
|
|
! $(CC) $(OPT) -o prodos $(OBJ) $(LIB)
|
|
|
|
!
|
|
|
|
! # Install the program
|
|
|
|
! install: all
|
|
|
|
! if [ ! -f ${ROMDIR} ]; then ${MKDIR} ${ROMDIR}; fi
|
|
|
|
! ${BSD_INSTALL_PROGRAM} prodos ${BINDIR}
|
|
|
|
! ${BSD_INSTALL_DATA} apple.rom ${ROMDIR}/${ROM}
|
1997-07-07 11:22:08 +00:00
|
|
|
|
|
|
|
# Clean up
|
|
|
|
clean:
|
|
|
|
! rm *.o
|