From 8efddb4f681a203f16b86e29bc08f2456b101131 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Thu, 6 Mar 2014 12:43:20 +0000 Subject: Add basic autoconf script --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d14b10e..e0473bb 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,8 @@ CFLAGS += -Wall -fPIC # Then copy pam_radius_auth.so to /usr/freeware/lib32/security (PAM dir) # CFLAGS = -LDFLAGS += -shared -Wl,--version-script=pamsymbols.ver +#LDFLAGS += -shared -Wl,--version-script=pamsymbols.ver +LDFLAGS += -shared -Wl ###################################################################### # @@ -35,8 +36,11 @@ all: pam_radius_auth.so # # Build the object file from the C source. # -pam_radius_auth.o: pam_radius_auth.c pam_radius_auth.h - $(CC) $(CFLAGS) -c pam_radius_auth.c -o pam_radius_auth.o +pam_radius_auth.o: src/pam_radius_auth.c src/pam_radius_auth.h + $(CC) $(CFLAGS) -c $< -o $@ + +md5.o: src/md5.c src/md5.h + $(CC) $(CFLAGS) -c $< -o $@ # # This is what should work on Irix: #pam_radius_auth.so: pam_radius_auth.o md5.o -- cgit v1.2.3