#
# 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  96/01/10  14:39:32  14:39:32  ssa (RCS Manager)
# Author: shenba@build.cup.hp.com
# Added -D__STDC_EXT__ to use +Ae option
# 
# Revision 78.1  96/01/05  10:07:28  10:07:28  ssa (RCS Manager)
# Author: krenekj@hpucsb2.cup.hp.com
# added flags to build sort for large files program
# 
# Revision 72.3  94/02/10  15:17:34  15:17:34  ssa (RCS manager)
# Author: lwl@build.cup.hp.com
# Removed rcsid from sort.c.
# Added additional rule and hpux_rel.c file to Makefile.
# 
# Revision 72.2  94/02/01  02:14:17  02:14:17  ssa (RCS Manager)
# Author: waran@viper.india.hp.com
# 4-byte EUC changes for 10.0
# 
# Revision 72.1  93/11/15  09:59:52  09:59:52  ssa (RCS Manager)
# Author: lclark@hpucsb2.cup.hp.com
# Initial revision
# 
# Revision 3.0.2.2  1993/09/15  04:16:15  alan
# 	replaced copyright marker with copyright text
# 	[1993/09/09  02:13:40  alan]
#
# Revision 3.0  1993/01/01  02:37:14  ede
# 	Initial revision for OSF/1 R1.3
# 
# Revision 1.4  1991/05/14  12:54:21  devrcs
# 	Changes for Reno make
# 	[91/04/22  02:12:23  damon]
# 
# Revision 1.3  90/10/07  17:03:31  devrcs
# 	Added EndLog Marker.
# 	[90/09/28  15:24:11  gm]
# 
# Revision 1.2  90/09/23  16:28:52  devrcs
# 	Moved components into their own subdirectories.
# 	[90/09/22  15:42:51  gm]
# 
# $EndLog$

PROGRAM			= sort
MSGHDRS			= sort_msg.h
GENCAT			= gencat
CATFILE 		= sort.cat
MSGFILES		= $(PROGRAM).msg

ILIST			= sort
IDIR			= /usr/bin/

HFILES			= ${MSGHDRS}
OBJECTS			= $(PROGRAM).o hpux_rel.o

LIBS=
FLAGS			= -Ae -D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_EXT__

default: $(PROGRAM)

$(PROGRAM):	$(HFILES) $(OBJECTS)
	$(CC) $(CFLAGS) $(FLAGS) -o $@ $(OBJECTS) $(LIBS)
	$(GENCAT) $(CATFILE) $(MSGFILES)

clean:
	rm *.o sort.cat

clobber: clean
	rm sort

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