Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

always build sample applications

  • Loading branch information...
commit d68b877f7804842617f38ceb91dee6814e81e015 1 parent 4fadf15
@lhoward lhoward authored
View
2  Makefile.am
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = libbrowserid
+SUBDIRS = libbrowserid sample
if GSSBID_BUILD_MECH
SUBDIRS += mech_browserid
endif
View
2  README.md
@@ -17,7 +17,7 @@ the Moonshot code).
If you would just like to build libbrowserid, then execute configure with the
--disable-gss-mech flag. This will remove Kerberos as a dependency. Sample code
-for using it in a non-GSS application can be found in contrib/sample.
+for using it in a non-GSS application can be found in sample.
Information on the BrowserID GSS protocol can be found in the document
gss-browserid.md, however essentially the protocol is the same as for web-based
View
2  configure.ac
@@ -82,6 +82,6 @@ AX_CHECK_JANSSON
AX_CHECK_OPENSSL
AM_CONDITIONAL(OPENSSL, test "x$found_openssl" = "xyes")
-AC_CONFIG_FILES([Makefile libbrowserid/Makefile mech_browserid/Makefile
+AC_CONFIG_FILES([Makefile libbrowserid/Makefile sample/Makefile mech_browserid/Makefile
mech_browserid.spec])
AC_OUTPUT
View
21 contrib/sample/Makefile
@@ -1,21 +0,0 @@
-CFLAGS=-I../.. -I../../libbrowserid
-LDFLAGS=-L/usr/local/lib -L../../libbrowserid/.libs
-LIBS=-lbrowserid
-
-all: bidget bidverify
-
-bidget: bidget.o
- clang -o $@ $^ $(LDFLAGS) $(LIBS)
-
-bidget.o: bidget.c
- clang $(CFLAGS) -g -Wall -c -o $@ $^
-
-bidverify: bidverify.o
- clang -o $@ $^ $(LDFLAGS) $(LIBS)
-
-bidverify.o: bidverify.c
- clang $(CFLAGS) -g -Wall -c -o $@ $^
-
-clean:
- rm -f bidget bidverify *.o
-
View
11 sample/Makefile.am
@@ -0,0 +1,11 @@
+AUTOMAKE_OPTIONS = foreign
+
+CFLAGS += -I../libbrowserid
+
+noinst_PROGRAMS = bidget bidverify
+
+bidget_SOURCES = bidget.c
+bidget_LDADD = ../libbrowserid/libbrowserid.la
+
+bidverify_SOURCES = bidget.c
+bidverify_LDADD = ../libbrowserid/libbrowserid.la
View
0  contrib/sample/bidget.c → sample/bidget.c
File renamed without changes
View
0  contrib/sample/bidverify.c → sample/bidverify.c
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.