diff options
Diffstat (limited to 'mount/Makefile')
-rw-r--r-- | mount/Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mount/Makefile b/mount/Makefile index 6f72413db..18e30cde6 100644 --- a/mount/Makefile +++ b/mount/Makefile @@ -1,15 +1,13 @@ include ../make_include include ../MCONFIG -CFLAGS = -I$(LIB) $(OPT) -WARNFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes DEFINES = -DHAVE_NFS RPCSVCDIR = rpcsvc RPC_CFLAGS = -Wno-unused RPCGEN = rpcgen -COMPILE = $(CC) -c $(WARNFLAGS) $(CFLAGS) $(DEFINES) +COMPILE = $(CC) -c $(CFLAGS) $(DEFINES) LINK = $(CC) $(LDFLAGS) SUID_PROGS = mount umount @@ -24,6 +22,8 @@ endif PROGS = $(SUID_PROGS) $(NOSUID_PROGS) +MAYBE = pivot_root swapoff + # comment these out if you are not compiling in NFS support NFS_OBJS = nfsmount.o nfsmount_xdr.o nfsmount_clnt.o # uncomment this if you don't have libc-4.2 but do have the rpclib @@ -59,8 +59,7 @@ swapon: swapon.o version.o $(LINK) $^ -o $@ losetup.o: lomount.c - $(COMPILE) -DMAIN lomount.c - mv lomount.o losetup.o + $(COMPILE) -DMAIN lomount.c -o $@ losetup: losetup.o $(LINK) $^ -o $@ @@ -117,7 +116,7 @@ loop.h: sh mk_loop_h clean: - rm -f a.out core *~ *.o swapargs.h $(PROGS) swapoff + rm -f a.out core *~ *.o swapargs.h $(PROGS) $(MAYBE) rm -f loop.h nfs_mountversion.h clobber distclean realclean: clean |