root/Makefile.in

Revision 5f07285ffee30b813dc892fec02952695c12d4dd, 1.5 kB (checked in by Wez Furlong <wez.furlong@messagesystems.com>, 6 years ago)

fixup installation of shared lib and perl bits

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