chiark / gitweb /
5618a5fadb87a2fc8699deb8e7e6565688153306
[authbind.git] / Makefile
1 #
2 OPTIMISE=       -O2
3 CFLAGS=         -g $(OPTIMISE) \
4                 -Wall -Wwrite-strings -Wpointer-arith -Wimplicit \
5                 -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
6
7 TARGETS=                authbind helper libauthbind.so.0.1
8
9 all:                    $(TARGETS)
10
11 libauthbind.o:          libauthbind.c
12                 gcc -D_REENTRANT -g $(CFLAGS) -c -o libauthbind.o -fPIC libauthbind.c
13
14 libauthbind.so.0.1:     libauthbind.o
15                 gcc -g -shared -Wl,-soname,libauthbind.so.0.1 -o libauthbind.so.0.1 libauthbind.o -ldl -lc
16
17 clean distclean: 
18                 rm -f $(TARGETS) *.o *~ ./#*# *.bak debian/*~
19                 rm -f core libauthbind.so*