# $Id: Makefile,v 1.5 1991/08/26 14:45:45 steve Exp $
#
# Makefile for the NeXTOS 2.0 version of the Unidata POSIX programming
# environment.

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

LIBNAME		:= udape

include $(MAKEINCDIR)/defs.gmk

OS		:= nextos_2.0
CSRCS		:= signal.c utsname.c
HSRCS		:= limits.h signal.h unistd.h sys/types.h sys/utsname.h \
		   udposix.h
MANIFEST	:= sys $(CSRCS) $(HSRCS) Makefile depend
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
include depend
