generalizing makefile to try to get it to work with BSDmake.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 4 Sep 2008 22:34:28 +0000 (18:34 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 4 Sep 2008 22:34:28 +0000 (18:34 -0400)
src/keytrans/Makefile

index 79602efa6c2fc7da11ff5d5e2d3e1f23c7a6f6f1..4d54be743f88c31be6fab35fb456be2ab700872b 100644 (file)
@@ -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