Makefile 1.03 KB
#!smake
#
# Makefile to build libleoipl.a
#

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

LIBDEPTH = ../..
TARGETS=$(LIBDEPTH)/libleoipl/libleoipl.a

CFILES =  		\
	iplleoc2ecc.c	\
	iplleocmdex.c	\
	iplleofunc.c	\
	iplleoint.c	\
	iplleomecha.c	\
	iplleoram.c	\
	iplleoread.c	\
        iplleotimer.c   \
	iplleoutil.c	\
	iplleord_diskid.c

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

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

#ifdef RECOMPILE

exports install default: $(TARGETS)

include $(PRDEPTH)/PRrules

$(TARGETS): $(.TARGET)($(OBJECTS))
	ar rc $(.TARGET) $(.OODATE)
	rm -f $(.OODATE)

#else

.NOTPARALLEL:

ORGLIB = libleoipl.a

exports install default: $(TARGETS)

$(TARGETS): $(.TARGET)($(OBJECTS))
	ar rc $(.TARGET) $(.OODATE)
	rm -f $(.OODATE) /tmp/make.$(ORGLIB).tmp

$(OBJECTS):
	cat $(ORGLIB).ZZ | zcat > /tmp/make.$(ORGLIB).tmp
	ar xo /tmp/make.$(ORGLIB).tmp

# Since we can't use .Z file in the source tree, 
# we use .ZZ instead.   
#endif