Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/backend/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 libzint | |
| 2 # | |
| 3 # make compiles with QR Code support | |
| 4 # make install copies to /usr/lib | |
| 5 # make uninstall removes library | |
| 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 | |
| 12 CC:= gcc | |
| 13 AR:= ar rc | |
| 14 RANLIB:= ranlib | |
| 15 INCLUDE:= -I/mingw/include | |
| 16 CFLAGS:= -D_WIN32 -O2 -fms-extensions -mms-bitfields -fno-exceptions -fomit-frame-pointer -Wall | |
| 17 | |
| 18 prefix := /mingw | |
| 19 includedir := $(prefix)/include | |
| 20 libdir := $(prefix)/lib | |
| 21 bindir := $(prefix)/bin | |
| 22 DESTDIR := | |
| 23 APP:=zint | |
| 24 DLL:=$(APP).dll | |
| 25 STATLIB:=lib$(APP).a | |
| 26 | |
| 27 COMMON_OBJ:= common.o library.o large.o reedsol.o gs1.o eci.o filemem.o general_field.o sjis.o gb2312.o gb18030.o | |
| 28 ONEDIM_OBJ:= code.o code128.o 2of5.o upcean.o telepen.o medical.o plessey.o rss.o | |
| 29 POSTAL_OBJ:= postal.o auspost.o imail.o mailmark.o | |
| 30 TWODIM_OBJ:= code16k.o codablock.o dmatrix.o pdf417.o qr.o maxicode.o composite.o aztec.o code49.o code1.o gridmtx.o hanxin.o dotcode.o ultra.o | |
| 31 OUTPUT_OBJ:= vector.o ps.o svg.o emf.o bmp.o pcx.o gif.o png.o tif.o raster.o output.o | |
| 32 | |
| 33 LIB_OBJ:= $(COMMON_OBJ) $(ONEDIM_OBJ) $(TWODIM_OBJ) $(POSTAL_OBJ) $(OUTPUT_OBJ) | |
| 34 DLL_OBJ:= $(LIB_OBJ:.o=.lo) dllversion.lo | |
| 35 | |
| 36 | |
| 37 ifeq ($(ZINT_NO_PNG),true) | |
| 38 DEFINES+= -DZINT_NO_PNG | |
| 39 else | |
| 40 DEFINES_DLL+= -DPNG_DLL -DZLIB_DLL | |
| 41 LIBS+= -lpng -lz | |
| 42 endif | |
| 43 | |
| 44 LIBS+= -lm | |
| 45 | |
| 46 all: $(DLL) $(STATLIB) | |
| 47 | |
| 48 %.lo:%.c | |
| 49 @echo Compiling $< ... | |
| 50 $(CC) $(CFLAGS) $(DEFINES) $(DEFINES_DLL) -DDLL_EXPORT -DPIC $(ZINT_VERSION) -c -o $@ $< | |
| 51 | |
| 52 %.o:%.c | |
| 53 @echo Compiling $< ... | |
| 54 $(CC) $(CFLAGS) $(DEFINES) $(ZINT_VERSION) -c -o $@ $< | |
| 55 | |
| 56 $(DLL):$(DLL_OBJ) | |
| 57 @echo Linking $@... | |
| 58 o2dll.sh -o $@ $(DLL_OBJ) $(LIBS) | |
| 59 | |
| 60 $(STATLIB): $(LIB_OBJ) | |
| 61 @echo Linking $@... | |
| 62 $(AR) $@ $(LIB_OBJ) | |
| 63 -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 | |
| 64 | |
| 65 .PHONY: install uninstall clean dist | |
| 66 | |
| 67 install: | |
| 68 cp -fp libzint.* $(DESTDIR)$(libdir) | |
| 69 cp -fp zint.h $(DESTDIR)$(includedir)/zint.h | |
| 70 cp -fp zint.dll $(DESTDIR)$(bindir) | |
| 71 | |
| 72 uninstall: | |
| 73 rm $(DESTDIR)$(libdir)/libzint.* | |
| 74 rm $(DESTDIR)$(includedir)/zint.h | |
| 75 rm $(DESTDIR)$(bindir)/zint.dll | |
| 76 | |
| 77 clean: | |
| 78 rm -f *.lib *.dll *.o *.a *~ *.res *.exe *.def *.lo *.bak | |
| 79 | |
| 80 |
