]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/contrib/ia64/libuwx/src/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / contrib / ia64 / libuwx / src / Makefile
1 # Makefile for IPF unwind express library, libuwx.
2 #
3 # To build a cross-unwind library (i.e., one hosted on a
4 # non-IPF, non-HP-UX system), omit the "self" callbacks
5 # and the dependency on libuca by setting SELFOBJS and
6 # SELFLIBS to empty strings.
7
8 AR = ar
9 RANLIB = :
10
11 OTHERCFLAGS =
12 # OTHERCFLAGS = -DUWX_TRACE_ENABLE      # Enables trace output
13 # OTHERCFLAGS = +DD64                   # Builds 64-bit library
14
15 CFLAGS = -O $(OTHERCFLAGS)
16
17 OBJS =          uwx_bstream.o uwx_context.o uwx_env.o uwx_scoreboard.o \
18                 uwx_step.o uwx_str.o uwx_swap.o uwx_symbols.o \
19                 uwx_trace.o uwx_uinfo.o uwx_utable.o
20
21 # SELFOBJS =                            # For cross-unwind library
22 # SELFOBJS =    uwx_self.o uwx_self_context.o uwx_ttrace.o
23 SELFOBJS =      uwx_self.o uwx_self_context.o
24
25 # SELFLIBS =                            # For cross-unwind library
26 SELFLIBS =      -luca
27
28 libuwx.a:       $(OBJS) $(SELFOBJS)
29         $(AR) rv libuwx.a $?
30         $(RANLIB) libuwx.a
31
32 libuwx.so:      $(OBJS) $(SELFOBJS)
33         ld -b -o libuwx.so $(OBJS) $(SELFOBJS) $(SELFLIBS)
34
35 libuwx.sl:      $(OBJS) $(SELFOBJS)
36         ld -b -o libuwx.sl $(OBJS) $(SELFOBJS) $(SELFLIBS)
37
38 clean:
39         rm -f $(OBJS) $(SELFOBJS) libuwx.a libuwx.so libuwx.sl
40
41 uwx_bstream.o:  uwx.h uwx_env.h uwx_bstream.h
42
43 uwx_context.o:  uwx.h uwx_env.h uwx_scoreboard.h uwx_step.h uwx_trace.h
44
45 uwx_env.o:      uwx.h uwx_env.h uwx_scoreboard.h uwx_str.h uwx_trace.h
46
47 uwx_scoreboard.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_trace.h
48
49 uwx_step.o:     uwx.h uwx_env.h uwx_context.h uwx_utable.h \
50                 uwx_uinfo.h uwx_scoreboard.h uwx_str.h uwx_trace.h
51
52 uwx_str.o:      uwx.h uwx_env.h uwx_str.h
53
54 uwx_swap.o:     uwx.h uwx_env.h uwx_swap.h
55
56 uwx_symbols.o:  uwx.h uwx_env.h uwx_symbols.h
57
58 uwx_trace.o:    uwx.h uwx_env.h uwx_uinfo.h uwx_scoreboard.h uwx_trace.h
59
60 uwx_uinfo.o:    uwx.h uwx_env.h uwx_uinfo.h uwx_utable.h \
61                 uwx_scoreboard.h uwx_bstream.h uwx_trace.h
62
63 uwx_utable.o:   uwx.h uwx_env.h uwx_utable.h uwx_swap.h uwx_trace.h
64
65 uwx_self.o:     uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_self.h \
66                 uwx_symbols.h
67
68 uwx_self_context.o:     uwx_self_context.s
69         $(CC) -c $(CFLAGS) -o uwx_self_context.o uwx_self_context.s
70
71 uwx_ttrace.o:   uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_ttrace.h