mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
32 lines
634 B
Makefile
32 lines
634 B
Makefile
|
|
||
|
OBJECTS = mkdosfs.o
|
||
|
|
||
|
all: mkdosfs
|
||
|
|
||
|
mkdosfs: $(OBJECTS)
|
||
|
$(CC) $(LDFLAGS) $^ -o $@
|
||
|
|
||
|
.c.o:
|
||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||
|
|
||
|
install: mkdosfs
|
||
|
mkdir -p $(SBINDIR) $(MANDIR)
|
||
|
install -m 755 mkdosfs $(SBINDIR)
|
||
|
install -m 644 mkdosfs.8 $(MANDIR)
|
||
|
rm -f $(SBINDIR)/mkfs.msdos
|
||
|
rm -f $(SBINDIR)/mkfs.vfat
|
||
|
ln -s mkdosfs $(SBINDIR)/mkfs.msdos
|
||
|
ln -s mkdosfs $(SBINDIR)/mkfs.vfat
|
||
|
rm -f $(MANDIR)/mkfs.msdos.8
|
||
|
ln -s mkdosfs.8 $(MANDIR)/mkfs.msdos.8
|
||
|
ln -s mkdosfs.8 $(MANDIR)/mkfs.vfat.8
|
||
|
|
||
|
clean :
|
||
|
echo *.o *.i *.s *~ \#*# core .#* .new*
|
||
|
rm -f *.o *.i *.s *~ \#*# core .#* .new*
|
||
|
|
||
|
distclean: clean
|
||
|
rm -f mkdosfs *.a *# *.orig *.rej TAGS
|
||
|
|
||
|
dep:
|