--- /dev/null
+OPTIMISE= -O2
+LDFLAGS= -g
+LIBS= -ldl -lc
+CFLAGS= -g $(OPTIMISE) \
+ -Wall -Wwrite-strings -Wpointer-arith -Wimplicit \
+ -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
+CPPFLAGS=
+
+MAJOR=1
+MINOR=0
+LIBCANON= libjwrap.so.$(MAJOR)
+LIBTARGET= $(LIBCANON).$(MINOR)
+
+TARGETS= $(LIBTARGET)
+
+all: $(TARGETS)
+
+
+$(LIBTARGET): libjwrap.o
+ ld -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
+
+libjwrap.o: libjwrap.c
+ $(CC) -D_REENTRANT $(CFLAGS) $(CPPFLAGS) -c -o $@ -fPIC $<