# $Id: Makefile,v 1.9 1991/07/09 18:28:45 steve Exp $
#
# Makefile for the SunOS 4.1.1 version of the Unidata POSIX programming
# environment.

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

LIBNAME		:= udape

include $(MAKEINCDIR)/defs.gmk

OS		:= sunos_4.1.1
CSRCS		:= string.c
HSRCS		:= float.h limits.h patchlevel.h search.h stdarg.h stddef.h \
		    stdlib.h string.h udposix.h
MANIFEST	:= $(CSRCS) $(HSRCS) Makefile depend $(pic)
INCLUDES	:= -I.
LIBOBJS		:= $(subst .c,.o,$(CSRCS))

all:		$(LIBOBJS)

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

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
