# Makefile -- Makefile for util-linux Linux utilities
# Created: Sat Dec 26 20:09:40 1992
# Revised: Fri Oct  6 21:02:21 1995 by r.faith@ieee.org
# Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu)
#

include MCONFIG
#CFLAGS += -I/usr/include/ncurses

# Where to put man pages?

MAN8=	fdisk.8

# Where to put binaries?
# See the "install" rule for the links. . .

SBIN.FDISK=	fdisk

all: $(SBIN.FDISK)

# Rules for everything else

fdisk: fdisk.o fdisklabel.o llseek.o

install: all
	$(INSTALLDIR) $(SBINDIR) $(USRBINDIR) $(ETCDIR)
	$(INSTALLBIN) $(SBIN.FDISK) $(SBINDIR)
	$(INSTALLDIR) $(MAN8DIR)
	$(INSTALLMAN) $(MAN8) $(MAN8DIR)

.PHONY:	clean
clean:
	-rm -f *.o *~ core $(SBIN.FDISK)
