From decb51529889b8f2afd67811d635379f030a1b19 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 13 Feb 2026 06:29:03 +0100 Subject: Replace thumbnail Makefile with configure script The thumbnail subproject has dependencies against dynstr and ImageMagick6, which might or might not be available on the system, or might have been installed to non-standard paths. Therefore, it is more robust to rely on a configure script that checks whether the packages are available and how to deal with CFLAGS/LDFLAGS. --- thumbnail/Makefile | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 thumbnail/Makefile (limited to 'thumbnail/Makefile') diff --git a/thumbnail/Makefile b/thumbnail/Makefile deleted file mode 100644 index 4ed1944..0000000 --- a/thumbnail/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -.POSIX: - -PROJECT = thumbnail -PREFIX = /usr/local -O = -Og -CDEFS = -D_FILE_OFFSET_BITS=64 # Required for large file support on 32-bit. -CFLAGS = $(O) $(CDEFS) -g -Wall -I../libweb/dynstr/include -I. \ - $$(pkg-config --cflags ImageMagick) -MD -MF $(@:.o=.d) -LDFLAGS = $(LIBS) -DEPS = $(OBJECTS:.o=.d) -DYNSTR = ../libweb/dynstr/libdynstr.a -DYNSTR_LIBS = -L../libweb/dynstr -ldynstr -LIBS = $$(pkg-config --libs ImageMagick) $(DYNSTR_LIBS) -OBJECTS = \ - crealpath.o \ - main.o \ - cftw.o - -all: $(PROJECT) - -install: all - cp thumbnail $(PREFIX)/bin/ - -clean: - rm -f $(OBJECTS) $(DEPS) - -distclean: clean - rm -f $(PROJECT) - -$(PROJECT): $(OBJECTS) $(DYNSTR) - $(CC) $(OBJECTS) $(LDFLAGS) $(LIBS) -o $@ - -$(DYNSTR): - +cd ../dynstr && $(MAKE) - --include $(DEPS) -- cgit v1.2.3