# $Id: Makefile,v 1.2 1991/10/09 16:28:19 steve Exp $
#
# Makefile for the UNICOS 6.1.4 version of the Unidata POSIX
# programming environment.

ifndef MAKEINCDIR
  MAKEINCDIR	:= $(wildcard ~ldm/src)
endif

LIBNAME		:= udape

include $(MAKEINCDIR)/defs.gmk

OS		:= unicos_6.1.4
CSRCS		:= 
HSRCS		:= patchlevel.h udposix.h limits.h
MANIFEST	:= $(CSRCS) $(HSRCS) Makefile depend 
INCLUDES	:= -I.
LIBOBJS		:= $(subst .c,.o,$(CSRCS))

all:		$(LIBOBJS)

ifeq (sharable, $(LIBTYPE))
  all:		$(addprefix $(pic)/, $(LIBOBJS))
endif

debug:		$(debug)/$(LIBOBJS)

install:	$(INCDIR) $(INCDIR)/udposix \
		$(addprefix $(INCDIR)/udposix/,$(HSRCS))
      ifneq (,$(findstring 0,$(MAKELEVEL))$(findstring 1,$(MAKELEVEL)))
	echo 1>&2 "You must make \"$@\" from ../../"
	exit 1
      endif

include $(MAKEINCDIR)/rules.gmk
include depend
