Whamcloud - gitweb
add debugfs command to print known features
[tools/e2fsprogs.git] / lib / e2p / Makefile.in
index 6dd3922..2c56ab5 100644 (file)
@@ -19,7 +19,7 @@ all:: e2p.pc
 OBJS=          feature.o fgetflags.o fsetflags.o fgetversion.o fsetversion.o \
                getflags.o getversion.o hashstr.o iod.o ls.o mntopts.o \
                parse_num.o pe.o pf.o ps.o setflags.o setversion.o uuid.o \
-               ostype.o 
+               ostype.o percent.o
 
 SRCS=          $(srcdir)/feature.c $(srcdir)/fgetflags.c \
                $(srcdir)/fsetflags.c $(srcdir)/fgetversion.c \
@@ -28,7 +28,7 @@ SRCS=         $(srcdir)/feature.c $(srcdir)/fgetflags.c \
                $(srcdir)/ls.c $(srcdir)/mntopts.c $(srcdir)/parse_num.c \
                $(srcdir)/pe.c $(srcdir)/pf.c $(srcdir)/ps.c \
                $(srcdir)/setflags.c $(srcdir)/setversion.c $(srcdir)/uuid.c \
-               $(srcdir)/ostype.c
+               $(srcdir)/ostype.c $(srcdir)/percent.c
 HFILES= e2p.h
 
 LIBRARY= libe2p
@@ -69,8 +69,14 @@ tst_ostype: $(srcdir)/ostype.c
        @$(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \
                $(srcdir)/ostype.c $(ALL_CFLAGS)
 
-check::        tst_ostype
+tst_feature: $(srcdir)/feature.c
+       @echo " LD $@"
+       @$(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_feature \
+               $(srcdir)/feature.c $(ALL_CFLAGS)
+
+check::        tst_ostype tst_feature
        ./tst_ostype
+       ./tst_feature
 
 installdirs::
        @echo " MKINSTALLDIRS $(libdir) $(includedir)/e2p"
@@ -96,7 +102,7 @@ uninstall::
 
 clean::
        $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/*
-       $(RM) -f ../libe2p.a ../libe2p_p.a tst_ostype
+       $(RM) -f ../libe2p.a ../libe2p_p.a tst_ostype tst_feature
 
 mostlyclean:: clean
 distclean:: clean