#	$Id: Makefile.in,v 1.2 1998/02/13 02:07:53 assar Exp $

SHELL		= /bin/sh

srcdir		= @srcdir@
VPATH		= @srcdir@

CC		= @CC@
RM		= rm

INSTALL		= @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@
MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs

prefix 		= @prefix@
bindir		= @bindir@

DEFS		= @DEFS@ -DDEBUG
CFLAGS		= @CFLAGS@

MOUNT_PROG	= mount_xfs
UMOUNT_PROG 	= umount_xfs

MOUNT_SRCS	= mount_xfs.c
MOUNT_OBJS	= $(MOUNT_SRCS:.c=.o)

UMOUNT_SRCS	= umount_xfs.c
UMOUNT_OBJS	= $(UMOUNT_SRCS:.c=.o)

PROGS		= $(MOUNT_PROG) $(UMOUNT_PROG)

all:	$(PROGS)

.c.o:
	$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<

$(MOUNT_PROG): $(MOUNT_OBJS)
	$(CC) -o $(MOUNT_PROG) $(MOUNT_OBJS)

$(UMOUNT_PROG): $(UMOUNT_OBJS)
	$(CC) -o $(UMOUNT_PROG) $(UMOUNT_OBJS)

clean:
	$(RM) -f $(PROGS) *.o *~

install: all
	$(MKINSTALLDIRS) $(bindir)
	for i in $(PROGS); do \
	  $(INSTALL_PROGRAM) $$i $(bindir)/$$i; \
	done

TAGS: $(MOUNT_SRCS) $(UMOUNT_SRCS)
	etags $(MOUNT_SRCS) $(UMOUNT_SRCS)
