1# Makefile for the UUID library
2#
3
4srcdir = .
5top_srcdir = ../..
6
7top_builddir = ../..
8my_dir = lib/uuid
9INSTALL = /usr/bin/install -c
10
11# Beginning of file MCONFIG
12
13all::
14
15check::
16
17SHELL = /bin/sh
18
19COMPRESS_EXT = gz bz2 bz Z
20
21prefix = /usr
22root_prefix = 
23exec_prefix = ${prefix}
24root_bindir = ${root_prefix}/bin
25root_sbindir = ${root_prefix}/sbin
26root_libdir = ${root_prefix}/lib
27datarootdir = ${prefix}/share
28bindir = ${exec_prefix}/bin
29sbindir = ${exec_prefix}/sbin
30libdir = ${exec_prefix}/lib
31datadir= ${datarootdir}
32localedir = $(datadir)/locale
33root_sysconfdir= ${root_prefix}/etc
34includedir = ${prefix}/include
35mandir = ${datarootdir}/man
36man1dir = $(mandir)/man1
37man3dir = $(mandir)/man3
38man5dir = $(mandir)/man5
39man8dir = $(mandir)/man8
40infodir = ${datarootdir}/info
41datadir = ${datarootdir}
42
43
44
45CROSS_COMPILER = mipsel-linux-
46CC = $(CROSS_COMPILER)gcc
47BUILD_CC = $(CC)
48DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_HTREE=1 -DENABLE_SWAPFS=1 -DTLS= -DUSE_UUIDD=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"0.14.1\" -DHAVE_LONG_LONG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_W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OM=1 -DHAVE_JRAND48=1 -DHAVE_FCHOWN=1 -DHAVE_MALLINFO=1 -DHAVE_FDATASYNC=1 -DHAVE_STRNLEN=1 -DHAVE_STRPTIME=1 -DHAVE_STRDUP=1 -DHAVE_SYSCONF=1 -DHAVE_PATHCONF=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_MEMALIGN=1 -DHAVE_VALLOC=1 -DHAVE___SECURE_GETENV=1 -DHAVE_PRCTL=1 -DHAVE_MMAP=1 -DHAVE_UTIME=1 -DHAVE_SETRESUID=1 -DHAVE_SETRESGID=1 -DHAVE_DLOPEN=1 -DHAVE_EXT2_IOCTLS=1
49CFLAGS = -g -O2
50CPPFLAGS =  -I$(top_builddir)/lib -I$(top_srcdir)/lib 
51INTL_FLAGS = 
52ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
53	$(INTL_FLAGS) $(LINUX_INCLUDE) 
54LDFLAGS = 
55ALL_LDFLAGS = $(LDFLAGS)
56BUILD_CFLAGS = -g -O2
57BUILD_LDFLAGS = 
58RM = /bin/rm
59LN = /bin/ln
60LN_S = ln -s
61MV = /bin/mv
62CP = /bin/cp
63CHMOD = /bin/chmod
64AR = $(CROSS_COMPILER)ar
65AWK = gawk
66SED = /bin/sed
67PERL = /usr/bin/perl
68RANLIB = $(CROSS_COMPILER)ranlib
69STRIP = $(CROSS_COMPILER)strip
70LD = $(PURE) $(CC)
71ARUPD = $(AR) r
72ARGEN = $(AR) rc
73LDCONFIG = /sbin/ldconfig
74INSTALL_PROGRAM = ${INSTALL}
75INSTALL_DATA = ${INSTALL} -m 644
76INSTALL_SCRIPT = ${INSTALL}
77MKINSTALLDIRS = $(top_builddir)/config/mkinstalldirs
78
79#
80# Library definitions
81#
82DEVMAPPER_LIBS = 
83STATIC_DEVMAPPER_LIBS = 
84
85LIB = $(top_builddir)/lib
86LIBSS = $(LIB)/libss.a
87LIBCOM_ERR = $(LIB)/libcom_err.a
88LIBE2P = $(LIB)/libe2p.a
89LIBEXT2FS = $(LIB)/libext2fs.a
90LIBUUID = $(LIB)/libuuid.a 
91LIBBLKID = $(LIB)/libblkid.a 
92LIBINTL = 
93DEPLIBUUID = $(LIB)/libuuid.a
94DEPLIBBLKID = $(LIB)/libblkid.a
95
96STATIC_LIBSS = $(LIB)/libss.a
97STATIC_LIBCOM_ERR = $(LIB)/libcom_err.a
98STATIC_LIBE2P = $(LIB)/libe2p.a
99STATIC_LIBEXT2FS = $(LIB)/libext2fs.a
100STATIC_LIBUUID = $(LIB)/libuuid.a  
101STATIC_LIBBLKID = $(LIB)/libblkid.a $(STATIC_DEVMAPPER_LIBS)
102DEPSTATIC_LIBUUID = $(LIB)/libuuid.a
103DEPSTATIC_LIBBLKID = $(LIB)/libblkid.a
104
105PROFILED_LIBSS = $(LIB)/libss
106PROFILED_LIBCOM_ERR = $(LIB)/libcom_err
107PROFILED_LIBE2P = $(LIB)/libe2p
108PROFILED_LIBEXT2FS = $(LIB)/libext2fs
109PROFILED_LIBUUID = $(LIB)/libuuid  
110PROFILED_LIBBLKID = $(LIB)/libblkid
111DEPPROFILED_LIBUUID = $(LIB)/libuuid
112DEPPROFILED_LIBBLKID = $(LIB)/libblkid
113
114# An include directive pointing to a directory holding enough linux-like
115# include files to satisfy some programs here
116LINUX_INCLUDE=
117
118#
119# A fast substitution command for fixing up man pages, shell scripts, etc.
120#
121SUBST_CONF=$(top_builddir)/util/subst.conf
122SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
123SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
124DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
125
126$(top_builddir)/util/subst:
127	cd $(top_builddir)/util ; $(MAKE) subst
128
129#
130# Warning flags
131#
132# Run make gcc-wall to do a build with warning messages.
133#
134#
135WFLAGS=		-std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
136			-pedantic $(WFLAGS_EXTRA) \
137			-Wall -W -Wwrite-strings -Wpointer-arith \
138			-Wcast-qual -Wcast-align -Wno-variadic-macros \
139			-Wstrict-prototypes -Wmissing-prototypes \
140			-Wformat-security  -Wformat-nonliteral \
141			-Wmissing-format-attribute -O2 -Wstrict-aliasing \
142			-Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
143			-UENABLE_NLS
144
145gcc-wall-new:
146	(make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
147
148gcc-wall:
149	make clean > /dev/null
150	make gcc-wall-new
151
152#
153# Installation user and groups
154#
155BINGRP=		bin
156BINOWN=		bin
157BINMODE=	555
158INCGRP=		bin
159INCOWN=		bin
160INCMODE=	444
161LIBOWN=		bin
162LIBGRP=		bin
163LIBMODE=	444
164MANGRP=		bin
165MANOWN=		bin
166MANMODE=	444
167
168#
169# Autoconf magic...
170#
171
172DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib  \
173	$(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
174	$(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
175	$(top_srcdir)/lib/Makefile.profile
176
177$(top_builddir)/config.status: $(top_srcdir)/configure
178	cd $(top_builddir); ./config.status --recheck
179
180$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
181	cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
182
183$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
184		$(top_builddir)/config.status
185	cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
186
187$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
188		$(top_builddir)/config.status
189	cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
190
191Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
192		$(DEP_MAKEFILE) $(top_builddir)/config.status
193	cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
194
195#$(top_srcdir)/configure: $(top_srcdir)/configure.in
196#	cd $(top_srcdir) && autoconf
197
198#
199# Make depend magic...
200#
201
202.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
203	if test -n "$(SRCS)" ; then \
204		$(CC) -M $(ALL_CFLAGS) $(SRCS) | \
205			$(SED) -f $(top_srcdir)/depfix.sed \
206			    -e 's; $(srcdir)/; $$(srcdir)/;g' \
207			    -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
208			    -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
209			    -e 's; \./; ;g' \
210			    -e '/^#/d' \
211			    -e '/^ *\\$$/d' | \
212			$(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
213	else :; fi
214
215depend:: .depend
216	if test -n "$(SRCS)" ; then \
217		sed -e '/^# +++ Dependency line eater +++/,$$d' \
218			< $(srcdir)/Makefile.in | cat - .depend \
219			> $(srcdir)/Makefile.in.new; \
220	if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
221		$(RM) $(srcdir)/Makefile.in.new ; \
222	else \
223		$(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
224		$(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
225	fi ; else :; fi
226
227# End of file MCONFIG
228
229all:: 
230
231SMANPAGES=	uuid.3 uuid_clear.3 uuid_compare.3 uuid_copy.3 \
232		uuid_generate.3 uuid_is_null.3 uuid_parse.3 \
233		uuid_time.3 uuid_unparse.3
234
235OBJS=		clear.o \
236		compare.o \
237		copy.o \
238		gen_uuid.o \
239		isnull.o \
240		pack.o \
241		parse.o \
242		unpack.o \
243		unparse.o \
244		uuid_time.o
245
246SRCS=		$(srcdir)/clear.c \
247		$(srcdir)/compare.c \
248		$(srcdir)/copy.c \
249		$(srcdir)/gen_uuid.c \
250		$(srcdir)/isnull.c \
251		$(srcdir)/pack.c \
252		$(srcdir)/parse.c \
253		$(srcdir)/unpack.c \
254		$(srcdir)/unparse.c \
255		$(srcdir)/uuid_time.c
256
257LIBRARY= libuuid
258LIBDIR= uuid
259
260ELF_VERSION = 1.2
261ELF_SO_VERSION = 1
262ELF_IMAGE = libuuid
263ELF_MYDIR = uuid
264ELF_INSTALL_DIR = $(root_libdir)
265ELF_OTHER_LIBS = 
266
267BSDLIB_VERSION = 1.1
268BSDLIB_IMAGE = libuuid
269BSDLIB_MYDIR = uuid
270BSDLIB_INSTALL_DIR = $(root_libdir)
271
272all:: subdirs $(LIBRARY).a
273
274install-shlibs::
275
276uninstall-shlibs::
277
278real-subdirs::
279
280subdirs:: Makefile
281	@$(MAKE) -s real-subdirs
282	@touch subdirs
283
284clean::
285	@$(RM) -f subdirs
286
287$(LIBRARY).a: $(OBJS)
288	@echo "	GEN_LIB $@"
289	@(if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi)
290	@$(ARGEN) $@ $(OBJS)
291	-@$(RANLIB) $@
292	@$(RM) -f ../$@
293	@$(LN) $@ ../$@
294
295
296.c.o:
297	@echo "	CC $<"
298	@$(CC) $(ALL_CFLAGS) -c $< -o $@
299#	@$(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
300#	@$(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $<
301#	@$(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
302#	@$(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
303
304all:: tst_uuid uuid_time $(SMANPAGES) uuid.pc
305
306$(top_builddir)/lib/uuid/uuid_types.h: $(srcdir)/uuid_types.h.in $(top_builddir)/config.status
307	cd $(top_builddir); CONFIG_FILES=$(my_dir)/uuid_types.h ./config.status
308
309tst_uuid.o: $(srcdir)/tst_uuid.c
310	@echo "	CC $@"
311	@$(CC) $(ALL_CFLAGS) -c $(srcdir)/tst_uuid.c -o tst_uuid.o
312
313tst_uuid: tst_uuid.o $(DEPSTATIC_LIBUUID)
314	@echo "	LD $@"
315	@$(CC) $(ALL_LDFLAGS) -o tst_uuid tst_uuid.o $(STATIC_LIBUUID)
316
317uuid_time: $(srcdir)/uuid_time.c $(DEPLIBUUID)
318	@echo "	LD $@"
319	@$(CC) $(ALL_CFLAGS) -DDEBUG -o uuid_time $(srcdir)/uuid_time.c \
320		$(LIBUUID)
321
322uuid.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid.3.in
323	@echo "	SUBST $@"
324	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid.3.in uuid.3
325
326uuid_clear.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_clear.3.in
327	@echo "	SUBST $@"
328	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_clear.3.in uuid_clear.3
329
330uuid_compare.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_compare.3.in
331	@echo "	SUBST $@"
332	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_compare.3.in uuid_compare.3
333
334uuid_copy.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_copy.3.in
335	@echo "	SUBST $@"
336	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_copy.3.in uuid_copy.3
337
338uuid_generate.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_generate.3.in
339	@echo "	SUBST $@"
340	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_generate.3.in uuid_generate.3
341
342uuid_is_null.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_is_null.3.in
343	@echo "	SUBST $@"
344	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_is_null.3.in uuid_is_null.3
345
346uuid_parse.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_parse.3.in
347	@echo "	SUBST $@"
348	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_parse.3.in uuid_parse.3
349
350uuid_time.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_time.3.in
351	@echo "	SUBST $@"
352	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_time.3.in uuid_time.3
353
354uuid_unparse.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid_unparse.3.in
355	@echo "	SUBST $@"
356	@$(SUBSTITUTE_UPTIME) $(srcdir)/uuid_unparse.3.in uuid_unparse.3
357
358uuid.pc: $(srcdir)/uuid.pc.in $(top_builddir)/config.status
359	@echo "	CONFIG.STATUS $@"
360	@cd $(top_builddir); CONFIG_FILES=lib/uuid/uuid.pc ./config.status
361
362installdirs::
363	@echo "	MKINSTALLDIRS $(libdir) $(includedir)/uuid $(man3dir)"
364	@$(MKINSTALLDIRS) $(DESTDIR)$(libdir)  \
365		$(DESTDIR)$(includedir)/uuid $(DESTDIR)$(man3dir) \
366		$(DESTDIR)$(libdir)/pkgconfig
367
368install:: all installdirs 
369	@echo "	INSTALL_DATA $(libdir)/libuuid.a"
370	@$(INSTALL_DATA) libuuid.a $(DESTDIR)$(libdir)/libuuid.a
371	@-$(RANLIB) $(DESTDIR)$(libdir)/libuuid.a
372	@$(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libuuid.a
373	@echo "	INSTALL_DATA $(includedir)/uuid/uuid.h"
374	@$(INSTALL_DATA) $(srcdir)/uuid.h $(DESTDIR)$(includedir)/uuid/uuid.h
375	@for i in $(SMANPAGES); do \
376		$(RM) -f $(DESTDIR)$(man3dir)/$$i.gz; \
377		echo "	INSTALL_DATA $(man3dir)/$$i"; \
378		$(INSTALL_DATA) $$i $(DESTDIR)$(man3dir)/$$i; \
379	done
380	@$(RM) -f $(DESTDIR)$(man3dir)/uuid_generate_random.3.gz \
381		$(DESTDIR)$(man3dir)/uuid_generate_time.3.gz
382	@echo "	LINK $(man3dir)/uuid_generate_random.3"
383	@$(LN) -f $(DESTDIR)$(man3dir)/uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_random.3
384	@echo "	LINK $(man3dir)/uuid_generate_time.3"
385	@$(LN) -f $(DESTDIR)$(man3dir)/uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_time.3
386	@echo "	INSTALL_DATA $(libdir)/pkgconfig/uuid.pc"
387	@$(INSTALL_DATA) uuid.pc $(DESTDIR)$(libdir)/pkgconfig/uuid.pc
388
389uninstall::
390	$(RM) -f $(DESTDIR)$(libdir)/libuuid.a \
391		$(DESTDIR)$(libdir)/pkgconfig/uuid.pc
392	for i in $(SMANPAGES); do \
393		$(RM) -f $(DESTDIR)$(man3dir)/$$i; \
394	done
395	$(RM) -f $(DESTDIR)$(man3dir)/uuid_generate_random.3 $(DESTDIR)$(man3dir)/uuid_generate_time.3
396
397clean::
398	$(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/*
399	$(RM) -f ../libuuid.a ../libuuid_p.a tst_uuid uuid_time $(SMANPAGES)
400
401check:: tst_uuid
402	LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
403
404mostlyclean:: clean
405distclean:: clean
406	$(RM) -f .depend Makefile uuid.pc \
407		$(srcdir)/TAGS $(srcdir)/Makefile.in.old
408
409#
410# Hack to parallel makes recognize dependencies correctly.
411#
412../../lib/libuuid.a: libuuid.a
413../../lib/libuuid.so: image
414../../lib/libuuid.dylib: image
415
416$(OBJS): subdirs
417
418# +++ Dependency line eater +++
419# 
420# Makefile dependencies follow.  This must be the last section in
421# the Makefile.in file
422#
423clear.o: $(srcdir)/clear.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
424compare.o: $(srcdir)/compare.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
425copy.o: $(srcdir)/copy.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
426gen_uuid.o: $(srcdir)/gen_uuid.c $(srcdir)/uuidP.h $(srcdir)/uuid.h \
427 $(srcdir)/uuidd.h
428isnull.o: $(srcdir)/isnull.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
429pack.o: $(srcdir)/pack.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
430parse.o: $(srcdir)/parse.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
431unpack.o: $(srcdir)/unpack.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
432unparse.o: $(srcdir)/unparse.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
433uuid_time.o: $(srcdir)/uuid_time.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
434