mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 17:28:23 +02:00
115 lines
3.6 KiB
Makefile
115 lines
3.6 KiB
Makefile
#
|
|
# Makefile.fpc for MIPSEL PlayStation 1
|
|
#
|
|
[package]
|
|
main=rtl
|
|
[target]
|
|
loaders=
|
|
units=$(SYSTEMUNIT) $(OBJPASUNIT) $(FPINTRESUNIT) $(ISO7185UNIT) $(CTYPESUNIT) \
|
|
$(SYSCONSTUNIT) $(UUCHARUNIT) $(STRINGSUNIT) \
|
|
libstd libetc libgte libgpu libapi libcd libcomb libgs libsnd libspu libds libgun libmcrd libtap libpad libmcx libpress libsn libmcgui libhmd
|
|
|
|
[require]
|
|
nortl=y
|
|
[install]
|
|
fpcpackage=y
|
|
[default]
|
|
target=ps1
|
|
cpu=mipsel
|
|
[compiler]
|
|
includedir=$(INC) $(PROCINC)
|
|
sourcedir=$(INC) $(PROCINC) $(COMMON) ./psy-q-sdk
|
|
[prerules]
|
|
RTL=..
|
|
INC=../inc
|
|
COMMON=$(RTL)/common
|
|
PROCINC=../$(CPU_TARGET)
|
|
UNITPREFIX=rtl
|
|
|
|
# Paths
|
|
OBJPASDIR=$(RTL)/objpas
|
|
# Insert exception handler in system unit
|
|
ifdef EXCEPTIONS_IN_SYSTEM
|
|
override FPCOPT+=-dEXCEPTIONS_IN_SYSTEM
|
|
endif
|
|
# Insert exception handler in system unit
|
|
ifdef NO_EXCEPTIONS_IN_SYSTEM
|
|
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
|
endif
|
|
[rules]
|
|
# Get the system independent include file names.
|
|
# This will set the following variables :
|
|
# SYSINCNAMES
|
|
include $(INC)/makefile.inc
|
|
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
|
# Get the processor dependent include file names.
|
|
# This will set the following variables :
|
|
# CPUINCNAMES
|
|
include $(PROCINC)/makefile.cpu
|
|
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
|
# Put system unit dependencies together.
|
|
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
|
|
|
|
# PSY-Q-SDK units
|
|
libstd$(PPUEXT) : psy-q-sdk/libstd.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libetc$(PPUEXT) : psy-q-sdk/libetc.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libgte$(PPUEXT) : psy-q-sdk/libgte.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libgpu$(PPUEXT) : psy-q-sdk/libgpu.pas libgte$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libapi$(PPUEXT) : psy-q-sdk/libapi.pas libstd$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libcd$(PPUEXT) : psy-q-sdk/libcd.pas libstd$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libcomb$(PPUEXT) : psy-q-sdk/libcomb.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libgs$(PPUEXT) : psy-q-sdk/libgs.pas libgpu$(PPUEXT) libgte$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libsnd$(PPUEXT) : psy-q-sdk/libsnd.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libspu$(PPUEXT) : psy-q-sdk/libspu.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libds$(PPUEXT) : psy-q-sdk/libds.pas libstd$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libgun$(PPUEXT) : psy-q-sdk/libgun.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libmcrd$(PPUEXT) : psy-q-sdk/libmcrd.pas libstd$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libtap$(PPUEXT) : psy-q-sdk/libtap.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libpad$(PPUEXT) : psy-q-sdk/libpad.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libmcx$(PPUEXT) : psy-q-sdk/libmcx.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libpress$(PPUEXT) : psy-q-sdk/libpress.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libsn$(PPUEXT) : psy-q-sdk/libsn.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libmcgui$(PPUEXT) : psy-q-sdk/libmcgui.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
|
|
libhmd$(PPUEXT) : psy-q-sdk/libhmd.pas libgte$(PPUEXT) libgs$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $<
|
|
#
|
|
# Loaders
|
|
#
|