Mercurial > hgrepos > Python2 > PyMuPDF
diff mupdf-source/thirdparty/zint/frontend/Makefile.mingw @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mupdf-source/thirdparty/zint/frontend/Makefile.mingw Mon Sep 15 11:43:07 2025 +0200 @@ -0,0 +1,37 @@ +# Linux makefile for zint - requires libzint +# +# make compiles zint +# make install copies binary to /usr/bin +# make uninstall removes the binary +# make clean cleans up a previous compilation and any object or editor files +# + +ZINT_VERSION:=-DZINT_VERSION=\"2.13.0.9\" + +CC := gcc +CFLAGS := -D_WIN32 -O2 -fms-extensions -mms-bitfields -fno-exceptions -fomit-frame-pointer -Wall -I../backend +prefix := /mingw +bindir := $(prefix)/bin +DESTDIR := + +all: zint zint_static + +%.res:%.rc + windres -O coff --input-format=rc -i $< -o $@ + +zint: main.c zint.res + $(CC) $(CFLAGS) -DZINT_DLL -DPNG_DLL -DZLIB_DLL $(ZINT_VERSION) $? zint.res -o $@ -L../backend -lzint + +zint_static: main.c zint.res + $(CC) -static $(CFLAGS) $(ZINT_VERSION) $? zint.res -o $@ -L../backend -lzint -lpng -lz + +.PHONY: install uninstall clean dist + +clean: + rm -f zint *.o *.a *~ *.png *.eps *.svg *.log *.exe *.bak *.res + +install: + install -D -p zint $(DESTDIR)$(bindir)/zint + +uninstall: + rm $(DESTDIR)$(bindir)/zint
