1*c2c66affSColin Finck
2*c2c66affSColin FinckOBJECTS = mkdosfs.o
3*c2c66affSColin Finck
4*c2c66affSColin Finckall: mkdosfs
5*c2c66affSColin Finck
6*c2c66affSColin Finckmkdosfs: $(OBJECTS)
7*c2c66affSColin Finck	$(CC) $(LDFLAGS) $^ -o $@
8*c2c66affSColin Finck
9*c2c66affSColin Finck.c.o:
10*c2c66affSColin Finck	$(CC) $(CFLAGS) -c $< -o $@
11*c2c66affSColin Finck
12*c2c66affSColin Finckinstall: mkdosfs
13*c2c66affSColin Finck	mkdir -p $(SBINDIR) $(MANDIR)
14*c2c66affSColin Finck	install -m 755 mkdosfs $(SBINDIR)
15*c2c66affSColin Finck	install -m 644 mkdosfs.8 $(MANDIR)
16*c2c66affSColin Finck	rm -f $(SBINDIR)/mkfs.msdos
17*c2c66affSColin Finck	rm -f $(SBINDIR)/mkfs.vfat
18*c2c66affSColin Finck	ln -s mkdosfs $(SBINDIR)/mkfs.msdos
19*c2c66affSColin Finck	ln -s mkdosfs $(SBINDIR)/mkfs.vfat
20*c2c66affSColin Finck	rm -f $(MANDIR)/mkfs.msdos.8
21*c2c66affSColin Finck	ln -s mkdosfs.8 $(MANDIR)/mkfs.msdos.8
22*c2c66affSColin Finck	ln -s mkdosfs.8 $(MANDIR)/mkfs.vfat.8
23*c2c66affSColin Finck
24*c2c66affSColin Finckclean :
25*c2c66affSColin Finck	echo *.o *.i *.s *~ \#*# core .#* .new*
26*c2c66affSColin Finck	rm -f *.o *.i *.s *~ \#*# core .#* .new*
27*c2c66affSColin Finck
28*c2c66affSColin Finckdistclean: clean
29*c2c66affSColin Finck	rm -f mkdosfs *.a *# *.orig *.rej TAGS
30*c2c66affSColin Finck
31*c2c66affSColin Finckdep:
32