# $Id: Makefile,v 1.30 1991/11/20 23:58:54 steve Exp $
#
# Makefile for the Unidata POSIX programming environment, UDPOSIX.

# Set the following variable to the full pathname of the top-level UDAPE
# directory.
#
ifndef MAKEINCDIR
  MAKEINCDIR	:= $(wildcard ~ldm/src)
endif

LIBNAME		:= udape

include $(MAKEINCDIR)/defs.gmk

SUBDIRS		:= \
	aix_3.1		\
	convexos_9.1	\
	domainos_10.2	\
	domainos_10.3.2	\
	domainos_10.3.5	\
	hpux_8.0	\
	hpux_8.05	\
	irix_3.3.2	\
	newsos_3.3a	\
	newsos_4.0	\
	nextos_2.0	\
	nextos_2.1	\
	sunos_4.0.3	\
	sunos_4.1	\
	sunos_4.1.1	\
	ultrix_3.5	\
	ultrix_4.0	\
	ultrix_4.1	\
	ultrix_4.2	\
	unicos_5.1.9	\
	unicos_5.1.11	\
	unicos_6.1.4	\
	vms_5_3		\
	vms_5_4

MANIFEST	:= udposix.3 Makefile $(SUBDIRS)

install::	$(INCDIR)/udposix $(MANDIR)/man3/udposix.3

all install clean::
	@$(MAKE) _subdirs SUBDIRS=$(OS) GOAL=$@

LIBOBJS.echo:
	@echo $(addprefix $(OS)/,$(shell $(MAKE) -C $(OS) $@))

include $(MAKEINCDIR)/rules.gmk
