root/src/jlog/Makefile.in

Revision cc981f5c55100675865b6960135d70148d8585af, 2.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

pull in jlog @ 52

  • Property mode set to 100644
Line 
1 # vim:ts=2:sw=2:noet:
2 .SUFFIXES: .lo
3
4 CC=@CC@
5 CPPFLAGS=@CPPFLAGS@
6 CFLAGS=@CFLAGS@
7 LDFLAGS=@LDFLAGS@
8 AR=@AR@
9 RANLIB=@RANLIB@
10 LIBS=@LIBS@
11 INSTALL=@INSTALL@
12 SHLD=@SHLD@
13 PERL=@PERL@
14 SHCFLAGS=@SHCFLAGS@
15 DOTSO=@DOTSO@
16
17 prefix=@prefix@
18 exec_prefix=@exec_prefix@
19 bindir=@bindir@
20 sbindir=@sbindir@
21 libdir=@libdir@
22 includedir=${prefix}/include
23 libexecdir=@libexecdir@
24 datarootdir = @datarootdir@
25 mandir=@mandir@
26 mansubdir=@mansubdir@
27 docdir=${prefix}/@docdir@
28 sysconfdir=@sysconfdir@
29 srcdir=@srcdir@
30 top_srcdir=@top_srcdir@
31
32 AOBJS= \
33         jlog.o jlog_hash.o jlog_io.o
34 SOOBJS= \
35         jlog.lo jlog_hash.lo jlog_io.lo
36
37 all:    libjlog.$(DOTSO) libjlog.a jlogctl test jlogperl
38
39 .c.o:
40         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
41
42 .c.lo:
43         $(CC) $(CPPFLAGS) $(SHCFLAGS) -c $< -o $@
44
45 test:   jthreadtest
46
47 jlogperl:
48         cd perl ; $(PERL) Makefile.PL
49         cd perl ; make
50
51 jlogctl:        libjlog.a jlogctl.o getopt_long.o
52         $(CC) $(CFLAGS) -o jlogctl jlogctl.o getopt_long.o libjlog.a $(LDFLAGS) $(LIBS)
53
54 jthreadtest:    libjlog.a jthreadtest.o getopt_long.o
55         $(CC) $(CFLAGS) -o jthreadtest jthreadtest.o getopt_long.o libjlog.a $(LDFLAGS) $(LIBS)
56
57 libjlog.$(DOTSO): $(SOOBJS)
58         $(SHLD) -o libjlog.$(DOTSO) $(SOOBJS) $(LDFLAGS) $(LIBS)
59
60 libjlog.a:      $(AOBJS)
61         $(AR) cq libjlog.a $(AOBJS)
62         $(RANLIB) libjlog.a
63
64 install:
65         $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
66         $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
67         $(srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
68         $(INSTALL) -m 0755 jlogctl $(DESTDIR)$(bindir)/jlogctl
69         $(INSTALL) -m 0755 jlog_change_endian.pl $(DESTDIR)$(bindir)/jlog_change_endian
70         $(INSTALL) -m 0755 jlog_sanity_check.pl $(DESTDIR)$(bindir)/jlog_sanity_check
71         $(INSTALL) -m 0755 libjlog.a $(DESTDIR)$(libdir)/libjlog.a
72         $(INSTALL) -m 0755 libjlog.$(DOTSO) $(DESTDIR)$(libdir)/libjlog.$(DOTSO)
73         $(INSTALL) -m 0644 jlog.h $(DESTDIR)$(includedir)/jlog.h
74         $(INSTALL) -m 0644 jlog_config.h $(DESTDIR)$(includedir)/jlog_config.h
75         cd perl ; make install DESTDIR=$(DESTDIR) INSTALLDIRS=vendor
76
77 clean:
78         rm -f *.o *.lo *.$(DOTSO) *.a jthreadtest
79         -if test -f perl/Makefile ; then cd perl ; make clean ; fi
80
81 distclean:      clean
82         rm -f Makefile jlog_config.h perl/Makefile.PL
83
84 .SUFFIXES: .c .o .lo
Note: See TracBrowser for help on using the browser.