mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-30 07:24:23 +01:00
96 lines
3.6 KiB
Makefile
96 lines
3.6 KiB
Makefile
|
# Makefile.in for Frodo (AmigaOS with GCC)
|
||
|
# Copyright (C) 1995-1997 Christian Bauer <cbauer@iphcip1.physik.uni-mainz.de>
|
||
|
|
||
|
## Version information
|
||
|
VERSION = 4
|
||
|
REVISION = 1
|
||
|
|
||
|
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
|
||
|
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
|
||
|
|
||
|
Frodo: $(SLOBJS)
|
||
|
$(CXX) -o Frodo $(SLOBJS) $(LDFLAGS) $(LIBRARIES)
|
||
|
copy Frodo /
|
||
|
|
||
|
FrodoPC: $(PCOBJS)
|
||
|
$(CXX) -o FrodoPC $(PCOBJS) $(LDFLAGS) $(LIBRARIES)
|
||
|
copy FrodoPC /
|
||
|
|
||
|
FrodoSC: $(SCOBJS)
|
||
|
$(CXX) -o FrodoSC $(SCOBJS) $(LDFLAGS) $(LIBRARIES)
|
||
|
copy FrodoSC /
|
||
|
|
||
|
all: Frodo FrodoPC FrodoSC
|
||
|
|
||
|
clean:
|
||
|
@-delete $(SLOBJS) $(PCOBJS) $(SCOBJS)
|
||
|
@-delete -f Frodo FrodoPC FrodoSC
|
||
|
|
||
|
.cpp.o:
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) -o $@ -c $*.cpp
|
||
|
|
||
|
.c.o:
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) -o $@ -c $*.c
|
||
|
|
||
|
.cpp.s:
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) -o $@ -S $*.cpp -g0
|
||
|
|
||
|
C64_SC.o: C64.cpp C64.h C64_Amiga.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h
|
||
|
$(CXX) $(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
|
||
|
$(CXX) $(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
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
||
|
|
||
|
VIC_SC.o: VIC_SC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
||
|
|
||
|
CIA_SC.o: CIA_SC.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp
|
||
|
|
||
|
C64_PC.o: C64.cpp C64.h C64_Amiga.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h
|
||
|
$(CXX) $(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
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp
|
||
|
|
||
|
CPU1541_PC.o: CPU1541.cpp CPU1541.h CPU_emulline.i 1541job.h C64.h CIA.h Display.h
|
||
|
$(CXX) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp
|
||
|
|
||
|
## Dependencies
|
||
|
main.o: main.cpp main.h main_Amiga.i C64.h Display.h Prefs.h SAM.h
|
||
|
C64.o: C64.cpp C64.h C64_Amiga.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h
|
||
|
CmdPipe.o: CmdPipe.h
|
||
|
Display.o: Display.cpp Display.h Display_Amiga.i main.h Prefs.h Version.h
|
||
|
Prefs.o: Prefs.cpp Prefs.h Prefs_Amiga.i Display.h main.h
|
||
|
CPUC64.o: CPUC64.cpp CPUC64.h CPU_emulline.i C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h
|
||
|
CPU1541.o: CPU1541.cpp CPU1541.h CPU_emulline.i 1541job.h C64.h CIA.h Display.h
|
||
|
CPU_common.o: CPU_common.cpp CPU_common.h
|
||
|
VIC.o: VIC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h
|
||
|
SID.o: SID.cpp SID.h SID_Amiga.i Prefs.h
|
||
|
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
|