2008-12-31 17:16:24 +01:00
|
|
|
# Makefile.in for Frodo (generic Unix/X11)
|
|
|
|
# Copyright (C) 1995-1997 Christian Bauer <cbauer@iphcip1.physik.uni-mainz.de>
|
|
|
|
|
|
|
|
## Version information
|
|
|
|
VERSION = 4
|
|
|
|
REVISION = 1
|
|
|
|
|
|
|
|
|
|
|
|
CXX = g++
|
2008-12-31 17:20:47 +01:00
|
|
|
LIBS = -L/usr/lib -lSDL -lSDL_ttf
|
|
|
|
CFLAGS = -O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_SDL -fno-strength-reduce -DREGPARAM="__attribute__((regparm(3)))" -I./ -DFRODO_HPUX_REV=0 -DKBD_LANG=0
|
2008-12-31 17:16:24 +01:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
prefix = /usr/local
|
|
|
|
exec_prefix = ${prefix}
|
|
|
|
bindir = ${exec_prefix}/bin
|
|
|
|
libdir = ${exec_prefix}/lib
|
|
|
|
sysconfdir = ${prefix}/etc
|
|
|
|
|
|
|
|
.SUFFIXES: .o .cpp .h
|
|
|
|
|
|
|
|
## Files
|
|
|
|
OBJS = main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o \
|
2008-12-31 17:20:47 +01:00
|
|
|
1541d64.o 1541t64.o 1541job.o SAM.o menu.o CmdPipe.o
|
2008-12-31 17:16:24 +01:00
|
|
|
SLOBJS = $(OBJS) C64.o CPUC64.o VIC.o CIA.o CPU1541.o
|
|
|
|
PCOBJS = $(OBJS) C64_PC.o CPUC64_PC.o VIC.o CIA.o CPU1541_PC.o
|
|
|
|
PCFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0
|
|
|
|
SCOBJS = $(OBJS) C64_SC.o CPUC64_SC.o VIC_SC.o CIA_SC.o CPU1541_SC.o CPU_common.o
|
|
|
|
SCFLAGS = -DFRODO_SC
|
|
|
|
SRCS = main.cpp Display.cpp Prefs.cpp SID.cpp REU.cpp IEC.cpp 1541fs.cpp \
|
|
|
|
1541d64.cpp 1541t64.cpp 1541job.cpp SAM.cpp CmdPipe.cpp C64.cpp \
|
|
|
|
C64_PC.cpp C64_SC.cpp CPUC64.cpp CPUC64_PC.cpp CPUC64_SC.cpp \
|
|
|
|
VIC.cpp VIC_SC.cpp CIA.cpp CIA_SC.cpp CPU1541.cpp CPU1541_PC.cpp \
|
|
|
|
CPU1541_SC.cpp CPU_common.cpp
|
|
|
|
|
|
|
|
all: Frodo FrodoPC FrodoSC
|
|
|
|
|
|
|
|
Frodo: $(SLOBJS)
|
|
|
|
$(CXX) -o Frodo $(SLOBJS) $(LDFLAGS) $(LIBS)
|
|
|
|
cp Frodo ..
|
|
|
|
|
|
|
|
FrodoPC: $(PCOBJS)
|
|
|
|
$(CXX) -o FrodoPC $(PCOBJS) $(LDFLAGS) $(LIBS)
|
|
|
|
cp FrodoPC ..
|
|
|
|
|
|
|
|
FrodoSC: $(SCOBJS)
|
|
|
|
$(CXX) -o FrodoSC $(SCOBJS) $(LDFLAGS) $(LIBS)
|
|
|
|
cp FrodoSC ..
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(SLOBJS) $(PCOBJS) $(SCOBJS)
|
|
|
|
rm -f Frodo FrodoPC FrodoSC
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -rf autom4te.cache
|
|
|
|
rm -f Makefile sysconfig.h
|
|
|
|
rm -f config.cache config.log config.status config.h
|
|
|
|
|
|
|
|
depend dep:
|
|
|
|
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
.cpp.s:
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(EXTRAFLAGS) -o $@ -S $*.cpp -g0
|
|
|
|
|
2008-12-31 17:20:47 +01:00
|
|
|
C64_PC.o: C64.cpp C64.h C64_SDL.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h
|
2008-12-31 17:16:24 +01:00
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
CPUC64_PC.o: CPUC64.cpp CPUC64.h CPU_emulline.i C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
CPU1541_PC.o: CPU1541.cpp CPU1541.h CPU_emulline.i 1541job.h C64.h CIA.h Display.h
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
2008-12-31 17:20:47 +01:00
|
|
|
C64_SC.o: C64_SC.cpp C64.h C64_SDL.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h
|
2008-12-31 17:16:24 +01:00
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
CPUC64_SC.o: CPUC64_SC.cpp CPUC64.h CPU_emulcycle.i CPU_common.h C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
CPU1541_SC.o: CPU1541_SC.cpp CPU1541.h CPU_emulcycle.i CPU_common.h 1541job.h C64.h CIA.h Display.h
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
VIC_SC.o: VIC_SC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
CIA_SC.o: CIA_SC.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|