]>
Commit | Line | Data |
---|---|---|
f239fefc AK |
1 | # Makefile for the QUOTA library |
2 | # | |
3 | ||
4 | srcdir = @srcdir@ | |
5 | top_srcdir = @top_srcdir@ | |
6 | VPATH = @srcdir@ | |
7 | top_builddir = ../.. | |
8 | my_dir = lib/quota | |
9 | INSTALL = @INSTALL@ | |
10 | ||
11 | @MCONFIG@ | |
12 | ||
13 | all:: | |
14 | ||
a86d55da | 15 | OBJS= mkquota.o quotaio.o quotaio_v2.o quotaio_tree.o dict.o |
f239fefc | 16 | |
a86d55da | 17 | SRCS= $(srcdir)/mkquota.c \ |
f239fefc AK |
18 | $(srcdir)/quotaio.c \ |
19 | $(srcdir)/quotaio_tree.c \ | |
20 | $(srcdir)/quotaio_v2.c \ | |
21 | $(srcdir)/../../e2fsck/dict.c | |
22 | ||
23 | LIBRARY= libquota | |
24 | LIBDIR= quota | |
25 | ||
8f9d708f TT |
26 | #ELF_VERSION = 1.0 |
27 | #ELF_SO_VERSION = 1 | |
28 | #ELF_IMAGE = libquota | |
29 | #ELF_MYDIR = quota | |
30 | #ELF_INSTALL_DIR = $(root_libdir) | |
d5aa6a82 | 31 | #ELF_OTHER_LIBS = -lext2fs |
8f9d708f TT |
32 | |
33 | #BSDLIB_VERSION = 1.0 | |
34 | #BSDLIB_IMAGE = libquota | |
35 | #BSDLIB_MYDIR = quota | |
36 | #BSDLIB_INSTALL_DIR = $(root_libdir) | |
f239fefc AK |
37 | |
38 | @MAKEFILE_LIBRARY@ | |
8f9d708f TT |
39 | #MAKEFILE_ELF# |
40 | #MAKEFILE_BSDLIB# | |
f239fefc | 41 | @MAKEFILE_PROFILE@ |
f239fefc AK |
42 | |
43 | .c.o: | |
44 | $(E) " CC $<" | |
45 | $(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@ | |
832cb612 | 46 | $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< |
a46300fe | 47 | $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $< |
f239fefc | 48 | @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< |
8f9d708f TT |
49 | #ELF_CMT# $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< |
50 | #BSDLIB_CMT# $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $< | |
f239fefc | 51 | |
f239fefc AK |
52 | dict.o: |
53 | $(E) " CC $<" | |
54 | $(Q) $(CC) -c $(ALL_CFLAGS) $(top_srcdir)/e2fsck/dict.c -o $@ | |
55 | @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/dict.o -c \ | |
56 | @PROFILE_CMT@ $(top_srcdir)/e2fsck/dict.c | |
8f9d708f TT |
57 | #ELF_CMT# $(Q) $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c \ |
58 | #ELF_CMT# $(top_srcdir)/e2fsck/dict.c | |
59 | #BSDLIB_CMT# $(Q) $(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c \ | |
60 | #BSDLIB_CMT# $(top_srcdir)/e2fsck/dict.c | |
f239fefc AK |
61 | |
62 | installdirs:: | |
d37178bb TT |
63 | |
64 | install:: all | |
f239fefc AK |
65 | |
66 | uninstall:: | |
f239fefc AK |
67 | |
68 | clean:: | |
2f8d0251 | 69 | $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* |
f239fefc AK |
70 | $(RM) -f ../libquota.a ../libquota_p.a $(SMANPAGES) |
71 | ||
72 | #check:: tst_uuid | |
73 | # LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid | |
74 | ||
75 | mostlyclean:: clean | |
76 | distclean:: clean | |
d37178bb | 77 | $(RM) -f .depend Makefile \ |
f239fefc AK |
78 | $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
79 | ||
80 | # | |
81 | # Hack to parallel makes recognize dependencies correctly. | |
82 | # | |
83 | ../../lib/libquota.a: libquota.a | |
84 | ../../lib/libquota.so: image | |
85 | ../../lib/libquota.dylib: image | |
86 | ||
87 | $(OBJS): | |
88 | ||
89 | # +++ Dependency line eater +++ | |
90 | # | |
91 | # Makefile dependencies follow. This must be the last section in | |
92 | # the Makefile.in file | |
93 | # | |
d1154eb4 TT |
94 | mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \ |
95 | $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ | |
f239fefc AK |
96 | $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
97 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ | |
98 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
99 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
2ae58b6d | 100 | $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h \ |
d37178bb TT |
101 | $(srcdir)/quotaio_tree.h $(top_srcdir)/lib/../e2fsck/dict.h \ |
102 | $(srcdir)/quotaio_v2.h $(srcdir)/common.h | |
d1154eb4 | 103 | quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \ |
c714d024 TT |
104 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
105 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \ | |
d37178bb | 106 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \ |
c714d024 TT |
107 | $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \ |
108 | $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
f239fefc | 109 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
d37178bb TT |
110 | $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \ |
111 | $(top_srcdir)/lib/../e2fsck/dict.h | |
d1154eb4 | 112 | quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \ |
c714d024 TT |
113 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
114 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \ | |
d37178bb TT |
115 | $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
116 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
c714d024 TT |
117 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
118 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
f239fefc | 119 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
d37178bb | 120 | $(srcdir)/dqblk_v2.h $(top_srcdir)/lib/../e2fsck/dict.h |
d1154eb4 | 121 | quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \ |
c714d024 TT |
122 | $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \ |
123 | $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \ | |
d37178bb TT |
124 | $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \ |
125 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ | |
c714d024 TT |
126 | $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ |
127 | $(top_builddir)/lib/ext2fs/ext2_err.h \ | |
2ae58b6d | 128 | $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \ |
d37178bb TT |
129 | $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h \ |
130 | $(top_srcdir)/lib/../e2fsck/dict.h | |
d1154eb4 TT |
131 | dict.o: $(srcdir)/../../e2fsck/dict.c $(top_builddir)/lib/config.h \ |
132 | $(top_builddir)/lib/dirpaths.h $(srcdir)/../../e2fsck/dict.h |