]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
Add autotools build system and rename some things.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 3 Aug 2023 19:13:00 +0000 (15:13 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 3 Aug 2023 19:13:00 +0000 (15:13 -0400)
Makefile [deleted file]
Makefile.am [new file with mode: 0644]
configure.ac [new file with mode: 0644]
example.c [moved from libsvgtiny-pixbuf.c with 100% similarity]

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
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 (file)
index 0000000..e27988d
--- /dev/null
@@ -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 (file)
index 0000000..c1ddb30
--- /dev/null
@@ -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
similarity index 100%
rename from libsvgtiny-pixbuf.c
rename to example.c