# $Source: /hpux/shared/supp//usr/src/cmd/mkmf/./makefile,v $
# $Revision: 72.1 $

# Common makefile for mkmf utility
#
# The old make files used to also cd to mf and do some installing, this
# will now be done by the build process.

SUBDIR	      = mkmf
# Added OTHER macro to allow passing of a define necessary in order to build
# a version of mkmf for the HP series 1200.  When the series 1200 C and C++
# cpps define a machine name for the series 1200, can add SEQ68K as a define
# in one of the header files for this product.
OTHER=

default:		
		for i in $(SUBDIR);		\
		do (				\
			cd $$i;			\
			$(MAKE) CFLAGS="$(CFLAGS) $(OTHER)"\
		); done

metrics:		
		for i in $(SUBDIR);		\
		do (				\
			cd $$i;			\
			$(MAKE) CFLAGS="$(CFLAGS) $(OTHER)" METRICS="$(METRICS)" metrics \
		); done

clean:	
		for i in $(SUBDIR);		\
		do (				\
			cd $$i;			\
			$(MAKE) CFLAGS="$(CFLAGS) $(OTHER)" clean\
		); done

clobber:	
		for i in $(SUBDIR);		\
		do (				\
			cd $$i;			\
			$(MAKE) CFLAGS="$(CFLAGS) $(OTHER)" clobber\
		); done
