root/Makefile.in

Revision 81ac86a15e3940ff0b787698853fb6a6157f800b, 1.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

initial import with Ecelerity bits removed and some autoconf glue added in. Could certainly use some work on the build/install. Needs shared lib support for multiple platforms

  • 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 prefix=@prefix@
11 exec_prefix=@exec_prefix@
12 bindir=@bindir@
13 sbindir=@sbindir@
14 libdir=@libdir@
15 includedir=${prefix}/include
16 libexecdir=@libexecdir@
17 mandir=@mandir@
18 mansubdir=@mansubdir@
19 docdir=${prefix}/@docdir@
20 sysconfdir=@sysconfdir@
21 srcdir=@srcdir@
22 top_srcdir=@top_srcdir@
23
24 LIBOBJS= \
25         jlog.o jlog_hash.o jlog_io.o
26
27 all:    libjlog.a jlogctl test
28
29 test:   jthreadtest
30
31 jlogctl:        libjlog.a jlogctl.o
32         $(CC) $(CFLAGS) -o jlogctl jlogctl.o libjlog.a $(LIBS)
33
34 jthreadtest:    libjlog.a jthreadtest.o
35         $(CC) $(CFLAGS) -o jthreadtest jthreadtest.o libjlog.a $(LIBS)
36
37 libjlog.a:      $(LIBOBJS)
38         $(AR) cq libjlog.a $(LIBOBJS)
39         $(RANLIB) libjlog.a
40
41 .c.o:
42         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
43
44 install:
45         $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
46         $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
47         $(srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
48         $(INSTALL) -m 0755 jlogctl $(DESTDIR)$(bindir)/jlogctl
49         $(INSTALL) -m 0755 libjlog.a $(DESTDIR)$(libdir)/libjlog.a
50         $(INSTALL) -m 0644 jlog.h $(DESTDIR)$(includedir)/jlog.h
51
52 clean:
53         rm -f *.o libjlog.a jthreadtest
Note: See TracBrowser for help on using the browser.