X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile;h=18a092696ae06b9d8351debabcfa9963da3766b7;hb=c6039ba83709d644380fe7fe0fa34f81cf61afc6;hp=cd9e8780244570ef9320ebb978ca746eb6cadd7a;hpb=d152dbf5e88223fa740808da9fbfbf5bb301ecfa;p=authbind.git diff --git a/Makefile b/Makefile index cd9e878..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 @@ -54,7 +55,7 @@ install: $(TARGETS) install -o root -g root -m 755 -s authbind $(bin_dir)/. install -o root -g root -m 755 $(LIBTARGET) $(lib_dir)/. strip --strip-unneeded $(lib_dir)/$(LIBTARGET) - ln -s $(LIBTARGET) $(lib_dir)/$(LIBCANON) + ln -sf $(LIBTARGET) $(lib_dir)/$(LIBCANON) install -o root -g root -m 4755 -s helper $(lib_dir)/. install -o root -g root -m 755 -d $(etc_dir) \ $(etc_dir)/byport $(etc_dir)/byaddr $(etc_dir)/byuid @@ -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*