Skip to content

Commit

Permalink
allow building as shared object, wire up perl module build
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Apr 17, 2008
1 parent 95502c5 commit 2401d94
Show file tree
Hide file tree
Showing 4 changed files with 3,076 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile.in
@@ -1,3 +1,4 @@
# vim:ts=2:sw=2:noet:
CC=@CC@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
Expand All @@ -6,6 +7,7 @@ AR=@AR@
RANLIB=@RANLIB@
LIBS=@LIBS@
INSTALL=@INSTALL@
SHLD=@SHLD@

prefix=@prefix@
exec_prefix=@exec_prefix@
Expand All @@ -25,7 +27,7 @@ top_srcdir=@top_srcdir@
LIBOBJS= \
jlog.o jlog_hash.o jlog_io.o

all: libjlog.a jlogctl test
all: libjlog.so libjlog.a jlogctl test

test: jthreadtest

Expand All @@ -35,6 +37,9 @@ jlogctl: libjlog.a jlogctl.o
jthreadtest: libjlog.a jthreadtest.o
$(CC) $(CFLAGS) -o jthreadtest jthreadtest.o libjlog.a $(LDFLAGS) $(LIBS)

libjlog.so: $(LIBOBJS)
$(SHLD) -o libjlog.so $(LIBOBJS) $(LIBS)

libjlog.a: $(LIBOBJS)
$(AR) cq libjlog.a $(LIBOBJS)
$(RANLIB) libjlog.a
Expand All @@ -52,3 +57,4 @@ install:

clean:
rm -f *.o libjlog.a jthreadtest
-if test -f perl/Makefile ; then cd perl ; make clean ; fi

0 comments on commit 2401d94

Please sign in to comment.