Makefile 823 Bytes
#!smake -k
#
# Makefile for makefat application 
#
#

TOOLROOT =

PRDEPTH = ../../..
include $(ROOT)/usr/include/make/PRdefs
CONVERTOBJECTS = $(ROOT)/usr/lib/PR/convert.o $(ROOT)/usr/lib/PR/table.o

OPTIMIZER =	-g

TARGETS =	makefat

HFILES =	sub.h

CODEFILES   =	makefat.c sub.c

CODEOBJECTS =	$(CODEFILES:.c=.o)

OBJECTS =	$(CODEOBJECTS) $(CONVERTOBJECTS)

LCINCS =	-I. -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include

LCOPTS =	-fullwarn -wlint,-f \
		-woff 813,819,822,826,827,852  \
		-G 0 -Xcpluscomm

LDIRT  =	$(APP) $(TARGETS) 

LDFLAGS =	$(MKDEPOPT) -L$(ROOT)/lib -L$(ROOT)/usr/lib -L$(ROOT)/usr/PR

default:	$(TARGETS)

include $(COMMONRULES)

install:	default
		$(INSTALL) -m 444 -F /usr/src/PR/demos/reboot/makefat	\
			Makefile $(CODEFILES) $(HFILES)

$(TARGETS):	$(OBJECTS)
	$(CCF) $(OBJECTS) $(LDFLAGS) -o $@