# $Id: Makefile,v 1.1 1991/11/18 22:33:26 steve Exp $
#
# Makefile for the News OS 4.0 version of the Unidata POSIX programming
# environment.

ifndef MAKEINCDIR
  MAKEINCDIR	:= /sony6/udape
endif

LIBNAME		:= udape

include $(MAKEINCDIR)/defs.gmk

OS		:= newsos_4.0
CSRCS		:= utsname.c string.c signal.c strftime.c strstr.c
HSRCS		:= limits.h string.h signal.h unistd.h sys/utsname.h \
		   udposix.h stddef.h stdlib.h
MANIFEST	:= sys $(CSRCS) $(HSRCS) Makefile depend
INCLUDES	:= -I.
LIBOBJS		:= $(subst .c,.o,$(CSRCS))

all:		$(LIBOBJS)

debug:		$(debug)/$(LIBOBJS)

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