#
# COPYRIGHT NOTICE
# Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
# ALL RIGHTS RESERVED (OSF/1).  See /usr/include/COPYRIGHT.OSF1 .
#
#
# HISTORY
# $Log:	Makefile,v $
# Revision 78.2  95/12/19  17:50:51  17:50:51  ssa (RCS Manager)
# Author: shenba@build.cup.hp.com
# Added -D__STDC_EXT__ flag to compile in extended ANSI. Quick fix until DAvis compiler gets fixed
# 
# Revision 78.1  95/12/05  16:08:41  16:08:41  ssa (RCS Manager)
# Author: krenekj@hpucsb2.cup.hp.com
# modifications for large files
# 
# Revision 72.3  94/03/30  11:17:20  11:17:20  ssa (RCS manager)
# Author: echu@hpucsb2.cup.hp.com
# Remove hpux_rel.o.  It is not needed for single file source.
# 
# Revision 72.2  94/03/01  10:29:51  10:29:51  ssa (RCS Manager)
# Author: echu@hpucsb2.cup.hp.com
# Makefile for HPUX.
# 
# 
# Revision 3.0.2.2  1993/09/15  04:00:50  alan
# 	replaced copyright marker with copyright text
# 	[1993/09/09  01:50:26  alan]
#
# Revision 3.0  1993/01/01  02:35:00  ede
# 	Initial revision for OSF/1 R1.3
# 
# Revision 1.9  1991/05/14  12:53:54  devrcs
# 	Changes for Reno make
# 	[91/04/22  02:12:02  damon]
# 
# Revision 1.8  90/10/07  16:59:21  devrcs
# 	Added EndLog Marker.
# 	[90/09/28  15:15:56  gm]
# 
# Revision 1.7  90/08/09  14:04:09  devrcs
# 	Cleanup for export, install and post-freeze.
# 	[90/08/05  13:25:34  gm]
# 
# $EndLog$

PROGRAM			= paste
MSGHDRS			= $(PROGRAM)_msg.h
MSGFILES		= $(PROGRAM).msg
CATFILE			= $(PROGRAM).cat
GENCAT			= gencat

ILIST			= paste
IDIR			= /usr/bin/

HFILES			= paste_msg.h ${MSGHDRS}
OFILES			= paste.o 

FLAGS			= -Ae -D__STDC_EXT__ -D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64
LIBS=
#MK_HDR=/Build/9_0/usr/local/bin/xmkcatdefs

default: $(PROGRAM)

# .include <${RULES_MK}>
$(PROGRAM):	$(HFILES) $(OFILES)
	$(CC) $(FLAGS) $(CFLAGS) -o $@ $(OFILES) $(LIBS)
	$(GENCAT) $(CATFILE) $(MSGFILES)

#
# Next rule not normally needed since paste_msg.h is checked into shared source.
# However, if we get new updates form OSF with changes to paste.msg, then this
# rule needs to be applied once to get a new paste_msg.h and check it into
# shred source.
#
# $(MSGHDRS):
# 	$(MK_HDR) $(PROGRAM) $(PROGRAM).msg > $(PROGRAM)_msg

.c.o:
	$(CC) -c $(FLAGS) $(CFLAGS) $<

clean:
	rm -f $(OFILES)

clobber: clean
	rm -f $(PROGRAM)
