From 051d1b0dba6e5c3efa8238e31ebd7a17b380db6d Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Thu, 4 Sep 2008 18:34:28 -0400 Subject: [PATCH] generalizing makefile to try to get it to work with BSDmake. --- src/keytrans/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/keytrans/Makefile b/src/keytrans/Makefile index 79602ef..4d54be7 100644 --- a/src/keytrans/Makefile +++ b/src/keytrans/Makefile @@ -1,10 +1,13 @@ +CFLAGS=`libgnutls-config --libs --cflags` -g -Wall --pedantic +CC=gcc + all: openpgp2ssh openpgp2ssh: openpgp2ssh.c gnutls-helpers.o - gcc -g -Wall --pedantic -o openpgp2ssh openpgp2ssh.c `libgnutls-config --libs --cflags` gnutls-helpers.o + $(CC) $(CFLAGS) -o openpgp2ssh openpgp2ssh.c gnutls-helpers.o -%.o: %.c - gcc -g -Wall --pedantic -o $@ -c $< +.c.o: + $(CC) $(CFLAGS) -c $< clean: rm -f openpgp2ssh *.o -- 2.25.1