Makefile 979 Bytes
#!smake
#
# Makefile for leowrite
#
PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs

OPTIMIZER =     -g

TARGETS =       game

HFILES =        hostio.h

BOOTFILES   =   game.c

BOOTOBJECTS =   $(BOOTFILES:.c=.o)

DATAFILES =     rdrambuffer.c controlblock.c transbyte.c

DATAOBJECTS =   $(DATAFILES:.c=.o)

BOOTSEGMENT =   boot.o

OBJECTS =       $(BOOTSEGMENT)

#LCINCS =        -I. -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include \
#		-I$(ROOT)/PR/libultra/os
LCINCS =        -I. -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include
LCOPTS =       -fullwarn -wlint,-f -woff 813,819,826,827,852 -non_shared -G 0
LDFLAGS =       $(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -L.. -lddwrite -lultra_rom
#LCDEFS = 	-DID_NOT_CHANGE

LDIRT  =        game.n64

default:	$(TARGETS)

include $(PRDEPTH)/PRrules

$(BOOTSEGMENT): $(BOOTOBJECTS) $(DATAOBJECTS)
		$(LD) -o $(BOOTSEGMENT) -r $(BOOTOBJECTS) $(DATAOBJECTS) $(LDFLAGS)

game:           spec $(OBJECTS) $(MAKEROM)
		$(MAKEROM) -r game.n64 spec