#sccs	"@(#)libc/port/print:Makefile	1.5"

#
# makefile for libc/port/print
#
#

.SUFFIXES: .p

include $(MAKEINC)/Makepre.h

OBJECTS=\
doprnt.o    fprintf.o   printf.o    sprintf.o 	\
vprintf.o	vsprintf.o	vfprintf.o

POBJECTS=\
doprnt.p    fprintf.p   printf.p    sprintf.p 	\
vprintf.p	vsprintf.p	vfprintf.p

DEPENDLIST = doprnt.c \
	fprintf.c \
	print.h \
	printf.c \
	sprintf.c \
	vfprintf.c \
	vprintf.c \
	vsprintf.c

all: Makeincludes $(OBJECTS)

Makeincludes: $(DEPENDLIST)
	$(INCCMD) $(DEPENDLIST) | $(SORT) | $(FILTER) > Makeincludes;\
	$(MAKE)

includes: $(DEPENDLIST)
	$(INCCMD) $(DEPENDLIST) | $(SORT) | $(FILTER) > Makeincludes

prof: $(POBJECTS)

clean clobber:
	-rm -fr *.[po]

install:

populate:
	getunit

include Makeincludes
include $(MAKEINC)/Makepost.h

.c.o:
	@echo $(@F):
	$(CC) $(CFLAGS) -c $(*F).c

.c.p:
	@echo $(@F):
	$(CC) $(CFLAGS) -S -c -p $(*F).c
	$(AS) -o $(*F).p $(*F).s
	@rm $(*F).s
