summaryrefslogtreecommitdiffstats
path: root/sys/contrib/ia64/libuwx/src/Makefile
blob: 7cc0f2d5aed7a8cb69ccf6d8f2507d6fd1f6f7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Makefile for IPF unwind express library, libuwx.
#
# To build a cross-unwind library (i.e., one hosted on a
# non-IPF, non-HP-UX system), omit the "self" callbacks
# and the dependency on libuca by setting SELFOBJS and
# SELFLIBS to empty strings.

AR = ar
RANLIB = :

OTHERCFLAGS =
# OTHERCFLAGS = -DUWX_TRACE_ENABLE	# Enables trace output
# OTHERCFLAGS = +DD64			# Builds 64-bit library

CFLAGS = -O $(OTHERCFLAGS)

OBJS =		uwx_bstream.o uwx_context.o uwx_env.o uwx_scoreboard.o \
		uwx_step.o uwx_str.o uwx_swap.o uwx_symbols.o \
		uwx_trace.o uwx_uinfo.o uwx_utable.o

# SELFOBJS =				# For cross-unwind library
# SELFOBJS = 	uwx_self.o uwx_self_context.o uwx_ttrace.o
SELFOBJS = 	uwx_self.o uwx_self_context.o

# SELFLIBS =				# For cross-unwind library
SELFLIBS =	-luca

libuwx.a:	$(OBJS) $(SELFOBJS)
	$(AR) rv libuwx.a $?
	$(RANLIB) libuwx.a

libuwx.so:	$(OBJS) $(SELFOBJS)
	ld -b -o libuwx.so $(OBJS) $(SELFOBJS) $(SELFLIBS)

libuwx.sl:	$(OBJS) $(SELFOBJS)
	ld -b -o libuwx.sl $(OBJS) $(SELFOBJS) $(SELFLIBS)

clean:
	rm -f $(OBJS) $(SELFOBJS) libuwx.a libuwx.so libuwx.sl

uwx_bstream.o:	uwx.h uwx_env.h uwx_bstream.h

uwx_context.o:	uwx.h uwx_env.h uwx_scoreboard.h uwx_step.h uwx_trace.h

uwx_env.o:	uwx.h uwx_env.h uwx_scoreboard.h uwx_str.h uwx_trace.h

uwx_scoreboard.o: uwx.h uwx_env.h uwx_scoreboard.h uwx_trace.h

uwx_step.o:	uwx.h uwx_env.h uwx_context.h uwx_utable.h \
		uwx_uinfo.h uwx_scoreboard.h uwx_str.h uwx_trace.h

uwx_str.o:	uwx.h uwx_env.h uwx_str.h

uwx_swap.o:	uwx.h uwx_env.h uwx_swap.h

uwx_symbols.o:	uwx.h uwx_env.h uwx_symbols.h

uwx_trace.o:	uwx.h uwx_env.h uwx_uinfo.h uwx_scoreboard.h uwx_trace.h

uwx_uinfo.o:	uwx.h uwx_env.h uwx_uinfo.h uwx_utable.h \
		uwx_scoreboard.h uwx_bstream.h uwx_trace.h

uwx_utable.o:	uwx.h uwx_env.h uwx_utable.h uwx_swap.h uwx_trace.h

uwx_self.o:	uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_self.h \
		uwx_symbols.h

uwx_self_context.o:	uwx_self_context.s
	$(CC) -c $(CFLAGS) -o uwx_self_context.o uwx_self_context.s

uwx_ttrace.o:	uwx.h uwx_env.h uwx_context.h uwx_trace.h uwx_ttrace.h
OpenPOWER on IntegriCloud