diff options
author | Yang Lin <lin.a.yang@intel.com> | 2012-05-30 19:43:21 +0800 |
---|---|---|
committer | Yang Lin <lin.a.yang@intel.com> | 2012-05-30 19:43:21 +0800 |
commit | 8c82de96cd23e4823a2d29eb2de2295c0866b0c9 (patch) | |
tree | 4c255e87442eb17f710f1674e13303ff56be0c7a /Makefile.in | |
download | quota-8c82de96cd23e4823a2d29eb2de2295c0866b0c9.tar.gz quota-8c82de96cd23e4823a2d29eb2de2295c0866b0c9.tar.bz2 quota-8c82de96cd23e4823a2d29eb2de2295c0866b0c9.zip |
Initial commit to Gerrittizen/20120530.11.0_branch1.0
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..107f373 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,152 @@ +PROGS = quotacheck quotaon quota quot repquota warnquota quotastats xqmstats edquota setquota convertquota rpc.rquotad @QUOTA_NETLINK_PROG@ +SOURCES = bylabel.c common.c convertquota.c edquota.c pot.c quot.c quota.c quotacheck.c quotacheck_v1.c quotacheck_v2.c quotaio.c quotaio_rpc.c quotaio_v1.c quotaio_v2.c quotaio_tree.c quotaio_xfs.c quotaio_meta.c quotaio_generic.c quotaon.c quotaon_xfs.c quotaops.c quotastats.c quotasys.c repquota.c rquota_client.c rquota_server.c rquota_svc.c setquota.c warnquota.c xqmstats.c svc_socket.c +CFLAGS = @CFLAGS@ -D_GNU_SOURCE -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +CPPFLAGS = @CPPFLAGS@ +EXT2LIBS = @EXT2LIBS@ +NETLINKLIBS = @NETLINKLIBS@ +RPCSRC = rquota.h rquota_xdr.c rquota_clnt.c +LIBS = @LIBS@ +LDFLAGS = @LDFLAGS@ +LDAPLIBS = @LDAPLIBS@ + +INSTALL = @INSTALL@ +LN = ln -sf +ROOTDIR = +SUPER_OWNER = root +BIN_OWNER = bin +BIN_GROUP = bin +DEF_SUID_MODE = 4511 +DEF_BIN_MODE = 555 +DEF_SBIN_MODE = 555 +DEF_MAN_MODE = 444 +DEF_CONF_MODE = 644 +RPCGEN = rpcgen + +prefix = @prefix@ +bindir = $(prefix)/bin +sbindir = $(prefix)/sbin +root_sbindir = @ROOTSBIN@ +mandir = @mandir@ +includedir = $(prefix)/include +locale_dir = $(prefix)/share/locale +sysconfdir = @sysconfdir@ +datarootdir = @datarootdir@ + +RPCCLNTOBJS = rquota_xdr.o rquota_client.o rquota_clnt.o +IOOBJS = quotaio.o quotaio_v1.o quotaio_v2.o quotaio_tree.o quotaio_rpc.o quotaio_xfs.o quotaio_meta.o quotaio_generic.o +IOOBJS += $(RPCCLNTOBJS) +LIBOBJS = bylabel.o common.o quotasys.o pot.o $(IOOBJS) +LIBOBJS += @LIBMALLOC@ + +.PHONY: all clean clobber realclean pot mo inst_mo + +.%.d: %.c + set -e; $(CC) -MM -MG $(CPPFLAGS) $(CFLAGS) $< | \ + sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ + [ -s $@ ] || rm -f $@ + +all: $(PROGS) + +clean: + -rm -f core *.o .*.d + +clobber: clean + -rm -f $(PROGS) Makefile config.status config.cache config.log config.h + +realclean: clobber + -rm -f $(RPCSRC) po/*.mo + +pot: + xgettext -k_ -d pot *.c + +mo: po + for n in $(shell ls po/*.po); do \ + msgfmt -o po/`basename $$n .po`.mo $$n; \ + done + +inst_mo: mo + mkdir -p $(ROOTDIR)$(locale_dir) + for n in $(shell ls po/*.po | sed 's/\.po/\.mo/'); do \ + l=`basename $$n .mo`; \ + $(INSTALL) -m 755 -d $(ROOTDIR)$(locale_dir)/$$l; \ + $(INSTALL) -m 755 -d $(ROOTDIR)$(locale_dir)/$$l/LC_MESSAGES; \ + $(INSTALL) -m 644 $$n $(ROOTDIR)$(locale_dir)/$$l/LC_MESSAGES/quota.mo; \ + done + +install: all @INSTMO@ + -mkdir -p $(ROOTDIR)$(sbindir) + -mkdir -p $(ROOTDIR)$(bindir) + -mkdir -p $(ROOTDIR)$(root_sbindir) + -$(INSTALL) -m $(DEF_SBIN_MODE) \ + quotacheck quotaon $(ROOTDIR)$(root_sbindir) + -$(LN) quotaon $(ROOTDIR)$(root_sbindir)/quotaoff + -$(INSTALL) -m $(DEF_SBIN_MODE) \ + edquota repquota warnquota quotastats setquota quot xqmstats \ + convertquota $(ROOTDIR)$(sbindir) + -mkdir -p $(ROOTDIR)$(sysconfdir) + -$(INSTALL) -m $(DEF_CONF_MODE) warnquota.conf $(ROOTDIR)$(sysconfdir) + -$(INSTALL) -m $(DEF_CONF_MODE) quotatab $(ROOTDIR)$(sysconfdir) + -$(INSTALL) -m $(DEF_CONF_MODE) quotagrpadmins $(ROOTDIR)$(sysconfdir) + -mkdir -p $(ROOTDIR)$(mandir)/man1 + -mkdir -p $(ROOTDIR)$(mandir)/man2 + -mkdir -p $(ROOTDIR)$(mandir)/man3 + -mkdir -p $(ROOTDIR)$(mandir)/man8 + -$(INSTALL) -m 755 -d $(ROOTDIR)$(includedir)/rpcsvc + -$(INSTALL) -m 644 rquota.h rquota.x $(ROOTDIR)$(includedir)/rpcsvc + -$(INSTALL) -m $(DEF_SBIN_MODE) quota $(ROOTDIR)$(bindir) + -$(INSTALL) -m $(DEF_SBIN_MODE) rpc.rquotad $(ROOTDIR)$(sbindir) +ifneq ($(NETLINKLIBS),) + -$(INSTALL) -m $(DEF_SBIN_MODE) quota_nld $(ROOTDIR)$(sbindir) +endif + -$(INSTALL) -m $(DEF_MAN_MODE) *.1 $(ROOTDIR)$(mandir)/man1 + -$(INSTALL) -m $(DEF_MAN_MODE) *.2 $(ROOTDIR)$(mandir)/man2 + -$(INSTALL) -m $(DEF_MAN_MODE) *.3 $(ROOTDIR)$(mandir)/man3 + -$(INSTALL) -m $(DEF_MAN_MODE) *.8 $(ROOTDIR)$(mandir)/man8 + +quotaon: quotaon.o quotaon_xfs.o $(LIBOBJS) + +quotacheck: quotacheck.o quotacheck_v1.o quotacheck_v2.o quotaops.o $(LIBOBJS) + $(CC) $(LDFLAGS) -o $@ $^ $(EXT2LIBS) + +quota: quota.o quotaops.o $(LIBOBJS) + +quot: quot.o $(LIBOBJS) + +repquota: repquota.o $(LIBOBJS) + +warnquota: warnquota.o $(LIBOBJS) + $(CC) $(LDFLAGS) -o $@ $^ $(LDAPLIBS) + +quotastats: quotastats.o common.o pot.o + +xqmstats: xqmstats.o common.o pot.o + +edquota: edquota.o quotaops.o $(LIBOBJS) + +setquota: setquota.o quotaops.o $(LIBOBJS) + +convertquota: convertquota.o $(LIBOBJS) + +rpc.rquotad: rquota_server.o rquota_svc.o svc_socket.o $(LIBOBJS) + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + +ifneq ($(NETLINKLIBS),) +quota_nld: quota_nld.o $(LIBOBJS) + $(CC) $(LDFLAGS) -o $@ $^ $(NETLINKLIBS) +endif + +pot.o: pot.c pot.h + +rquota.h: rquota.x + $(RPCGEN) -h -o $@ $< + +rquota_xdr.c: rquota.x + $(RPCGEN) -c -o $@ $< + +rquota_xdr.o: rquota_xdr.c rquota.h + $(CC) $(CFLAGS) -Wno-unused -c $< + +rquota_clnt.c: rquota.x + $(RPCGEN) -l -o $@ $< + +-include $(SOURCES:%.c=.%.d) |