summaryrefslogtreecommitdiffstats
path: root/sys/contrib/ia64/libuwx/src/Makefile
blob: f0f0871a1106e89bc2c32ec74b736f9da9c3e26f (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
# 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 = -DDISABLE_TRACE		# Disables trace output
# OTHERCFLAGS = +DD64			# Builds 64-bit library
OTHERCFLAGS =

CFLAGS = +W944 -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_trace.o uwx_uinfo.o \
		uwx_utable.o

# SELFOBJS =				# For cross-unwind library
SELFOBJS = 	uwx_self.o uwx_self_context.o uwx_ttrace.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)

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

uwx_context.o:	uwx.h uwx_env.h uwx_scoreboard.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_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_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