Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 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 | |
| 8 | srcdir = @srcdir@ |
| 9 | top_srcdir = @top_srcdir@ |
| 10 | VPATH = @srcdir@ |
| 11 | top_builddir = ../.. |
| 12 | my_dir = lib/uuid |
| 13 | INSTALL = @INSTALL@ |
| 14 | |
| 15 | @MCONFIG@ |
| 16 | |
| 17 | all:: |
| 18 | |
| 19 | OBJS= clear.o \ |
| 20 | compare.o \ |
| 21 | copy.o \ |
| 22 | gen_uuid.o \ |
| 23 | isnull.o \ |
| 24 | pack.o \ |
| 25 | parse.o \ |
| 26 | unpack.o \ |
| 27 | unparse.o |
| 28 | |
| 29 | SRCS= $(srcdir)/clear.c \ |
| 30 | $(srcdir)/compare.c \ |
| 31 | $(srcdir)/copy.c \ |
| 32 | $(srcdir)/gen_uuid.c \ |
| 33 | $(srcdir)/isnull.c \ |
| 34 | $(srcdir)/pack.c \ |
| 35 | $(srcdir)/parse.c \ |
| 36 | $(srcdir)/unpack.c \ |
| 37 | $(srcdir)/unparse.c |
| 38 | |
| 39 | LIBRARY= libuuid |
| 40 | LIBDIR= uuid |
| 41 | |
| 42 | DLL_ADDRESS = 0x66980000 |
| 43 | DLL_JUMPSIZE = 0x1000 |
| 44 | DLL_GOTSIZE = 0x1000 |
| 45 | DLL_VERSION = 1.0 |
| 46 | DLL_IMAGE = libuuid |
| 47 | DLL_STUB = libuuid |
| 48 | DLL_MYDIR = uuid |
| 49 | DLL_INSTALL_DIR = $(libdir) |
| 50 | |
| 51 | ELF_VERSION = 1.0 |
| 52 | ELF_SO_VERSION = 1 |
| 53 | ELF_IMAGE = libuuid |
| 54 | ELF_MYDIR = uuid |
| 55 | ELF_INSTALL_DIR = $(libdir) |
| 56 | |
| 57 | BSDLIB_VERSION = 1.0 |
| 58 | BSDLIB_IMAGE = libuuid |
| 59 | BSDLIB_MYDIR = uuid |
| 60 | BSDLIB_INSTALL_DIR = $(libdir) |
| 61 | |
| 62 | @MAKEFILE_LIBRARY@ |
| 63 | @MAKEFILE_DLL@ |
| 64 | @MAKEFILE_ELF@ |
| 65 | @MAKEFILE_BSDLIB@ |
| 66 | @MAKEFILE_PROFILE@ |
| 67 | @MAKEFILE_CHECKER@ |
| 68 | |
| 69 | .c.o: |
| 70 | $(CC) $(ALL_CFLAGS) -c $< -o $@ |
| 71 | @PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -pg -o profiled/$*.o -c $< |
| 72 | @CHECKER_CMT@ $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $< |
| 73 | @DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \ |
| 74 | @DLL_CMT@ -o jump/$*.o -c $<) |
| 75 | @ELF_CMT@ $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $< |
| 76 | @BSDLIB_CMT@ $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $< |
| 77 | |
| 78 | all:: tst_uuid |
| 79 | |
| 80 | tst_uuid: tst_uuid.o $(LIBUUID) |
| 81 | $(CC) $(ALL_LDFLAGS) -o tst_uuid tst_uuid.o $(LIBUUID) |
| 82 | |
| 83 | installdirs:: |
| 84 | $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \ |
| 85 | $(DESTDIR)$(includedir)/uuid |
| 86 | |
| 87 | install:: all installdirs |
| 88 | $(INSTALL_DATA) libuuid.a $(DESTDIR)$(ulibdir)/libuuid.a |
| 89 | $(CHMOD) 644 $(DESTDIR)$(ulibdir)/libuuid.a |
| 90 | -$(RANLIB) $(DESTDIR)$(ulibdir)/libuuid.a |
| 91 | $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libuuid.a |
| 92 | $(INSTALL_DATA) $(srcdir)/uuid.h $(DESTDIR)$(includedir)/uuid/uuid.h |
| 93 | |
| 94 | uninstall:: |
| 95 | $(RM) -f $(ulibdir)/libuuid.a |
| 96 | |
| 97 | clean:: |
| 98 | $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* |
| 99 | $(RM) -f ../libuuid.a ../libuuid_p.a tst_uuid |
| 100 | |
| 101 | mostlyclean:: clean |
| 102 | distclean:: clean |
| 103 | $(RM) -f .depend Makefile |
| 104 | |
| 105 | # +++ Dependency line eater +++ |
| 106 | # |
| 107 | # Makefile dependencies follow. This must be the last section in |
| 108 | # the Makefile.in file |
| 109 | # |
| 110 | clear.o: $(srcdir)/clear.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 111 | compare.o: $(srcdir)/compare.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 112 | copy.o: $(srcdir)/copy.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 113 | gen_uuid.o: $(srcdir)/gen_uuid.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 114 | isnull.o: $(srcdir)/isnull.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 115 | pack.o: $(srcdir)/pack.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 116 | parse.o: $(srcdir)/parse.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 117 | unpack.o: $(srcdir)/unpack.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |
| 118 | unparse.o: $(srcdir)/unparse.c $(srcdir)/uuidP.h $(srcdir)/uuid.h |