#ident	"@(#):makefile	1.4"
#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)libc-port:makefile	1.17"
#
# makefile for libc/port
#
#
# The macro PROF is null by default, causing profiled object to be maintained.
# If profiled object is not desired, the reassignment PROF=@# should appear in
# the make command line.
#

.SUFFIXES: .no .np .fo .fp
CC=cc
CFLAGS=-O
PROF=
NONPROF=
DEFLIST=
SDEFLIST=

all:	prof10 nonprof10 prof81 nonprof81 

nonprof10:
	$(NONPROF)cd gen; make -e $(IGN) nonprof10 PROF=#
	$(NONPROF)cd print; make -e $(IGN) nonprof10 PROF=#
	$(NONPROF)cd stdio; make -e $(IGN) nonprof10 PROF=#
	$(NONPROF)cd sys; make -e $(IGN) nonprof10 PROF=#
prof10:
	$(PROF)cd gen; make -e $(IGN) prof10 NONPROF=#
	$(PROF)cd print; make -e $(IGN) prof10 NONPROF=#
	$(PROF)cd stdio; make -e $(IGN) prof10 NONPROF=#
	$(PROF)cd sys; make -e $(IGN) prof10 NONPROF=#
	
nonprof81:
	$(NONPROF)cd gen; make -e $(IGN) nonprof81 PROF=#
	$(NONPROF)cd print; make -e $(IGN) nonprof81 PROF=#
	$(NONPROF)cd stdio; make -e $(IGN) nonprof81 PROF=#
	$(NONPROF)cd sys; make -e $(IGN) nonprof81 PROF=#
prof81:
	$(PROF)cd gen; make -e $(IGN) prof81 NONPROF=#
	$(PROF)cd print; make -e $(IGN) prof81 NONPROF=#
	$(PROF)cd stdio; make -e $(IGN) prof81 NONPROF=#
	$(PROF)cd sys; make -e $(IGN) prof81 NONPROF=#
	

clobber: clean
	-rm -rf */*.o
	-rm -rf */*.no
	-rm -rf */*.np
	-rm -rf */*.fp

clean:
	cd gen;make clean;cd ..
	cd print;make clean; cd ..
	cd sys;make clean;cd ..
	cd stdio;make clean;cd ..
