# $Id: Makefile,v 1.2 1991/09/17 20:48:42 steve Exp $
#
# Makefile for the ConvexOS 9.1 version of the Unidata POSIX programming
# environment.

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

include $(MAKEINCDIR)/defs.gmk

OS		:= convexos_9.1
CSRCS		:= 
HSRCS		:= float.h limits.h patchlevel.h search.h stdarg.h \
		    udposix.h
MANIFEST	:= $(CSRCS) $(HSRCS) Makefile
INCLUDES	:= -I.
LIBOBJS		:= $(subst .c,.o,$(CSRCS))

all:		$(LIBOBJS)

debug:		$(debug)/$(LIBOBJS)

install:	$(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
