# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.11 1996/06/15 23:54:42 tom Exp $
################################################################################
# Copyright 1996 by Thomas E. Dickey <dickey@clark.net>                        #
# All Rights Reserved.                                                         #
#                                                                              #
# Permission to use, copy, modify, and distribute this software and its        #
# documentation for any purpose and without fee is hereby granted, provided    #
# that the above copyright notice appear in all copies and that both that      #
# copyright notice and this permission notice appear in supporting             #
# documentation, and that the name of the above listed copyright holder(s) not #
# be used in advertising or publicity pertaining to distribution of the        #
# software without specific, written prior permission. THE ABOVE LISTED        #
# COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,    #
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT #
# SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY SPECIAL,        #
# INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM   #
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE   #
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR    #
# PERFORMANCE OF THIS SOFTWARE.                                                #
################################################################################
# Makefile for panels source code.
#
# This makes the following:
#	libraries (normal/debug/profile/shared)
#
# The variable 'srcdir' refers to the source-distribution, and can be set with
# the configure script by "--srcdir=DIR".
#
# The rules are organized to produce the libraries for the configured models,

# turn off _all_ suffix rules; we'll generate our own
.SUFFIXES:

SHELL		= /bin/sh
THIS		= Makefile

MODEL		= normal
INSTALL_PREFIX	= @INSTALL_PREFIX
srcdir		= .
prefix		= /boot
exec_prefix	= ${prefix}
libdir		= ${exec_prefix}/lib
includedir	= ${prefix}/include
datadir		= ${prefix}/share

ticdir		= $(datadir)/terminfo

INSTALL		= /bin/install -c
INSTALL_DATA	= ${INSTALL} -m 644

AWK		= gawk
LN_S		= ln -s

CC		= mwcc -I- -I. -I/boot/apps/GeekGadgets/include -L/boot/apps/GeekGadgets/lib -opt global -nodup
CFLAGS		=  

CPPFLAGS	=  -I. -I../include -I$(includedir) \
		  -DHAVE_CONFIG_H -DTERMINFO=\"$(ticdir)\"

CCFLAGS		= $(CPPFLAGS) $(CFLAGS)

CFLAGS_NORMAL	= $(CCFLAGS)
CFLAGS_DEBUG	= $(CCFLAGS) -g -DTRACE
CFLAGS_PROFILE	= $(CCFLAGS) -pg
CFLAGS_SHARED	= $(CCFLAGS) unknown

CFLAGS_DEFAULT	= $(CFLAGS_NORMAL)

LINK		= $(CC)
LDFLAGS		=   

MK_SHARED_LIB	= echo unknown
REL_VERSION	= 1.9.9g
ABI_VERSION	= 3.4

AR		= mwld
ARFLAGS		= -xml -o
RANLIB		= true

LIBRARIES	=  ../lib/libpanel.a

LINT		= 
LINT_OPTS	= 
LINT_LIBS	= -lpanel -lncurses 

################################################################################
all ::	../include/panel.h $(LIBRARIES)

$(INSTALL_PREFIX)$(libdir) :
	$(srcdir)/../mkinstalldirs $@

# make a copy to simplify include-paths while still keeping panel's include
# file in this directory.
../include/panel.h : $(srcdir)/panel.h
	-rm -f $@
	cp $(srcdir)/panel.h $@

tags:
	ctags *.[ch]

TAGS:
	etags *.[ch]

clean ::
	-rm -f tags TAGS *~ ../include/panel.h

distclean :: clean
	-rm -f Makefile

mostlyclean :: clean

realclean :: distclean

###############################################################################
# The remainder of this file is automatically generated during configuration
###############################################################################

# generated by mk-0th.awk

C_SRC = \
	$(srcdir)/panel.c

# Producing llib-lpanel is time-consuming, so there's no direct-dependency for
# it in the lintlib rule.  We'll only remove in the cleanest setup.
clean ::
	rm -f llib-lpanel.*

realclean ::
	rm -f llib-lpanel

llib-lpanel : $(C_SRC)
	cproto -a -l -DLINT $(CPPFLAGS) $(C_SRC) >$@

lintlib :
	$(srcdir)/../misc/makellib panel $(CPPFLAGS)
lint :
	$(LINT) $(LINT_OPTS) $(CPPFLAGS) $(C_SRC) $(LINT_LIBS)

# generated by mk-1st.awk

NORMAL_OBJS = \
	../objects/panel.o

$(NORMAL_OBJS) : ../include/config.h

../lib/libpanel.a : $(NORMAL_OBJS)
	rm -f $@
	$(AR) $(ARFLAGS) $@ $?
	$(RANLIB) $@

install \
install.libs \
install.panel :: $(INSTALL_PREFIX)$(libdir) ../lib/libpanel.a
	@echo installing ../lib/libpanel.a as $(INSTALL_PREFIX)$(libdir)/libpanel.a 
	$(INSTALL_DATA) ../lib/libpanel.a $(INSTALL_PREFIX)$(libdir)/libpanel.a 
	$(RANLIB) $(INSTALL_PREFIX)$(libdir)/libpanel.a

clean ::
	rm -f ../lib/libpanel.a
	rm -f $(NORMAL_OBJS)

# generated by mk-2nd.awk


../objects/panel.o :	$(srcdir)/panel.c \
			$(srcdir)/panel.h
	cd ../objects; $(CC) $(CFLAGS_NORMAL) -c ../panel/panel.c

$(INSTALL_PREFIX)$(includedir) :
	$(srcdir)/../mkinstalldirs $@

install \
install.libs \
install.includes :: $(INSTALL_PREFIX)$(includedir)
	@ ../headers.sh $(INSTALL_DATA) $(INSTALL_PREFIX)$(includedir) $(srcdir) $(srcdir)/panel.h
