#	Copyright (c) 1990 UNIX System Laboratories, Inc.
#	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
#	UNIX System Laboratories, Inc.
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)oampkg:libinst/Makefile	1.8.4.1"

#	Makefile for libinst

ROOT =

USRLIB = $(ROOT)/usr/lib

INC = $(ROOT)/usr/include

LDFLAGS =

CFLAGS = -O -I$(INC) -I../hdrs

STRIP = strip

SIZE = size

#top#
# Generated by makefile 1.8.1.2

MAKEFILE = Makefile


LIBRARY = libinst.a

OBJECTS =  copyf.o dockdeps.o echo.o eptstat.o finalck.o lockinst.o ocfile.o \
	pathdup.o pkgdbmerg.o procmap.o psvr4ck.o ptext.o putparam.o \
	qreason.o qstrdup.o setadmin.o setlist.o srcpath.o stub.o

SOURCES =  copyf.c dockdeps.c echo.c eptstat.c finalck.c lockinst.c ocfile.c \
	pathdup.c pkgdbmerg.c procmap.c psvr4ck.c ptext.c putparam.c \
	qreason.c qstrdup.c setadmin.c setlist.c srcpath.c stub.c

ALL:		 $(LIBRARY)

$(LIBRARY):	$(LIBRARY)(stub.o) $(LIBRARY)(srcpath.o) \
		$(LIBRARY)(setlist.o) $(LIBRARY)(setadmin.o) \
		$(LIBRARY)(qstrdup.o) $(LIBRARY)(qreason.o) \
		$(LIBRARY)(putparam.o) $(LIBRARY)(ptext.o) \
		$(LIBRARY)(psvr4ck.o) $(LIBRARY)(procmap.o) \
		$(LIBRARY)(pkgdbmerg.o)	$(LIBRARY)(pathdup.o) \
		$(LIBRARY)(ocfile.o) $(LIBRARY)(lockinst.o) \
		$(LIBRARY)(finalck.o) $(LIBRARY)(eptstat.o) \
		$(LIBRARY)(echo.o) $(LIBRARY)(dockdeps.o) \
		$(LIBRARY)(copyf.o) 


$(LIBRARY)(copyf.o) copyf.o:	 $(INC)/stdio.h \
		 $(INC)/string.h $(INC)/sys/select.h \
		 $(INC)/sys/stat.h $(INC)/sys/time.h \
		 $(INC)/sys/types.h $(INC)/sys/utime.h \
		 $(INC)/time.h $(INC)/utime.h 


$(LIBRARY)(dockdeps.o) dockdeps.o:	 $(INC)/ctype.h \
		 $(INC)/dirent.h $(INC)/limits.h \
		 $(INC)/pkginfo.h	$(INC)/pkgstrct.h	\
		 $(INC)/stdio.h $(INC)/string.h \
		 $(INC)/sys/dirent.h $(INC)/sys/select.h \
		 $(INC)/sys/types.h 


$(LIBRARY)(echo.o) echo.o:	 $(INC)/stdio.h \
		 $(INC)/varargs.h	


$(LIBRARY)(eptstat.o) eptstat.o:	 $(INC)/limits.h \
		 $(INC)/pkginfo.h	$(INC)/pkgstrct.h	\
		 $(INC)/stdio.h $(INC)/string.h \
		 $(INC)/sys/select.h $(INC)/sys/types.h 


$(LIBRARY)(finalck.o) finalck.o:	 $(INC)/limits.h \
		 $(INC)/pkgstrct.h $(INC)/stdio.h \
		 $(INC)/string.h $(INC)/sys/select.h \
		 $(INC)/sys/types.h 


$(LIBRARY)(lockinst.o) lockinst.o:	 $(INC)/limits.h \
		 $(INC)/pkglocs.h	$(INC)/stdio.h \
		 $(INC)/sys/select.h $(INC)/sys/types.h \
		 $(INC)/sys/unistd.h $(INC)/unistd.h 


$(LIBRARY)(ocfile.o) ocfile.o:	 $(INC)/errno.h \
		 $(INC)/limits.h $(INC)/pkglocs.h \
		 $(INC)/stdio.h $(INC)/sys/errno.h \
		 $(INC)/sys/select.h $(INC)/sys/types.h \
		 $(INC)/sys/unistd.h $(INC)/unistd.h 


$(LIBRARY)(pathdup.o) pathdup.o:	 $(INC)/limits.h \
		 $(INC)/string.h 


$(LIBRARY)(pkgdbmerg.o)	pkgdbmerg.o:	 ../hdrs/install.h \
		 $(INC)/limits.h $(INC)/pkginfo.h \
		 $(INC)/pkgstrct.h $(INC)/signal.h \
		 $(INC)/stdio.h $(INC)/string.h \
		 $(INC)/sys/errno.h $(INC)/sys/select.h \
		 $(INC)/sys/signal.h $(INC)/sys/types.h 


$(LIBRARY)(procmap.o) procmap.o:	 $(INC)/limits.h \
		 $(INC)/pkgstrct.h $(INC)/stdio.h \
		 $(INC)/string.h $(INC)/sys/select.h \
		 $(INC)/sys/types.h 


$(LIBRARY)(psvr4ck.o) psvr4ck.o:	 $(INC)/ctype.h \
		 $(INC)/dirent.h $(INC)/limits.h \
		 $(INC)/stdio.h $(INC)/string.h \
		 $(INC)/sys/dirent.h $(INC)/sys/select.h \
		 $(INC)/sys/types.h $(INC)/sys/utsname.h 


$(LIBRARY)(ptext.o) ptext.o:	 $(INC)/stdio.h \
		 $(INC)/varargs.h	


$(LIBRARY)(putparam.o) putparam.o:	 $(INC)/stdio.h \
		 $(INC)/string.h 


$(LIBRARY)(qreason.o) qreason.o:	 


$(LIBRARY)(qstrdup.o) qstrdup.o:	 $(INC)/string.h 


$(LIBRARY)(setadmin.o) setadmin.o:	 ../hdrs/install.h \
		 $(INC)/limits.h $(INC)/pkglocs.h \
		 $(INC)/stdio.h $(INC)/string.h 


$(LIBRARY)(setlist.o) setlist.o:	 $(INC)/stdio.h \
		 $(INC)/string.h 


$(LIBRARY)(srcpath.o) srcpath.o:	 $(INC)/limits.h \
		 $(INC)/string.h 


$(LIBRARY)(stub.o) stub.o:	 

GLOBALINCS = ../hdrs/install.h $(INC)/ctype.h $(INC)/dirent.h \
	$(INC)/errno.h $(INC)/limits.h $(INC)/pkginfo.h \
	$(INC)/pkglocs.h $(INC)/pkgstrct.h $(INC)/signal.h \
	$(INC)/stdio.h $(INC)/string.h $(INC)/sys/dirent.h \
	$(INC)/sys/errno.h $(INC)/sys/select.h \
	$(INC)/sys/signal.h $(INC)/sys/stat.h \
	$(INC)/sys/time.h $(INC)/sys/types.h \
	$(INC)/sys/unistd.h $(INC)/sys/utime.h \
	$(INC)/sys/utsname.h $(INC)/time.h $(INC)/unistd.h \
	$(INC)/utime.h $(INC)/varargs.h 


clean:
	rm -f $(OBJECTS)
	- if [ -d $(ROOT)/xenv ] ;\
		then CC=cc AR=ar /bin/make -f Makefile3.2 clean; fi
	: do nothing

clobber:
	rm -f $(OBJECTS) $(LIBRARY)
	- if [ -d $(ROOT)/xenv ] ;\
		then CC=cc AR=ar /bin/make -f Makefile3.2 clobber; fi
	: do nothing

newmakefile:
	makefile -m -f $(MAKEFILE) -L $(LIBRARY)  -s INC $(INC)
#bottom#

install: all
	- if [ -d $(ROOT)/xenv ] ;\
		then CC=cc AR=ar /bin/make -f Makefile3.2 install; fi
	: do nothing

all : ALL
	- if [ -d $(ROOT)/xenv ] ;\
		then CC=cc AR=ar /bin/make -f Makefile3.2 all; fi
	: do nothing

size: ALL
	$(SIZE) $(LIBRARY)

strip: ALL

#	These targets are useful but optional

partslist:
	@echo $(MAKEFILE) $(SOURCES) $(LOCALINCS)  |  tr ' ' '\012'  |  sort

productdir:
	@echo $(USRLIB) | tr ' ' '\012' | sort

product:
	@echo $(LIBRARY)  |  tr ' ' '\012'  | \
	sed 's;^;$(USRLIB)/;'

srcaudit:
	@fileaudit $(MAKEFILE) $(LOCALINCS) $(SOURCES) -o $(OBJECTS) $(LIBRARY)
