• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for the second extended file system utility functions
2#
3# Copyright (C) 1993 Remy Card (card@masi.ibp.fr)
4#
5# This file can be redistributed under the terms of the GNU General
6# Public License
7
8srcdir = @srcdir@
9top_srcdir = @top_srcdir@
10VPATH = @srcdir@
11top_builddir = ../..
12my_dir = lib/e2p
13INSTALL = @INSTALL@
14
15@MCONFIG@
16
17all::	e2p.pc
18
19OBJS=		feature.o fgetflags.o fsetflags.o fgetversion.o fsetversion.o \
20		getflags.o getversion.o hashstr.o iod.o ls.o ljs.o mntopts.o \
21		parse_num.o pe.o pf.o ps.o setflags.o setversion.o uuid.o \
22		ostype.o percent.o crypto_mode.o fgetproject.o fsetproject.o
23
24SRCS=		$(srcdir)/feature.c $(srcdir)/fgetflags.c \
25		$(srcdir)/fsetflags.c $(srcdir)/fgetversion.c \
26		$(srcdir)/fsetversion.c $(srcdir)/getflags.c \
27		$(srcdir)/getversion.c $(srcdir)/hashstr.c $(srcdir)/iod.c \
28		$(srcdir)/ls.c $(srcdir)/ljs.c $(srcdir)/mntopts.c $(srcdir)/parse_num.c \
29		$(srcdir)/pe.c $(srcdir)/pf.c $(srcdir)/ps.c \
30		$(srcdir)/setflags.c $(srcdir)/setversion.c $(srcdir)/uuid.c \
31		$(srcdir)/ostype.c $(srcdir)/percent.c $(srcdir)/crypto_mode.c \
32		$(srcdir)/fgetproject.c $(srcdir)/fsetproject.c
33HFILES= e2p.h
34
35LIBRARY= libe2p
36LIBDIR= e2p
37
38ELF_VERSION = 2.3
39ELF_SO_VERSION = 2
40ELF_IMAGE = libe2p
41ELF_MYDIR = e2p
42ELF_INSTALL_DIR = $(root_libdir)
43ELF_OTHER_LIBS =
44
45BSDLIB_VERSION = 2.1
46BSDLIB_IMAGE = libe2p
47BSDLIB_MYDIR = e2p
48BSDLIB_INSTALL_DIR = $(root_libdir)
49
50@MAKEFILE_LIBRARY@
51@MAKEFILE_ELF@
52@MAKEFILE_BSDLIB@
53@MAKEFILE_PROFILE@
54
55.c.o:
56	$(E) "	CC $<"
57	$(Q) $(CC) $(ALL_CFLAGS_STLIB) -c $< -o $@
58	$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
59	$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
60@PROFILE_CMT@	$(Q) $(CC) $(ALL_CFLAGS_STLIB) -g -pg -o profiled/$*.o -c $<
61@ELF_CMT@	$(Q) $(CC) $(ALL_CFLAGS_SHLIB) -fPIC -shared -o elfshared/$*.o -c $<
62@BSDLIB_CMT@	$(Q) $(CC) $(ALL_CFLAGS_SHLIB) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
63
64e2p.pc: $(srcdir)/e2p.pc.in $(top_builddir)/config.status
65	$(E) "	CONFIG.STATUS $@"
66	$(Q) cd $(top_builddir); CONFIG_FILES=lib/e2p/e2p.pc ./config.status
67
68tst_ostype: $(srcdir)/ostype.c
69	$(E) "	LD $@"
70	$(Q) $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \
71		$(srcdir)/ostype.c $(ALL_CFLAGS) $(ALL_LDFLAGS)
72
73tst_feature: $(srcdir)/feature.c
74	$(E) "	LD $@"
75	$(Q) $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_feature \
76		$(srcdir)/feature.c $(ALL_CFLAGS) $(ALL_LDFLAGS)
77
78fullcheck check::	tst_ostype tst_feature
79	./tst_ostype
80	./tst_feature
81
82installdirs::
83	$(E) "	MKDIR_P $(libdir) $(includedir)/e2p"
84	$(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \
85		$(DESTDIR)$(includedir)/e2p $(DESTDIR)$(pkgconfigdir)
86
87install:: all installdirs
88	$(E) "	INSTALL_DATA $(libdir)/libe2p.a"
89	$(Q) $(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a
90	-$(Q) $(RANLIB) $(DESTDIR)$(libdir)/libe2p.a
91	$(Q) $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a
92	$(Q) set -e; for i in $(HFILES); do \
93	  echo "	INSTALL_DATA $(includedir)/e2p/$$i"; \
94	  $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/e2p/$$i; \
95	done
96	$(E) "	INSTALL_DATA $(pkgconfigdir)/e2p.pc"
97	$(Q) $(INSTALL_DATA) e2p.pc $(DESTDIR)$(pkgconfigdir)/e2p.pc
98
99uninstall::
100	$(RM) -f $(DESTDIR)$(libdir)/libe2p.a \
101		$(DESTDIR)$(pkgconfigdir)/e2p.pc
102	$(RM) -rf $(DESTDIR)$(includedir)/e2p
103
104clean::
105	$(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/*
106	$(RM) -f ../libe2p.a ../libe2p_p.a tst_ostype tst_feature e2p.pc
107
108mostlyclean:: clean
109distclean:: clean
110	$(RM) -f .depend Makefile e2p.pc \
111		$(srcdir)/TAGS $(srcdir)/Makefile.in.old
112
113$(OBJS): subdirs
114
115# +++ Dependency line eater +++
116#
117# Makefile dependencies follow.  This must be the last section in
118# the Makefile.in file
119#
120feature.o: $(srcdir)/feature.c $(top_builddir)/lib/config.h \
121 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
122 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
123 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
124 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
125 $(top_builddir)/lib/ext2fs/ext2_err.h \
126 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
127 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/kernel-jbd.h \
128 $(top_srcdir)/lib/ext2fs/jfs_compat.h $(top_srcdir)/lib/ext2fs/kernel-list.h
129fgetflags.o: $(srcdir)/fgetflags.c $(top_builddir)/lib/config.h \
130 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
131 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
132fsetflags.o: $(srcdir)/fsetflags.c $(top_builddir)/lib/config.h \
133 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
134 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
135fgetversion.o: $(srcdir)/fgetversion.c $(top_builddir)/lib/config.h \
136 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
137 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
138fsetversion.o: $(srcdir)/fsetversion.c $(top_builddir)/lib/config.h \
139 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
140 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
141getflags.o: $(srcdir)/getflags.c $(top_builddir)/lib/config.h \
142 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
143 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
144getversion.o: $(srcdir)/getversion.c $(top_builddir)/lib/config.h \
145 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
146 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
147hashstr.o: $(srcdir)/hashstr.c $(top_builddir)/lib/config.h \
148 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
149 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
150iod.o: $(srcdir)/iod.c $(top_builddir)/lib/config.h \
151 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
152 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
153ls.o: $(srcdir)/ls.c $(top_builddir)/lib/config.h \
154 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
155 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
156 $(top_srcdir)/lib/support/quotaio.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
157 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
158 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
159 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
160 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/support/dqblk_v2.h \
161 $(top_srcdir)/lib/support/quotaio_tree.h
162ljs.o: $(srcdir)/ljs.c $(top_builddir)/lib/config.h \
163 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
164 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
165 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
166 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
167 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
168 $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/e2p.h \
169 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
170 $(top_srcdir)/lib/ext2fs/kernel-list.h
171mntopts.o: $(srcdir)/mntopts.c $(top_builddir)/lib/config.h \
172 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
173 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
174parse_num.o: $(srcdir)/parse_num.c $(top_builddir)/lib/config.h \
175 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
176 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
177pe.o: $(srcdir)/pe.c $(top_builddir)/lib/config.h \
178 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
179 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
180pf.o: $(srcdir)/pf.c $(top_builddir)/lib/config.h \
181 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
182 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
183ps.o: $(srcdir)/ps.c $(top_builddir)/lib/config.h \
184 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
185 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
186setflags.o: $(srcdir)/setflags.c $(top_builddir)/lib/config.h \
187 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
188 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
189setversion.o: $(srcdir)/setversion.c $(top_builddir)/lib/config.h \
190 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
191 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
192uuid.o: $(srcdir)/uuid.c $(top_builddir)/lib/config.h \
193 $(top_builddir)/lib/dirpaths.h $(top_builddir)/lib/ext2fs/ext2_types.h \
194 $(srcdir)/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h
195ostype.o: $(srcdir)/ostype.c $(top_builddir)/lib/config.h \
196 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
197 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
198percent.o: $(srcdir)/percent.c $(top_builddir)/lib/config.h \
199 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
200 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
201crypto_mode.o: $(srcdir)/crypto_mode.c $(top_builddir)/lib/config.h \
202 $(top_builddir)/lib/dirpaths.h $(srcdir)/e2p.h \
203 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h
204fgetproject.o: $(srcdir)/fgetproject.c $(top_builddir)/lib/config.h \
205 $(top_builddir)/lib/dirpaths.h $(srcdir)/project.h \
206 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
207 $(srcdir)/e2p.h
208fsetproject.o: $(srcdir)/fsetproject.c $(top_builddir)/lib/config.h \
209 $(top_builddir)/lib/dirpaths.h $(srcdir)/project.h \
210 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
211 $(srcdir)/e2p.h
212