1 # Makefile for IPF unwind express library, libuwx.
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.
12 # OTHERCFLAGS = -DUWX_TRACE_ENABLE # Enables trace output
13 # OTHERCFLAGS = +DD64 # Builds 64-bit library
15 CFLAGS = -O $(OTHERCFLAGS)
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
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
25 # SELFLIBS = # For cross-unwind library
28 libuwx.a: $(OBJS) $(SELFOBJS)
32 libuwx.so: $(OBJS) $(SELFOBJS)
33 ld -b -o libuwx.so $(OBJS) $(SELFOBJS) $(SELFLIBS)
35 libuwx.sl: $(OBJS) $(SELFOBJS)
36 ld -b -o libuwx.sl $(OBJS) $(SELFOBJS) $(SELFLIBS)
39 rm -f $(OBJS) $(SELFOBJS) libuwx.a libuwx.so libuwx.sl
41 uwx_bstream.o: uwx.h uwx_env.h uwx_bstream.h
43 uwx_context.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_step.h uwx_trace.h
45 uwx_env.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_str.h uwx_trace.h
47 uwx_scoreboard.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_trace.h
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
52 uwx_str.o: uwx.h uwx_env.h uwx_str.h
54 uwx_swap.o: uwx.h uwx_env.h uwx_swap.h
56 uwx_symbols.o: uwx.h uwx_env.h uwx_symbols.h
58 uwx_trace.o: uwx.h uwx_env.h uwx_uinfo.h uwx_scoreboard.h uwx_trace.h
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
63 uwx_utable.o: uwx.h uwx_env.h uwx_utable.h uwx_swap.h uwx_trace.h
65 uwx_self.o: uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_self.h \
68 uwx_self_context.o: uwx_self_context.s
69 $(CC) -c $(CFLAGS) -o uwx_self_context.o uwx_self_context.s
71 uwx_ttrace.o: uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_ttrace.h