From: Michael Orlitzky Date: Thu, 3 Aug 2023 19:13:00 +0000 (-0400) Subject: Add autotools build system and rename some things. X-Git-Tag: 0.0.1~58 X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=311cae99852698b5473bd092ec2c2602b2c6972a;p=libsvgtiny-pixbuf.git Add autotools build system and rename some things. --- 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