#
# Copyright (C) 2000  Matthew Donaldson <matthew@datadeliverance.com>
#                           Data Deliverance Pty Ltd
#			     Adelaide, Australia
#
# This file is released under the terms of the GNU General Public License
# Version 2 
# http://www.gnu.org/copyleft/gpl.html
#

ROOT=
CC=gcc
# If you are not running the 2.4 kernel, and/or don't have its include
# files in /usr/include, uncomment the line below and change the path to
# point to your 2.4 kernel includes.
#
# CFLAGS = -I../../../linux/include

FILES = chattr lsattr

all: ${FILES}

chattr: chattr.o do_dir.o
lsattr: lsattr.o do_dir.o

install: all
	for f in ${FILES}; do \
	  if [ -f $(ROOT)/usr/bin/$$f ]; then \
	    mv $(ROOT)/usr/bin/$$f $(ROOT)/usr/bin/$$f.ext2; \
	  fi \
        done
	install -m 755 -o 0 -g 0 ${FILES} $(ROOT)/usr/bin

clean:
	rm ${FILES} *.o
