# RCSid: $Header: /export/sw/rcs/vcom5.0/sbeux/vcutils/getmjr/Makefile,v 1.0 92/08/20 11:26:37 root Exp $

#-----------------------------------------------------------------------------
# Makefile - for creation of special installation assistance programs
#
# Copyrighted as an unpublished work.
# (c) Copyright 1992 SBE, Inc. and by other vendors under license agreements.
# All Rights Reserved.
#-----------------------------------------------------------------------------
# RCS info:
# RCS revision: $Revision: 1.0 $
# Last changed on $Date: 92/08/20 11:26:37 $
# Changed by $Author: root $
#-----------------------------------------------------------------------------
# $Log:	Makefile,v $
# Revision 1.0  92/08/20  11:26:37  root
# 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
