2009-01-12 20:54:49 +01:00
|
|
|
# Makefile for Frodo (AmigaOS with GCC)
|
2008-12-31 17:16:24 +01:00
|
|
|
|
|
|
|
## Version information
|
|
|
|
VERSION = 4
|
2009-01-12 20:54:49 +01:00
|
|
|
REVISION = 2
|
2008-12-31 17:16:24 +01:00
|
|
|
|
|
|
|
CXX = gcc
|
|
|
|
CFLAGS = -O2 -I./ -fomit-frame-pointer -m68040 -m68881
|
|
|
|
LIBRARIES =
|
|
|
|
|
|
|
|
.SUFFIXES: .o .cpp .c .h
|
|
|
|
|
|
|
|
## Files
|
|
|
|
OBJS = main.o Display.o Prefs.o AmigaGUI.o SID.o REU.o IEC.o 1541fs.o \
|
|
|
|
1541d64.o 1541t64.o 1541job.o SAM.o
|
|
|
|
SLOBJS = $(OBJS) C64.o CPUC64.o VIC.o CIA.o CPU1541.o
|
2009-01-12 20:54:49 +01:00
|
|
|
SLFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0
|
2008-12-31 17:16:24 +01:00
|
|
|
SCOBJS = $(OBJS) C64_SC.o CPUC64_SC.o VIC_SC.o CIA_SC.o CPU1541_SC.o CPU_common.o
|
|
|
|
SCFLAGS = -DFRODO_SC
|
|
|
|
|
|
|
|
Frodo: $(SLOBJS)
|
|
|
|
$(CXX) -o Frodo $(SLOBJS) $(LDFLAGS) $(LIBRARIES)
|
|
|
|
copy Frodo /
|
|
|
|
|
|
|
|
FrodoSC: $(SCOBJS)
|
|
|
|
$(CXX) -o FrodoSC $(SCOBJS) $(LDFLAGS) $(LIBRARIES)
|
|
|
|
copy FrodoSC /
|
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
all: Frodo FrodoSC
|
2008-12-31 17:16:24 +01:00
|
|
|
|
|
|
|
clean:
|
2009-01-12 20:54:49 +01:00
|
|
|
@-delete $(SLOBJS) $(SCOBJS)
|
|
|
|
@-delete -f Frodo FrodoSC
|
2008-12-31 17:16:24 +01:00
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) -o $@ -c $*.c
|
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
C64.o: C64.cpp
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
C64_SC.o: C64.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
CPUC64.o: CPUC64.cpp
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
CPUC64_SC.o: CPUC64_SC.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
CPU1541.o: CPU1541.cpp
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
CPU1541_SC.o: CPU1541_SC.cpp
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
VIC_SC.o: VIC_SC.cpp
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
CIA_SC.o: CIA_SC.cpp
|
|
|
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
2008-12-31 17:16:24 +01:00
|
|
|
|
|
|
|
## Dependencies
|
2009-01-12 20:54:49 +01:00
|
|
|
main.o: main.cpp main.h main_Amiga.h C64.h Display.h Prefs.h SAM.h
|
|
|
|
C64.o: C64.cpp C64.h C64_Amiga.h 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
|
|
|
CmdPipe.o: CmdPipe.h
|
2009-01-12 20:54:49 +01:00
|
|
|
Display.o: Display.cpp Display.h Display_Amiga.h main.h Prefs.h Version.h
|
|
|
|
Prefs.o: Prefs.cpp Prefs.h Prefs_Amiga.h Display.h main.h
|
|
|
|
CPUC64.o: CPUC64.cpp CPUC64.h CPU_emulline.h C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h
|
|
|
|
CPU1541.o: CPU1541.cpp CPU1541.h CPU_emulline.h 1541job.h C64.h CIA.h Display.h
|
2008-12-31 17:16:24 +01:00
|
|
|
CPU_common.o: CPU_common.cpp CPU_common.h
|
|
|
|
VIC.o: VIC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h
|
2009-01-12 20:54:49 +01:00
|
|
|
SID.o: SID.cpp SID.h SID_Amiga.h Prefs.h
|
2008-12-31 17:16:24 +01:00
|
|
|
CIA.o: CIA.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h
|
|
|
|
IEC.o: IEC.cpp IEC.h 1541fs.h 1541d64.h 1541t64.h Prefs.h Display.h
|
|
|
|
1541fs.o: 1541fs.cpp 1541fs.h IEC.h main.h Prefs.h
|
|
|
|
1541fs.h: IEC.h
|
|
|
|
1541d64.o: 1541d64.cpp 1541d64.h IEC.h Prefs.h
|
|
|
|
1541d64.h: IEC.h
|
|
|
|
1541t64.o: 1541t64.cpp 1541t64.h IEC.h Prefs.h
|
|
|
|
1541t64.h: IEC.h
|
|
|
|
1541job.o: 1541job.cpp 1541job.h CPU1541.h Prefs.h
|
|
|
|
REU.o: REU.cpp REU.h CPUC64.h Prefs.h
|
|
|
|
SAM.o: SAM.cpp SAM.h C64.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h
|