# $Id: Makefile,v 1.4 1991/09/17 20:09:57 steve Exp $
#
# Makefile for the UNICOS 5.1.11 version of the Unidata POSIX
# programming environment.

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

LIBNAME		:= udape

include $(MAKEINCDIR)/defs.gmk

OS		:= unicos_5.1.11
CSRCS		:= signal.c
HSRCS		:= patchlevel.h udposix.h limits.h unistd.h \
		    signal.h sys/types.h
MANIFEST	:= sys/ $(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 $(INCDIR)/udposix/sys \
		$(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
