blob: c226197e9abd2badb5159298693644c1179984e9 [file] [log] [blame]
Theodore Ts'o1e3472c1997-04-29 14:53:37 +00001# 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/uuid
13INSTALL = @INSTALL@
14
15@MCONFIG@
16
17all::
18
19OBJS= 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
29SRCS= $(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
39LIBRARY= libuuid
40LIBDIR= uuid
41
42DLL_ADDRESS = 0x66980000
43DLL_JUMPSIZE = 0x1000
44DLL_GOTSIZE = 0x1000
45DLL_VERSION = 1.0
46DLL_IMAGE = libuuid
47DLL_STUB = libuuid
48DLL_MYDIR = uuid
49DLL_INSTALL_DIR = $(libdir)
50
51ELF_VERSION = 1.0
52ELF_SO_VERSION = 1
53ELF_IMAGE = libuuid
54ELF_MYDIR = uuid
55ELF_INSTALL_DIR = $(libdir)
56
57BSDLIB_VERSION = 1.0
58BSDLIB_IMAGE = libuuid
59BSDLIB_MYDIR = uuid
60BSDLIB_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
78all:: tst_uuid
79
80tst_uuid: tst_uuid.o $(LIBUUID)
81 $(CC) $(ALL_LDFLAGS) -o tst_uuid tst_uuid.o $(LIBUUID)
82
83installdirs::
84 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \
85 $(DESTDIR)$(includedir)/uuid
86
87install:: 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
94uninstall::
95 $(RM) -f $(ulibdir)/libuuid.a
96
97clean::
98 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/*
99 $(RM) -f ../libuuid.a ../libuuid_p.a tst_uuid
100
101mostlyclean:: clean
102distclean:: 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#
110clear.o: $(srcdir)/clear.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
111compare.o: $(srcdir)/compare.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
112copy.o: $(srcdir)/copy.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
113gen_uuid.o: $(srcdir)/gen_uuid.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
114isnull.o: $(srcdir)/isnull.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
115pack.o: $(srcdir)/pack.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
116parse.o: $(srcdir)/parse.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
117unpack.o: $(srcdir)/unpack.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
118unparse.o: $(srcdir)/unparse.c $(srcdir)/uuidP.h $(srcdir)/uuid.h