summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto
diff options
context:
space:
mode:
authorWilfredo Sanchez <tritan@mit.edu>1999-10-26 01:49:53 +0000
committerWilfredo Sanchez <tritan@mit.edu>1999-10-26 01:49:53 +0000
commit576f92854331c90f779e721443dcd375e6851670 (patch)
tree7730482a06f359c2997068ac71a5358d397dc0f9 /src/lib/crypto
parent3edb32acbb73c8d52e66ab71b71c0b5896fe5400 (diff)
downloadkrb5-576f92854331c90f779e721443dcd375e6851670.tar.gz
krb5-576f92854331c90f779e721443dcd375e6851670.tar.xz
krb5-576f92854331c90f779e721443dcd375e6851670.zip
Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES such
that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto')
-rw-r--r--src/lib/crypto/Makefile.in2
-rw-r--r--src/lib/crypto/crc32/Makefile.in1
-rw-r--r--src/lib/crypto/des/Makefile.in1
-rw-r--r--src/lib/crypto/dk/Makefile.in2
-rw-r--r--src/lib/crypto/enc_provider/Makefile.in2
-rw-r--r--src/lib/crypto/hash_provider/Makefile.in2
-rw-r--r--src/lib/crypto/keyhash_provider/Makefile.in6
-rw-r--r--src/lib/crypto/md4/Makefile.in8
-rw-r--r--src/lib/crypto/md5/Makefile.in3
-rw-r--r--src/lib/crypto/old/Makefile.in2
-rw-r--r--src/lib/crypto/raw/Makefile.in1
-rw-r--r--src/lib/crypto/sha1/Makefile.in3
12 files changed, 14 insertions, 19 deletions
diff --git a/src/lib/crypto/Makefile.in b/src/lib/crypto/Makefile.in
index 27956feea4..d86325bf82 100644
--- a/src/lib/crypto/Makefile.in
+++ b/src/lib/crypto/Makefile.in
@@ -4,7 +4,7 @@ mydir=.
BUILDTOP=$(REL)$(U)$(S)$(U)
LOCAL_SUBDIRS=crc32 des dk enc_provider hash_provider keyhash_provider \
md4 md5 old raw sha1
-CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/enc_provider \
+LOCALINCLUDES = -I$(srcdir)/enc_provider \
-I$(srcdir)/hash_provider -I$(srcdir)/keyhash_provider \
-I$(srcdir)/old -I$(srcdir)/raw -I$(srcdir)/dk
diff --git a/src/lib/crypto/crc32/Makefile.in b/src/lib/crypto/crc32/Makefile.in
index 03dbc1519a..7136a386ad 100644
--- a/src/lib/crypto/crc32/Makefile.in
+++ b/src/lib/crypto/crc32/Makefile.in
@@ -2,7 +2,6 @@ thisconfigdir=./..
myfulldir=lib/crypto/crc32
mydir=crc32
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS)
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=crc32
diff --git a/src/lib/crypto/des/Makefile.in b/src/lib/crypto/des/Makefile.in
index 3e25c47238..2634584f72 100644
--- a/src/lib/crypto/des/Makefile.in
+++ b/src/lib/crypto/des/Makefile.in
@@ -2,7 +2,6 @@ thisconfigdir=./..
myfulldir=lib/crypto/des
mydir=des
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS)
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=des
diff --git a/src/lib/crypto/dk/Makefile.in b/src/lib/crypto/dk/Makefile.in
index 88c3ad31ca..2b4b14afc6 100644
--- a/src/lib/crypto/dk/Makefile.in
+++ b/src/lib/crypto/dk/Makefile.in
@@ -2,7 +2,7 @@ thisconfigdir=./..
myfulldir=lib/crypto/dk
mydir=dk
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/..
+LOCALINCLUDES = -I$(srcdir)/..
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=dk
diff --git a/src/lib/crypto/enc_provider/Makefile.in b/src/lib/crypto/enc_provider/Makefile.in
index f757bf66ac..e0672a2193 100644
--- a/src/lib/crypto/enc_provider/Makefile.in
+++ b/src/lib/crypto/enc_provider/Makefile.in
@@ -2,7 +2,7 @@ thisconfigdir=./..
myfulldir=lib/crypto/enc_provider
mydir=enc_provider
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/../des
+LOCALINCLUDES = -I$(srcdir)/../des
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=enc_provider
diff --git a/src/lib/crypto/hash_provider/Makefile.in b/src/lib/crypto/hash_provider/Makefile.in
index 1b2c988c52..e5ba5cce74 100644
--- a/src/lib/crypto/hash_provider/Makefile.in
+++ b/src/lib/crypto/hash_provider/Makefile.in
@@ -2,7 +2,7 @@ thisconfigdir=./..
myfulldir=lib/crypto/hash_provider
mydir=hash_provider
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/../crc32 -I$(srcdir)/../md4 \
+LOCALINCLUDES = -I$(srcdir)/../crc32 -I$(srcdir)/../md4 \
-I$(srcdir)/../md5 -I$(srcdir)/../sha1
##DOS##BUILDTOP = ..\..\..
diff --git a/src/lib/crypto/keyhash_provider/Makefile.in b/src/lib/crypto/keyhash_provider/Makefile.in
index a9317a9b55..50c9d352f7 100644
--- a/src/lib/crypto/keyhash_provider/Makefile.in
+++ b/src/lib/crypto/keyhash_provider/Makefile.in
@@ -2,7 +2,7 @@ thisconfigdir=./..
myfulldir=lib/crypto/keyhash_provider
mydir=keyhash_provider
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/../des -I$(srcdir)/../md4 \
+LOCALINCLUDES = -I$(srcdir)/../des -I$(srcdir)/../md4 \
-I$(srcdir)/../md5
##DOS##BUILDTOP = ..\..\..
@@ -30,10 +30,10 @@ includes:: depend
depend:: $(SRCS)
t_cksum4.o: $(srcdir)/t_cksum.c
- $(CC) -DMD=4 $(CFLAGS) -o t_cksum4.o -c $(srcdir)/t_cksum.c
+ $(CC) -DMD=4 $(ALL_CFLAGS) -o t_cksum4.o -c $(srcdir)/t_cksum.c
t_cksum5.o: $(srcdir)/t_cksum.c
- $(CC) -DMD=5 $(CFLAGS) -o t_cksum5.o -c $(srcdir)/t_cksum.c
+ $(CC) -DMD=5 $(ALL_CFLAGS) -o t_cksum5.o -c $(srcdir)/t_cksum.c
t_cksum4: t_cksum4.o $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o t_cksum4 t_cksum4.o $(KRB5_BASE_LIBS)
diff --git a/src/lib/crypto/md4/Makefile.in b/src/lib/crypto/md4/Makefile.in
index ba212a73ac..f5c7d261fd 100644
--- a/src/lib/crypto/md4/Makefile.in
+++ b/src/lib/crypto/md4/Makefile.in
@@ -2,7 +2,7 @@ thisconfigdir=./..
myfulldir=lib/crypto/md4
mydir=md4
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)
+LOCALINCLUDES = -I$(srcdir)
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=md4
@@ -32,13 +32,13 @@ t_mddriver.c: $(srcdir)/../md5/t_mddriver.c
$(CP) $(srcdir)/../md5/t_mddriver.c t_mddriver.c
t_mddriver.o: t_mddriver.c
- $(CC) -DMD=4 $(CFLAGS) -c t_mddriver.c
+ $(CC) -DMD=4 $(ALL_CFLAGS) -c t_mddriver.c
t_mddriver: t_mddriver.o md4.o
- $(CC) $(CFLAGS) -o t_mddriver t_mddriver.o md4.o
+ $(CC) $(ALL_CFLAGS) -o t_mddriver t_mddriver.o md4.o
$(OUTPRE)t_mddriver.obj: t_mddriver.c
- $(CC) -DMD=4 $(CFLAGS) -Fo$@ -c $**
+ $(CC) -DMD=4 $(ALL_CFLAGS) -Fo$@ -c $**
$(OUTPRE)t_mddriver.exe: $(OUTPRE)t_mddriver.obj $(OUTPRE)md4.obj
link -out:$@ $**
diff --git a/src/lib/crypto/md5/Makefile.in b/src/lib/crypto/md5/Makefile.in
index 896de961e1..98d0b31051 100644
--- a/src/lib/crypto/md5/Makefile.in
+++ b/src/lib/crypto/md5/Makefile.in
@@ -2,7 +2,6 @@ thisconfigdir=./..
myfulldir=lib/crypto/md5
mydir=md5
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS)
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=md5
@@ -29,7 +28,7 @@ includes:: depend
depend:: $(SRCS)
t_mddriver: t_mddriver.o md5.o
- $(CC) $(CFLAGS) $(LDFLAGS) -o t_mddriver t_mddriver.o md5.o
+ $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o t_mddriver t_mddriver.o md5.o
$(OUTPRE)t_mddriver.exe: $(OUTPRE)t_mddriver.obj $(OUTPRE)md5.obj
link -out:$@ $**
diff --git a/src/lib/crypto/old/Makefile.in b/src/lib/crypto/old/Makefile.in
index f808ed66b2..cab1b35119 100644
--- a/src/lib/crypto/old/Makefile.in
+++ b/src/lib/crypto/old/Makefile.in
@@ -2,7 +2,7 @@ thisconfigdir=./..
myfulldir=lib/crypto/old
mydir=old
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/../des
+LOCALINCLUDES = -I$(srcdir)/../des
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=old
diff --git a/src/lib/crypto/raw/Makefile.in b/src/lib/crypto/raw/Makefile.in
index 427bb6b4ed..e3ca3c673d 100644
--- a/src/lib/crypto/raw/Makefile.in
+++ b/src/lib/crypto/raw/Makefile.in
@@ -2,7 +2,6 @@ thisconfigdir=./..
myfulldir=lib/crypto/raw
mydir=raw
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS)
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=raw
diff --git a/src/lib/crypto/sha1/Makefile.in b/src/lib/crypto/sha1/Makefile.in
index 2f8cea1080..5d1b69c4f9 100644
--- a/src/lib/crypto/sha1/Makefile.in
+++ b/src/lib/crypto/sha1/Makefile.in
@@ -2,7 +2,6 @@ thisconfigdir=./..
myfulldir=lib/crypto/sha1
mydir=sha1
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
-CFLAGS = $(CCOPTS) $(DEFS)
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=sha1
@@ -29,7 +28,7 @@ includes:: depend
depend:: $(SRCS)
t_shs: t_shs.o shs.o
- $(CC) $(CFLAGS) $(LDFLAGS) -o t_shs t_shs.o shs.o
+ $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o t_shs t_shs.o shs.o
$(OUTPRE)t_shs.exe: $(OUTPRE)t_shs.obj $(OUTPRE)shs.obj
link -out:$@ $**