root/src/utils/Makefile.in

Revision 56cf4907b889bb4bebd61ffa8c91be1b2c6be2fa, 1.4 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

make this stuff compile and run on sparcv8plus and sparcv9

  • Property mode set to 100644
Line 
1 CC=@CC@
2 CPPFLAGS=@CPPFLAGS@
3 CFLAGS=@CFLAGS@
4 DEPFLAGS=@DEPFLAGS@
5 LDFLAGS=@LDFLAGS@
6 AR=@AR@
7 RANLIB=@RANLIB@
8 LIBS=@LIBS@
9 INSTALL=@INSTALL@
10
11 top_srcdir=@top_srcdir@
12
13 OBJS=noit_hash.o noit_skiplist.o noit_log.o noit_sem.o noit_str.o \
14         noit_b64.o noit_b32.o noit_security.o noit_watchdog.o noit_mkdir.o \
15         noit_getip.o noit_lockfile.o \
16         @ATOMIC_OBJS@
17
18 all:    libnoit_utils.a
19
20 @DTRACEOBJ@:    $(OBJS)
21         @-test -n "@DTRACE@" && \
22         @DTRACE@ @DTRACEFLAGS@ -G -s dtrace_probes.d -o @DTRACEOBJ@ $(OBJS)
23
24 noit_log.o:     @DTRACEHDR@
25
26 @DTRACEHDR@:    dtrace_probes.d
27         @-test -n "@DTRACE@" && @DTRACE@ -h -s dtrace_probes.d
28
29 libnoit_utils.a:        $(OBJS) @DTRACEOBJ@
30         @rm -f $@
31         @$(AR) cq $@ $(OBJS) @DTRACEOBJ@
32         @echo "- archiving $@"
33         @$(RANLIB) $@
34
35 noit_atomic_sol_sparcv8plus.o:  noit_atomic_sol.s
36         @as -P -xarch=v8plus -o $@ noit_atomic_sol.s
37         @echo "- assembling $@"
38
39 noit_atomic_sol_sparcv9.o:      noit_atomic_sol.s
40         @as -P -xarch=v9 -o $@ noit_atomic_sol.s
41         @echo "- assembling $@"
42
43 noit_atomic_sol_x86_32.o:       noit_atomic_sol.s
44         @as -P -o $@ noit_atomic_sol.s
45         @echo "- assembling $@"
46
47 noit_atomic_sol_x86_64.o:       noit_atomic_sol.s
48         @as -P -xarch=generic64 -o $@ noit_atomic_sol.s
49         @echo "- assembling $@"
50
51 .c.o:
52         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
53         @echo "- compiling $<"
54
55 clean:
56         rm -f *.o libnoit_utils.a
57
58 distclean:      clean
59         rm -f Makefile
60
61 Makefile.dep:
62         $(CC) -I. -I.. $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) *.c > Makefile.dep
63         $(top_srcdir)/buildtools/culldeps.sh Makefile.dep
64
65 include Makefile.dep
66
Note: See TracBrowser for help on using the browser.