You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
2.8 KiB
107 lines
2.8 KiB
Index: lib/uuid/Makefile.in |
|
--- lib/uuid/Makefile.in.orig 2005-12-30 04:19:32 +0100 |
|
+++ lib/uuid/Makefile.in 2006-05-30 15:03:48 +0200 |
|
@@ -1,14 +1,18 @@ |
|
# Makefile for the UUID library |
|
# |
|
|
|
+ALL_CFLAGS = @CFLAGS@ -I. -I.. |
|
+ALL_LDFLAGS = @LDFLAGS@ |
|
+LIBUUID = libuuid.a |
|
+STATIC_LIBUUID = libuuid.a |
|
+SUBSTITUTE = cp |
|
+SUBSTITUTE_UPTIME = cp |
|
+ |
|
srcdir = @srcdir@ |
|
top_srcdir = @top_srcdir@ |
|
VPATH = @srcdir@ |
|
top_builddir = ../.. |
|
my_dir = lib/uuid |
|
-INSTALL = @INSTALL@ |
|
- |
|
-@MCONFIG@ |
|
|
|
all:: |
|
|
|
@@ -53,24 +57,15 @@ |
|
BSDLIB_MYDIR = uuid |
|
BSDLIB_INSTALL_DIR = $(root_libdir) |
|
|
|
-@MAKEFILE_LIBRARY@ |
|
-@MAKEFILE_ELF@ |
|
-@MAKEFILE_BSDLIB@ |
|
-@MAKEFILE_PROFILE@ |
|
-@MAKEFILE_CHECKER@ |
|
- |
|
.c.o: |
|
@echo " CC $<" |
|
@$(CC) $(ALL_CFLAGS) -c $< -o $@ |
|
-@PROFILE_CMT@ @$(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $< |
|
-@CHECKER_CMT@ @$(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $< |
|
-@ELF_CMT@ @$(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< |
|
-@BSDLIB_CMT@ @$(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $< |
|
- |
|
-all:: tst_uuid uuid_time $(SMANPAGES) uuid.pc |
|
|
|
-$(top_builddir)/lib/uuid/uuid_types.h: $(srcdir)/uuid_types.h.in $(top_builddir)/config.status |
|
- cd $(top_builddir); CONFIG_FILES=$(my_dir)/uuid_types.h ./config.status |
|
+libuuid.a: $(OBJS) |
|
+ ar cr libuuid.a $(OBJS) |
|
+ ranlib libuuid.a |
|
+ |
|
+all:: tst_uuid uuid_time $(SMANPAGES) |
|
|
|
tst_uuid.o: $(srcdir)/tst_uuid.c |
|
@echo " CC $@" |
|
@@ -172,15 +167,6 @@ |
|
$(RM) -f .depend Makefile uuid.pc \ |
|
$(srcdir)/TAGS $(srcdir)/Makefile.in.old |
|
|
|
-# |
|
-# Hack to parallel makes recognize dependencies correctly. |
|
-# |
|
-../../lib/libuuid.a: libuuid.a |
|
-../../lib/libuuid.so: image |
|
-../../lib/libuuid.dylib: image |
|
- |
|
-$(OBJS): subdirs |
|
- |
|
# +++ Dependency line eater +++ |
|
# |
|
# Makefile dependencies follow. This must be the last section in |
|
Index: lib/uuid/configure.in |
|
--- lib/uuid/configure.in.orig 2005-09-06 11:40:14 +0200 |
|
+++ lib/uuid/configure.in 2006-05-30 15:02:49 +0200 |
|
@@ -7,4 +7,31 @@ |
|
|
|
AC_CHECK_HEADERS(stdlib.h unistd.h sys/sockio.h net/if.h netinet/in.h) |
|
AC_CHECK_FUNCS(srandom) |
|
-AC_OUTPUT(Makefile) |
|
+ |
|
+dnl |
|
+dnl Word sizes... |
|
+dnl |
|
+if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
|
+ # if cross-compiling, with no cached values, just assume something common. |
|
+ ac_cv_sizeof_short=2 |
|
+ ac_cv_sizeof_int=4 |
|
+ ac_cv_sizeof_long=4 |
|
+ ac_cv_sizeof_long_long=8 |
|
+ AC_MSG_WARN([Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8]) |
|
+fi |
|
+AC_CHECK_SIZEOF(short) |
|
+AC_CHECK_SIZEOF(int) |
|
+AC_CHECK_SIZEOF(long) |
|
+AC_CHECK_SIZEOF(long long) |
|
+SIZEOF_SHORT=$ac_cv_sizeof_short |
|
+SIZEOF_INT=$ac_cv_sizeof_int |
|
+SIZEOF_LONG=$ac_cv_sizeof_long |
|
+SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
|
+AC_SUBST(SIZEOF_SHORT) |
|
+AC_SUBST(SIZEOF_INT) |
|
+AC_SUBST(SIZEOF_LONG) |
|
+AC_SUBST(SIZEOF_LONG_LONG) |
|
+AC_C_BIGENDIAN |
|
+ |
|
+AC_OUTPUT(Makefile uuid_types.h) |
|
+
|
|
|