X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=18a092696ae06b9d8351debabcfa9963da3766b7;hb=a942b07a4483cfa4a5f0a8307e3b6239f7f44998;hp=193234882c2548cc96e1c50452cd2b8742b2fc75;hpb=ced277da933eb4aeb199ee534cfe9a15804061cc;p=authbind.git diff --git a/Makefile b/Makefile index 1932348..18a0926 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ man8_dir=$(man_dir)/man8 etc_dir=/etc/authbind OPTIMISE= -O2 +LDFLAGS= -g CFLAGS= -g $(OPTIMISE) \ -Wall -Wwrite-strings -Wpointer-arith -Wimplicit \ -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes @@ -63,11 +64,16 @@ install_man: $(MANPAGES_1) $(MANPAGES_8) install -o root -g root -m 644 $(MANPAGES_1) $(man1_dir)/. install -o root -g root -m 644 $(MANPAGES_8) $(man8_dir)/. -libauthbind.o: libauthbind.c +libauthbind.o: libauthbind.c authbind.h $(CC) -D_REENTRANT $(CFLAGS) $(CPPFLAGS) -c -o $@ -fPIC $< +authbind: authbind.o +helper: helper.o + +helper.o authbind.o: authbind.h + $(LIBTARGET): libauthbind.o - gcc -g -shared -Wl,-soname,$(LIBCANON) -o $@ $< -ldl -lc + ld -shared -soname $(LIBCANON) -o $@ $< -ldl -lc clean distclean: rm -f $(TARGETS) *.o *~ ./#*# *.bak *.new core libauthbind.so*