comparison 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
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 # Linux makefile for zint - requires libzint
2 #
3 # make compiles zint
4 # make install copies binary to /usr/bin
5 # make uninstall removes the binary
6 # make clean cleans up a previous compilation and any object or editor files
7 #
8
9 ZINT_VERSION:=-DZINT_VERSION=\"2.13.0.9\"
10
11 CC := gcc
12 CFLAGS := -D_WIN32 -O2 -fms-extensions -mms-bitfields -fno-exceptions -fomit-frame-pointer -Wall -I../backend
13 prefix := /mingw
14 bindir := $(prefix)/bin
15 DESTDIR :=
16
17 all: zint zint_static
18
19 %.res:%.rc
20 windres -O coff --input-format=rc -i $< -o $@
21
22 zint: main.c zint.res
23 $(CC) $(CFLAGS) -DZINT_DLL -DPNG_DLL -DZLIB_DLL $(ZINT_VERSION) $? zint.res -o $@ -L../backend -lzint
24
25 zint_static: main.c zint.res
26 $(CC) -static $(CFLAGS) $(ZINT_VERSION) $? zint.res -o $@ -L../backend -lzint -lpng -lz
27
28 .PHONY: install uninstall clean dist
29
30 clean:
31 rm -f zint *.o *.a *~ *.png *.eps *.svg *.log *.exe *.bak *.res
32
33 install:
34 install -D -p zint $(DESTDIR)$(bindir)/zint
35
36 uninstall:
37 rm $(DESTDIR)$(bindir)/zint