From 311cae99852698b5473bd092ec2c2602b2c6972a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 3 Aug 2023 15:13:00 -0400 Subject: [PATCH] Add autotools build system and rename some things. --- Makefile | 7 ------- Makefile.am | 3 +++ configure.ac | 14 ++++++++++++++ libsvgtiny-pixbuf.c => example.c | 0 4 files changed, 17 insertions(+), 7 deletions(-) delete mode 100644 Makefile create mode 100644 Makefile.am create mode 100644 configure.ac rename libsvgtiny-pixbuf.c => example.c (100%) diff --git a/Makefile b/Makefile deleted file mode 100644 index dfb6a47..0000000 --- a/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -OBJS = libsvgtiny-pixbuf.o -EXE = libsvgtiny-pixbuf -$(EXE): $(OBJS) - -.PHONY: clean -clean: - rm -f $(EXE) $(OBJS) diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..e27988d --- /dev/null +++ b/Makefile.am @@ -0,0 +1,3 @@ +bin_PROGRAMS = example +example_LDADD = $(LIBSVGTINY_LIBS) $(CAIRO_LIBS) +example_SOURCES = example.c diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..c1ddb30 --- /dev/null +++ b/configure.ac @@ -0,0 +1,14 @@ +AC_INIT([libsvgtiny-pixbuf],[0.0.1]) +AC_CONFIG_AUX_DIR([build-aux]) +AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz tar-ustar]) + +AC_PROG_CC + +PKG_CHECK_MODULES([LIBSVGTINY], [libsvgtiny]) +PKG_CHECK_MODULES([CAIRO], [cairo]) + +AC_CONFIG_FILES([ + Makefile +]) + +AC_OUTPUT diff --git a/libsvgtiny-pixbuf.c b/example.c similarity index 100% rename from libsvgtiny-pixbuf.c rename to example.c -- 2.43.2