2009-01-04 14:51:38 +01:00
|
|
|
# Makefile.in for Frodo (generic Unix/X11)
|
2009-01-12 20:54:49 +01:00
|
|
|
include $(DEVKITPPC)/gamecube_rules
|
2009-01-04 14:51:38 +01:00
|
|
|
## Version information
|
2009-01-12 20:54:49 +01:00
|
|
|
VERSION = 4
|
|
|
|
REVISION = 3
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
## System specific configuration
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
#SHELL = /bin/sh
|
|
|
|
|
|
|
|
#prefix = /usr/local
|
|
|
|
#exec_prefix = ${prefix}
|
|
|
|
#bindir = ${exec_prefix}/bin
|
|
|
|
#datadir = ${prefix}/share
|
|
|
|
|
|
|
|
DESTDIR =
|
2009-01-04 14:51:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Files
|
2009-01-12 20:54:49 +01:00
|
|
|
GUIOBJS = sdlgui.o file.o dlgFileSelect.o dlgMain.o dlgDrives.o dlgOptions.o dlgVideoSound.o dlgAdvanced.o dlgInput.o
|
|
|
|
OBJS = $(GUIOBJS) main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o dirent.o\
|
|
|
|
1541d64.o 1541t64.o 1541job.o SAM.o
|
2009-01-04 14:51:38 +01:00
|
|
|
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
|
2009-01-04 14:51:38 +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
|
2009-01-12 20:54:49 +01:00
|
|
|
GUISRCS = sdlgui.cpp file.cpp dlgFileSelect.cpp dlgMain.cpp dlgDrives.cpp dlgOptions.cpp dlgVidoSound.cpp dlgAdvanced.cpp dlgInput.cpp
|
|
|
|
SRCS = $(GUISRCS) main.cpp Display.cpp Prefs.cpp SID.cpp REU.cpp IEC.cpp 1541fs.cpp \
|
2009-01-04 14:51:38 +01:00
|
|
|
1541d64.cpp 1541t64.cpp 1541job.cpp SAM.cpp CmdPipe.cpp C64.cpp \
|
2009-01-12 20:54:49 +01:00
|
|
|
C64_SC.cpp CPUC64.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
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
#CXX = g++
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
CFLAGS = $(SLFLAGS) -g -O2 -fomit-frame-pointer -fno-exceptions $(MACHDEP) -I. -I$(DEVKITPRO)/libogc/include/ -I$(DEVKITPRO)/libogc/include/SDL -DHAVE_SDL -DWII -DR14 -I./ -DKBD_LANG=0
|
|
|
|
DEFS = -DHAVE_CONFIG_H -DDATADIR=\"/frodo/\" -DBINDIR=\"/frodo/\"
|
|
|
|
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
|
|
|
LIBS = -L$(DEVKITPRO)/libogc/lib/cube -lSDL -logc -lz -lm
|
|
|
|
CXXFLAGS = $(CFLAGS)
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
## Rules
|
|
|
|
.PHONY: install installdirs uninstall clean distclean depend dep
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .o .cpp .h
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
all: boot.dol #FrodoSC
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
Frodo.elf: $(SLOBJS)
|
|
|
|
$(CXX) -o Frodo.elf $(CFLAGS) $(LDFLAGS) $(SLOBJS) $(LIBS)
|
|
|
|
#@powerpc-gekko-objcopy -O binary $< $@
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
FrodoSC: $(SCOBJS)
|
|
|
|
$(CXX) -o FrodoSC $(LDFLAGS) $(SCOBJS) $(LIBS)
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
boot.dol: Frodo.dol
|
|
|
|
cp Frodo.dol boot.dol
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
Frodo.dol: Frodo.elf
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/Frodo
|
|
|
|
rm -f $(DESTDIR)$(bindir)/FrodoSC
|
|
|
|
rm -f $(DESTDIR)$(bindir)/Frodo_GUI.tcl
|
|
|
|
rm -f $(DESTDIR)$(datadir)/frodo/Kernal\ ROM
|
|
|
|
rmdir $(DESTDIR)$(datadir)/frodo
|
2009-01-04 14:51:38 +01:00
|
|
|
|
2009-01-12 20:54:49 +01:00
|
|
|
clean:
|
|
|
|
rm -f $(SLOBJS) $(SCOBJS)
|
|
|
|
rm -f Frodo FrodoSC
|
|
|
|
rm -f core* *.core *~ *.bak
|
2009-01-04 14:51:38 +01:00
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|