From 7de14dbc0b642ee492fe592ccb53e8d81a4dc599 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Wed, 12 Nov 2025 21:49:50 +0100 Subject: Initial commit --- src/bin/Makefile.am | 6 ++++++ src/bin/main.c | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/bin/Makefile.am create mode 100644 src/bin/main.c (limited to 'src/bin') diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am new file mode 100644 index 0000000..ef86ed0 --- /dev/null +++ b/src/bin/Makefile.am @@ -0,0 +1,6 @@ +AM_CPPFLAGS = -I$(top_srcdir)/src/include + +bin_PROGRAMS = aplwc + +aplwc_SOURCES = main.c +aplwc_LDADD = $(top_builddir)/src/core/libaplwc.la diff --git a/src/bin/main.c b/src/bin/main.c new file mode 100644 index 0000000..d91896b --- /dev/null +++ b/src/bin/main.c @@ -0,0 +1,15 @@ +#include + +int +main(int argc, char *argv[]) +{ + if(argc != 1) + return 1; + + APLWCFunctions fns; + + aplwc_init_fns(&fns); + APLWC *aplwc = aplwc_init(&fns, NULL); + aplwc_exit(aplwc); + return 0; +} -- cgit v1.2.3