Makefile.sp 1.06 KB
#!smake
#
# Makefile to build libleo_sp.a
#

PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs

LIBDEPTH = ../..
TARGETS=$(LIBDEPTH)/libddwrite/libddwrite.a $(LIBDEPTH)/libddwrite/libleo_sp.a

CFILES = 		\
	leo_tbl.c	\
	leoc2ecc.c	\
	leocmdex.c	\
	leofunc.c	\
	leoinquiry.c	\
	leoint.c	\
	leomecha.c	\
	leomode_sel.c	\
	leomotor.c	\
	leomseq_tbl.c	\
	leoram.c	\
	leord_capa.c	\
	leord_diskid.c	\
	leoread.c	\
	leoreset.c	\
	leorezero.c	\
	leoseek.c	\
	leotestunit.c	\
	leotranslat.c	\
	leoutil.c	\
	leowrite.c	\
	leotimer.c      \
	leosysdata.c	\
	leoc2_syndrome.c \
	leotempbuffer.c


COBJECTS =   $(CFILES:.c=.o)

LCINCS  = -I. -I../include -I$(ROOT)/usr/include/PR -I $(ROOT)/usr/include -I$(ROOT)/PR/libultra/include
LCOPTS = -non_shared -mips2 -fullwarn -G 0
LCDEFS = -DNDEBUG -D_LONGCMD
OPTIMIZER = -O2

exports install default: $(TARGETS)

include $(PRDEPTH)/PRrules

.NOTPARALLEL:

$(LIBDEPTH)/libddwrite/libddwrite.a: $(.TARGET)($(OBJECTS))
	ar rc $(.TARGET) $(.OODATE)
	...
	rm -f $(.OODATE)

$(LIBDEPTH)/libddwrite/libleo_sp.a: $(.TARGET)($(OBJECTS))
	ar rc $(.TARGET) $(.OODATE)