summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-04 18:34:28 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-04 18:34:28 -0400
commit051d1b0dba6e5c3efa8238e31ebd7a17b380db6d (patch)
tree976656458eef524896ad4b65d1fc35f4a276d747 /src
parent5651c90e2d952443f251b93376f1d4531c41064c (diff)
generalizing makefile to try to get it to work with BSDmake.
Diffstat (limited to 'src')
-rw-r--r--src/keytrans/Makefile9
1 files 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