chiark / gitweb /
Sort of works ...
[jarrg-ian.git] / Makefile
1 OPTIMISE=       -O2
2 LDFLAGS=        -g
3 LIBS=           -ldl -lc
4 CFLAGS=         -g $(OPTIMISE) \
5                 -Wall -Wwrite-strings -Wpointer-arith -Wimplicit \
6                 -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
7 CPPFLAGS=
8
9 MAJOR=1
10 MINOR=0
11 LIBCANON=       libjwrap.so.$(MAJOR)
12 LIBTARGET=      $(LIBCANON).$(MINOR)
13
14 TARGETS=                $(LIBTARGET)
15
16 all:                    $(TARGETS)
17
18
19 $(LIBTARGET):           libjwrap.o
20                 ld -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
21
22 libjwrap.o:          libjwrap.c
23                 $(CC) -D_REENTRANT $(CFLAGS) $(CPPFLAGS) -c -o $@ -fPIC $<