###########################################################################
#
# The major targets are:
#	clean   : Cleans object files.
#	dep     : Builds a new dependency file.
#	install : Makes all utilities and installs them under /usr/sbin
#
# To make sure about correct making, use the targets as the order they are
# written above.
#
# Copyright (c) 1997 by Procom Technology,Inc.
#
# This program can be redistributed or modified under the terms of the 
# GNU General Public License as published by the Free Software Foundation.
# This program is distributed without any warranty or implied warranty
# of merchantability or fitness for a particular purpose.
#
# See the GNU General Public License for more details.
#
###########################################################################

 

HPATH = ../include
AWK = gawk
CC = gcc

.EXPORT_ALL_VARIABLES:
TOPDIR  := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)


all : nbadmin nbstatus

nbadmin : nbadmin.o
	$(CC) nbadmin.o -o nbadmin

nbstatus : nbstatus.o
	$(CC) nbstatus.o -o nbstatus

nbadmin.o : nbadmin.c

nbstatus.o : nbstatus.c

clean :
	rm -f *.o

dep :
	$(AWK) -f /usr/src/linux/scripts/depend.awk *.c > .tmpdepend
	mv .tmpdepend .depend

.c.o :
	$(CC) -I $(HPATH) -c $<

#include .depend
