Skip to content

Commit

Permalink
Initial commit, skeleton.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <[email protected]>
  • Loading branch information
Ben Collins committed May 18, 2015
0 parents commit e126a01
Show file tree
Hide file tree
Showing 14 changed files with 981 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Makefile.in
Makefile
/autom4te.cache
/aclocal.m4
/compile
/configure
/depcomp
/install-sh
/missing
/stamp-h1
/m4/*.m4
/config.guess
/config.sub
/config.log
/config.status
/ltmain.sh
/libtool
/libjwt/.deps/*
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ben Collins <[email protected]>
515 changes: 515 additions & 0 deletions COPYING.LIB

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please see http://github.com/benmcollins/jwt
370 changes: 370 additions & 0 deletions INSTALL

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = include libjwt
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please see http://github.com/benmcollins/jwt
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JWT C Library
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
AC_PREREQ([2.61])
AC_INIT([libjwt], [1.0.0], [[email protected]])
AM_INIT_AUTOMAKE
LT_PREREQ([2.2])
LT_INIT([])
AC_CONFIG_MACRO_DIR([m4])

AC_CONFIG_FILES([Makefile include/Makefile libjwt/Makefile])

AC_OUTPUT
1 change: 1 addition & 0 deletions include/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include_HEADERS = jwt.h
31 changes: 31 additions & 0 deletions include/jwt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* Copyright (C) 2015 Ben Collins <[email protected]>
This file is part of the JWT C Library
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#ifndef JWT_H
#define JWT_H

#ifdef __cplusplus
extern "C" {
#endif

void jwt(void);

#ifdef __cplusplus
}
#endif

#endif /* JWT_H */
5 changes: 5 additions & 0 deletions libjwt/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lib_LTLIBRARIES = libjwt.la
libjwt_la_SOURCES = jwt.c
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
libjwt_la_LDFLAGS = -version-info 0:0:0
libjwt_la_CPPFLAGS = -I$(top_srcdir)/include
24 changes: 24 additions & 0 deletions libjwt/jwt.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Copyright (C) 2015 Ben Collins <[email protected]>
This file is part of the JWT C Library
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#include <stdio.h>
#include <jwt.h>

void jwt(void)
{
fprintf(stderr, "Hello World!\n");
}
Empty file added m4/.keep
Empty file.

0 comments on commit e126a01

Please sign in to comment.