######################################################################
# 
# Imakefile -- Imake rules for the problem-ager utility.
# Dean Collins, Thu Jul 30 08:33:47 PDT 1992
#
######################################################################
#
# Modified: Dean Collins Thu Feb 24 15:23:48 1994
# Removed mutant use of xpts/util.c.  Changed file mode of installed
# program to be setuid.  Should be set up as "setuid support"
# to ensure proper access to the database.
#
# Modified: Dean Collins Thu Mar 10 20:52:51 1994
# Moved customization to ../Imake.config, which each Imakefile
# will #include.  This eliminates the need to set CC within
# each one.
#
######################################################################
#
# Copyright (c) 1995 Dean Collins.
# 
# Permission to use, copy, modify, and distribute this software and its
# documentation free of charge for any purpose is hereby granted without
# fee, 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 Dean Collins
# not be used in advertising or publicity pertaining to distribution of
# the software without specific, written prior permission.  Dean Collins
# makes no representations about the suitability of this software
# for any purpose.  It is provided "as is" without express or implied warranty.
# 
# DEAN COLLINS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
# IN NO EVENT SHALL DEAN COLLINS 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.
######################################################################

######################################################################
#  YOU SHOULDN'T NEED TO MODIFY ANYTHING IN THIS FILE.
#  All customization is now done in ../Imake.config.
######################################################################


#include "../Imake.config"


#----------------------------------------------------------------------

CCOPTIONS = -DBSD -UXPTS $(INCLUDES)

           SRCS = main.c scnrec.c dommselect.c pickprob.c doppselect.c \
			dopsselect.c exit.c viewprob.c dovpselect.c
           OBJS = main.c scnrec.o dommselect.o pickprob.o doppselect.o \
			dopsselect.o exit.o viewprob.o dovpselect.o
           HDRS = 
       PROGRAMS = cpts
       INCLUDES = -I.. -I../text -I../util -I../zdbm -I../neb_cld -I../config
LOCAL_LIBRARIES = -L../text -ltext $(CURSESLIB) -ltermcap \
		  -L../neb_cld -lcloud -L../config -lconfig \
		  -L../zdbm -lzdbm -L../util -lutil $(MISSING_LIBS)
        DEPLIBS = ../text/libtext.a ../neb_cld/libcloud.a ../config/libconfig.a \
		  ../zdbm/libzdbm.a ../util/libutil.a
   INSTPGMFLAGS = -m 4755 -o $(OWNER)



AllTarget($(PROGRAMS))
/*ComplexProgramTarget(ptsager)*/
NormalProgramTarget(cpts,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),/**/)
LintTarget()


DependTarget()
InstallProgram(cpts,$(BINDIR))

uninstall::
	$(RM) $(BINDIR)/$(PROGRAMS)
	@echo "uninstall in $(CURRENT_DIR) done"

