From: Daniel Kahn Gillmor Date: Thu, 4 Sep 2008 22:34:28 +0000 (-0400) Subject: generalizing makefile to try to get it to work with BSDmake. X-Git-Tag: monkeysphere_0.15-1~26 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=051d1b0dba6e5c3efa8238e31ebd7a17b380db6d;p=monkeysphere.git generalizing makefile to try to get it to work with BSDmake. --- 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