Makefile revision 115013
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 8AR = ar 9RANLIB = : 10 11# OTHERCFLAGS = -DDISABLE_TRACE # Disables trace output 12# OTHERCFLAGS = +DD64 # Builds 64-bit library 13OTHERCFLAGS = 14 15CFLAGS = +W944 -O $(OTHERCFLAGS) 16 17OBJS = uwx_bstream.o uwx_context.o uwx_env.o uwx_scoreboard.o \ 18 uwx_step.o uwx_str.o uwx_swap.o uwx_trace.o uwx_uinfo.o \ 19 uwx_utable.o 20 21# SELFOBJS = # For cross-unwind library 22SELFOBJS = uwx_self.o uwx_self_context.o uwx_ttrace.o 23 24# SELFLIBS = # For cross-unwind library 25SELFLIBS = -luca 26 27libuwx.a: $(OBJS) $(SELFOBJS) 28 $(AR) rv libuwx.a $? 29 $(RANLIB) libuwx.a 30 31libuwx.so: $(OBJS) $(SELFOBJS) 32 ld -b -o libuwx.so $(OBJS) $(SELFOBJS) $(SELFLIBS) 33 34libuwx.sl: $(OBJS) $(SELFOBJS) 35 ld -b -o libuwx.sl $(OBJS) $(SELFOBJS) $(SELFLIBS) 36 37uwx_bstream.o: uwx.h uwx_env.h uwx_bstream.h 38 39uwx_context.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_trace.h 40 41uwx_env.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_str.h uwx_trace.h 42 43uwx_scoreboard.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_trace.h 44 45uwx_step.o: uwx.h uwx_env.h uwx_context.h uwx_utable.h \ 46 uwx_uinfo.h uwx_scoreboard.h uwx_str.h uwx_trace.h 47 48uwx_str.o: uwx.h uwx_env.h uwx_str.h 49 50uwx_swap.o: uwx.h uwx_env.h uwx_swap.h 51 52uwx_trace.o: uwx.h uwx_env.h uwx_uinfo.h uwx_scoreboard.h uwx_trace.h 53 54uwx_uinfo.o: uwx.h uwx_env.h uwx_uinfo.h uwx_utable.h \ 55 uwx_scoreboard.h uwx_bstream.h uwx_trace.h 56 57uwx_utable.o: uwx.h uwx_env.h uwx_utable.h uwx_swap.h uwx_trace.h 58 59uwx_self.o: uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_self.h 60 61uwx_self_context.o: uwx_self_context.s 62 $(CC) -c $(CFLAGS) -o uwx_self_context.o uwx_self_context.s 63 64uwx_ttrace.o: uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_ttrace.h 65