--- Makefile.in.orig 2001-05-17 18:58:44.000000000 -0700 +++ Makefile.in 2020-05-29 20:19:57.000000000 -0700 @@ -85,10 +85,11 @@ SRC=aescrypt.c bin2hex.c dorandom.c (ALGORITHM).c dstring.c -#CFLAGS=-g -O2 -CFLAGS?=-g -Wall -W +CFLAGS=@CFLAGS@ +CPPFLAGS=@CPPFLAGS@ +LDFLAGS=@LDFLAGS@ -CRYPTOFLAGS=-Wall -W -O2 -DSTRICT_ALIGN=0 +CRYPTOFLAGS=-Wall -W -DSTRICT_ALIGN=0 all: aescrypt aesget tobin @@ -112,30 +113,30 @@ @cp tobin /bru/aserv/exec aescrypt: $(CRYPT_OBJ) - $(CC) $(CFLAGS) -o aescrypt $(CRYPT_OBJ) $(LIBS) + $(CC) $(LDFLAGS) -o aescrypt $(CRYPT_OBJ) $(LIBS) aesget: $(DECRYPT_OBJ) - $(CC) $(CFLAGS) -o aesget $(DECRYPT_OBJ) $(LIBS) + $(CC) $(LDFLAGS) -o aesget $(DECRYPT_OBJ) $(LIBS) tobin: bin2hex.o dstring.o tobin.c - $(CC) $(CFLAGS) -o tobin bin2hex.o dstring.o tobin.c $(LIBS) + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o tobin bin2hex.o dstring.o tobin.c $(LIBS) # I'm keeping track of dependencies from the start, sigh. aescrypt.o: aescrypt.c bin2hex.o dorandom.o $(ALGORITHM).o - $(CC) -c $(CFLAGS) aescrypt.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) aescrypt.c aesget.o: aesget.c bin2hex.o $(ALGORITHM).o - $(CC) -c $(CFLAGS) aesget.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) aesget.c dorandom.o: dorandom.c dorandom.h - $(CC) -c $(CFLAGS) dorandom.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) dorandom.c bin2hex.o: bin2hex.c bin2hex.h dstring.h - $(CC) -c $(CFLAGS) bin2hex.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) bin2hex.c $(ALGORITHM).o: $(ALGORITHM).c $(ALGORITHM).h aes.h $(ALG_TABLE) debug.h - $(CC) -c $(CRYPTOFLAGS) $(ALGORITHM).c + $(CC) -c $(CPPFLAGS) $(CRYPTOFLAGS) $(ALGORITHM).c dstring.o: dstring.c dstring.h - $(CC) -c $(CFLAGS) dstring.c + $(CC) -c $(CPPFLAGS) $(CFLAGS) dstring.c