root/src/utils/Makefile.in

Revision 725c93dbed2c4bd113c87b443eee22ccd4bbeb37, 0.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

first whack at dtrace probes. the fact we can't use archives is painful. refs #233

  • Property mode set to 100644
Line 
1 CC=@CC@
2 CPPFLAGS=@CPPFLAGS@
3 CFLAGS=@CFLAGS@
4 LDFLAGS=@LDFLAGS@
5 AR=@AR@
6 RANLIB=@RANLIB@
7 LIBS=@LIBS@
8 INSTALL=@INSTALL@
9
10 top_srcdir=@top_srcdir@
11
12 OBJS=noit_hash.o noit_skiplist.o noit_log.o noit_sem.o noit_str.o \
13         noit_b64.o noit_security.o noit_watchdog.o noit_mkdir.o \
14         @ATOMIC_OBJS@
15
16 all:    libnoit_utils.a
17
18 @DTRACEOBJ@:    $(OBJS)
19         @DTRACE@ @DTRACEFLAGS@ -G -s dtrace_probes.d -o @DTRACEOBJ@ $(OBJS)
20
21 noit_log.o:     @DTRACEHDR@
22
23 @DTRACEHDR@:    dtrace_probes.d
24         @DTRACE@ -h -s dtrace_probes.d
25
26 libnoit_utils.a:        $(OBJS) @DTRACEOBJ@
27         @rm -f $@
28         @$(AR) cq $@ $(OBJS) @DTRACEOBJ@
29         @echo "- archiving $@"
30         @$(RANLIB) $@
31
32 noit_atomic_sol_x86_32.o:       noit_atomic_sol.s
33         @as -P -o $@ noit_atomic_sol.s
34         @echo "- assembling $@"
35
36 noit_atomic_sol_x86_64.o:       noit_atomic_sol.s
37         @as -P -xarch=generic64 -o $@ noit_atomic_sol.s
38         @echo "- assembling $@"
39
40 .c.o:
41         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
42         @echo "- compiling $<"
43
44 clean:
45         rm -f *.o libnoit_utils.a
Note: See TracBrowser for help on using the browser.