Home | History | Annotate | Download | only in support
      1 # Makefile for e2fsprog's internal support
      2 #
      3 
      4 srcdir = @srcdir@
      5 top_srcdir = @top_srcdir@
      6 VPATH = @srcdir@
      7 top_builddir = ../..
      8 my_dir = lib/support
      9 INSTALL = @INSTALL@
     10 
     11 @MCONFIG@
     12 
     13 all::
     14 
     15 OBJS=		mkquota.o \
     16 		plausible.o \
     17 		profile.o \
     18 		parse_qtype.o \
     19 		profile_helpers.o \
     20 		prof_err.o \
     21 		quotaio.o \
     22 		quotaio_v2.o \
     23 		quotaio_tree.o \
     24 		dict.o
     25 
     26 SRCS=		$(srcdir)/argv_parse.c \
     27 		$(srcdir)/mkquota.c \
     28 		$(srcdir)/parse_qtype.c \
     29 		$(srcdir)/plausible.c \
     30 		$(srcdir)/profile.c \
     31 		$(srcdir)/profile_helpers.c \
     32 		prof_err.c \
     33 		$(srcdir)/quotaio.c \
     34 		$(srcdir)/quotaio_tree.c \
     35 		$(srcdir)/quotaio_v2.c \
     36 		$(srcdir)/dict.c
     37 
     38 LIBRARY= libsupport
     39 LIBDIR= support
     40 
     41 @MAKEFILE_LIBRARY@
     42 @MAKEFILE_PROFILE@
     43 
     44 COMPILE_ET=	_ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et
     45 
     46 .c.o:
     47 	$(E) "	CC $<"
     48 	$(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@
     49 	$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
     50 	$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
     51 @PROFILE_CMT@	$(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
     52 
     53 installdirs::
     54 
     55 install:: all
     56 
     57 uninstall::
     58 
     59 prof_err.c prof_err.h: prof_err.et
     60 	$(E) "	COMPILE_ET prof_err.et"
     61 	$(Q) $(COMPILE_ET) $(srcdir)/prof_err.et
     62 
     63 test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
     64 		prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR)
     65 	$(E) "	LD $@"
     66 	$(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
     67 		profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
     68 		$(ALL_CFLAGS)
     69 
     70 clean::
     71 	$(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* \
     72 		../libsupport.a ../libsupport_p.a $(SMANPAGES) \
     73 		prof_err.c prof_err.h test_profile
     74 
     75 #check:: tst_uuid
     76 #	LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
     77 
     78 mostlyclean:: clean
     79 distclean:: clean
     80 	$(RM) -f .depend Makefile \
     81 		$(srcdir)/TAGS $(srcdir)/Makefile.in.old
     82 
     83 #
     84 # Hack to parallel makes recognize dependencies correctly.
     85 #
     86 ../../lib/libsupport.a: libsupport.a
     87 ../../lib/libsupport.so: image
     88 ../../lib/libsupport.dylib: image
     89 
     90 $(OBJS):
     91 
     92 # +++ Dependency line eater +++
     93 # 
     94 # Makefile dependencies follow.  This must be the last section in
     95 # the Makefile.in file
     96 #
     97 argv_parse.o: $(srcdir)/argv_parse.c $(top_builddir)/lib/config.h \
     98  $(top_builddir)/lib/dirpaths.h $(srcdir)/argv_parse.h
     99 mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \
    100  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
    101  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
    102  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
    103  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
    104  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    105  $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h \
    106  $(srcdir)/quotaio_tree.h $(srcdir)/quotaio_v2.h $(srcdir)/common.h \
    107  $(srcdir)/dict.h
    108 parse_qtype.o: $(srcdir)/parse_qtype.c $(top_builddir)/lib/config.h \
    109  $(top_builddir)/lib/dirpaths.h $(srcdir)/quotaio.h \
    110  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    111  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    112  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    113  $(top_builddir)/lib/ext2fs/ext2_err.h \
    114  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    115  $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
    116 plausible.o: $(srcdir)/plausible.c $(top_builddir)/lib/config.h \
    117  $(top_builddir)/lib/dirpaths.h $(srcdir)/plausible.h \
    118  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
    119  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    120  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    121  $(top_builddir)/lib/ext2fs/ext2_err.h \
    122  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    123  $(srcdir)/nls-enable.h
    124 profile.o: $(srcdir)/profile.c $(top_builddir)/lib/config.h \
    125  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
    126  $(srcdir)/profile.h prof_err.h
    127 profile_helpers.o: $(srcdir)/profile_helpers.c $(top_builddir)/lib/config.h \
    128  $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
    129  $(srcdir)/profile.h $(srcdir)/profile_helpers.h prof_err.h
    130 prof_err.o: prof_err.c
    131 quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \
    132  $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
    133  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \
    134  $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
    135  $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
    136  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
    137  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    138  $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
    139 quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \
    140  $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
    141  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \
    142  $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
    143  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    144  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    145  $(top_builddir)/lib/ext2fs/ext2_err.h \
    146  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    147  $(srcdir)/dqblk_v2.h
    148 quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \
    149  $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
    150  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \
    151  $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
    152  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
    153  $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
    154  $(top_builddir)/lib/ext2fs/ext2_err.h \
    155  $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
    156  $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
    157 dict.o: $(srcdir)/dict.c $(top_builddir)/lib/config.h \
    158  $(top_builddir)/lib/dirpaths.h $(srcdir)/dict.h
    159