# # Makefile.fpc for MIPSEL PlayStation 1 # [package] main=rtl [target] loaders= units=$(SYSTEMUNIT) $(OBJPASUNIT) $(FPINTRESUNIT) $(ISO7185UNIT) $(CTYPESUNIT) \ $(SYSCONSTUNIT) \ libstd libetc libgpu libgte [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 $(SYSTEMUNIT)$(PPUEXT) $(COMPILER) $< libetc$(PPUEXT) : psy-q-sdk/libetc.pas $(SYSTEMUNIT)$(PPUEXT) $(COMPILER) $< libgpu$(PPUEXT) : psy-q-sdk/libgpu.pas libgte$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) $(COMPILER) $< libgte$(PPUEXT) : psy-q-sdk/libgte.pas $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) $(COMPILER) $< # # Loaders #