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