# RCSid: $Header: /rcs/vcom/sbeux/vcutils/getmjr/Makefile,v 1.1 91/07/24 13:40:46 rld Rel $

#-----------------------------------------------------------------------------
# Makefile - for creation of special installation assistance programs
#
# Copyrighted as an unpublished work.
# (c) Copyright 1991 SBE, Inc. and by other vendors under license agreements.
# All rights reserved.
#-----------------------------------------------------------------------------
# RCS info:
# RCS revision: $Revision: 1.1 $
# Last changed on $Date: 91/07/24 13:40:46 $
# Changed by $Author: rld $
#-----------------------------------------------------------------------------
# $Log:	Makefile,v $
# Revision 1.1  91/07/24  13:40:46  rld
# Remove test DPARMS equate used during interim testing.
# 
# Revision 1.0  91/03/21  17:37:22  root
# Initial revision
# 
# Revision 1.0  91/03/05  17:00:33  rld
# Initial revision
# 
# Revision 1.0  91/03/05  16:47:25  rld
# Initial revision
# 
#-----------------------------------------------------------------------------
#

UTILS = getmjr
DEST  = /etc

############################################################################
#  Assign LOCALINC to be the path to the directory containing the SBE
#  distributed "sys" header files.  $(NLIB) is a library that may be
#  required by the 'nlist' system call and will be passed in from the
#  base Makefile if it is required by the vendor's OS.
############################################################################
LOCALINC = ../include

INC      = -I. -I$(LOCALINC)
CFLAGS   = -O $(INC) $(DPARMS)
LDFLAGS  = -s

CC= cc

all: $(UTILS)

getmjr: getmjr.o sbeRelease.o
	$(CC) $(LDFLAGS) -o getmjr getmjr.o sbeRelease.o $(NLIB)

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

getmjr.o: getmjr.c \
	Makefile \
	$(FRC)

sbeRelease.o: sbeRelease.c

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

install: all
	cp $(UTILS) $(DEST)

clean:
	rm -f *.o

clobber:
	rm -f $(UTILS) *.o

# End-of-file
