# $Source: /hpux/shared/supp//usr/src/cmd/config/./makefile,v $
# $Revision: 72.11 $	$Author: ssa $
# $State: Exp $   	$Locker:  $
# $Date: 94/09/16 16:51:22 $

#
# config program and rules for creating a development conf.c with it
#

CONF_DEFS= -DAUTOCHANGER  -DV4FS
CONF_DEFS_C= -DAUTOCHANGER
CONF_DEFS_I= -DAUTOCHANGER -DCONFIG_INTERNAL


default: config config.internl config.9to10

metrics: config.M config.internl.M config.customer.M

config: config.c
	$(CC)  -o config $(CONF_DEFS) config.c

config.9to10: config.c
	$(CC) -Wl,-a,archive -o config.9to10 $(CONF_DEFS) config.c /usr/lib/kern10stub.o

config.M : config.c
	$(METRICS)  -o config.M $(CONF_DEFS) config.c

config.customer: config.c
	$(CC) -o config.customer $(CONF_DEFS_C) config.c

config.customer.M : config.c
	$(METRICS) -o config.customer.M $(CONF_DEFS_C) config.c

# config.internl is part of BUILDENV fileset and is depended by IND folks.  
# Since config.internl is being executed in the pseudo root which the real 
# root is running 9.0, the command has to link with /usr/lib/kern10stub.o 
# to avoid problem with new kernel calls in 10.0 system.
# /usr/lib/kern10stub.o should be removed from the link line when real root
# is 10.0.

config.internl: config.c
	$(CC) -Wl,-v -Wl,-a,archive -o config.internl $(CONF_DEFS_I) config.c /usr/lib/kern10stub.o

config.internl.M: config.c
	$(METRICS) -o config.internl.M $(CONF_DEFS_I) config.c

clean: 
	rm -f config config.internl config.9to10

clobber: clean

# DO NOT DELETE THIS LINE -- make depend uses it
