Skip to content

Commit 8efddb4

Browse files
committed
Add basic autoconf script
1 parent 38de67d commit 8efddb4

20 files changed

+19737
-87
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ config.status
5353
Make.inc
5454
libtool
5555
autom4te.cache
56-
config.guess
57-
config.sub
5856
config.h
5957
src/main/radattr
6058
src/modules/lib/

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
language: c
22
compiler:
33
- gcc
4+
before_script:
5+
- ./configure --enable-werror
6+
before_install:
7+
- sudo apt-get update -qq
8+
- >
9+
sudo apt-get install --no-install-recommends -qq
10+
autoconf
11+
build-essential
12+
libpam0g-dev
413
script: make

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ CFLAGS += -Wall -fPIC
2323
# Then copy pam_radius_auth.so to /usr/freeware/lib32/security (PAM dir)
2424
# CFLAGS =
2525

26-
LDFLAGS += -shared -Wl,--version-script=pamsymbols.ver
26+
#LDFLAGS += -shared -Wl,--version-script=pamsymbols.ver
27+
LDFLAGS += -shared -Wl
2728

2829
######################################################################
2930
#
@@ -35,8 +36,11 @@ all: pam_radius_auth.so
3536
#
3637
# Build the object file from the C source.
3738
#
38-
pam_radius_auth.o: pam_radius_auth.c pam_radius_auth.h
39-
$(CC) $(CFLAGS) -c pam_radius_auth.c -o pam_radius_auth.o
39+
pam_radius_auth.o: src/pam_radius_auth.c src/pam_radius_auth.h
40+
$(CC) $(CFLAGS) -c $< -o $@
41+
42+
md5.o: src/md5.c src/md5.h
43+
$(CC) $(CFLAGS) -c $< -o $@
4044
#
4145
# This is what should work on Irix:
4246
#pam_radius_auth.so: pam_radius_auth.o md5.o

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.4.0

0 commit comments

Comments
 (0)