pcsx2/fps2bios/kernel/iopload/iopboot/Makefile

60 lines
1.6 KiB
Makefile
Raw Normal View History

# _____ ___ ____
# ____| | ____| PSX2 OpenSource Project
# | ___| |____ (C)2002, David Ryan ( Oobles@hotmail.com )
# ------------------------------------------------------------------------
# Generated automatically from Makefile.in by configure.
#.SUFFIXES: .S .c .o .s .elf .irx
# ------------------------------------------------------------------------
# COMPILERS
IOPCC = iop-gcc
IOPAR = iop-ar
IOPLD = iop-ld
IOPAS = iop-as
EECC = ee-gcc
EEAR = ee-ar
EELD = ee-gcc
# ------------------------------------------------------------------------
# DIRECTORY PATHS & FLAGS
EECFLAGS = -O2 -fomit-frame-pointer -mips3 -EL -nostartfiles
EEINCLUDES = -I. -Iinclude -I$(PS2LIB)/common/include -I$(PS2LIB)/ee/include
IOPCFLAGS = -O2 -fomit-frame-pointer -nostartfiles -G0
IOPINCLUDES = -I. -I../include -I$(PS2LIB)/common/include -I$(PS2LIB)/iop/include
IOPCOMPILE = $(IOPCC) $(IOPINCLUDES) $(IOPCFLAGS)
IOPLINK = $(IOPLD) -dc
IOPASFLAGS := -EL -G0
# ------------------------------------------------------------------------
# PROJECTS TO BUILD
all: iopboot
# ------------------------------------------------------------------------
# KERNEL BUILD INSTRUCTIONS
LDFLAGS = -nostartfiles -L$(PS2LIB)/iop/lib
LDADD =
OBJECTS = iopboot.o ../iopdebug.o ../iopelf.o ../romdir.o
iopboot: $(OBJECTS)
$(EELD) -Wl,--oformat,binary,--Map,iopboot.map -T linkfile $(OBJECTS) $(LDFLAGS) $(LDADD) -o ../../../build/IOPBOOT
%.o: %.c
$(IOPCC) $(IOPINCLUDES) $(IOPCFLAGS) -o $@ -c $<
%.o : %.s
$(IOPAS) $(IOPASFLAGS) $< -o $@
clean:
rm -f $(OBJECTS)