summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>2014-03-06 12:43:20 +0000
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>2014-03-06 12:49:29 +0000
commit8efddb4f681a203f16b86e29bc08f2456b101131 (patch)
treee0113fb3da9fac3be6f2697ba2b3c708de6ecd91 /Makefile
parent38de67dd89f7684c7875fb62dd764c0ae21d3cb5 (diff)
downloadlibpam-radius-auth-8efddb4f681a203f16b86e29bc08f2456b101131.tar.gz
libpam-radius-auth-8efddb4f681a203f16b86e29bc08f2456b101131.zip
Add basic autoconf script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
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