diff options
author | Charl Botha <cpbotha@cpbotha.net> | 2003-07-07 15:09:41 +0000 |
---|---|---|
committer | Charl Botha <cpbotha@cpbotha.net> | 2003-07-07 15:09:41 +0000 |
commit | dc44785e001a70bc4222bd8084fc4ee7191ef049 (patch) | |
tree | 8fbd7321bb7d76635567d6beeff1e08e81f00cc6 /contrib/Makefile.standalone | |
parent | 102f385da827867fcfc5719977c4d47dad70daeb (diff) | |
download | libpam-pwdfile-dc44785e001a70bc4222bd8084fc4ee7191ef049.tar.gz |
Added new contributed Makefile.
Diffstat (limited to 'contrib/Makefile.standalone')
-rw-r--r-- | contrib/Makefile.standalone | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/contrib/Makefile.standalone b/contrib/Makefile.standalone index 136f04a..857eaff 100644 --- a/contrib/Makefile.standalone +++ b/contrib/Makefile.standalone @@ -6,15 +6,36 @@ CFLAGS = -fPIC -O2 -c -g -Wall -Wformat-security LDFLAGS = -x --shared PAMLIB = -lpam CRYPTLIB = -lcrypt +CPPFLAGS = all: pam_pwdfile.so -pam_pwdfile.so: pam_pwdfile.o - $(LD) $(LDFLAGS) -o pam_pwdfile.so pam_pwdfile.o $(PAMLIB) $(CRYPTLIB) +pam_pwdfile.so: pam_pwdfile.o bigcrypt.o md5_good.o md5_crypt_good.o md5_broken.o md5_crypt_broken.o + $(LD) $(LDFLAGS) -o pam_pwdfile.so pam_pwdfile.o md5_good.o md5_crypt_good.o md5_broken.o md5_crypt_broken.o bigcrypt.o $(PAMLIB) $(CRYPTLIB) pam_pwdfile.o: pam_pwdfile.c $(CC) $(CFLAGS) pam_pwdfile.c +bigcrypt.o: bigcrypt.c + $(CC) $(CFLAGS) bigcrypt.c + + +md5_good.o: md5.c + $(CC) $(CFLAGS) $(CPPFLAGS) -DHIGHFIRST -D'MD5Name(x)=Good##x' -c $< -o $@ + +md5_broken.o: md5.c + $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \ + -c $< -o $@ + +md5_crypt_good.o: md5_crypt.c + $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Good##x' \ + -c $< -o $@ + +md5_crypt_broken.o: md5_crypt.c + $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \ + -c $< -o $@ + + install: pam_pwdfile.so $(INSTALL) -m 0755 -d $(PAM_LIB_DIR) $(INSTALL) -m 0755 pam_pwdfile.so $(PAM_LIB_DIR) |