comparison mupdf-source/thirdparty/zint/backend_tcl/win/makefile.vc @ 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 #------------------------------------------------------------- -*- makefile -*-
2 #
3 # makefile to build zint tcl extension
4 #
5 # Basic build and install
6 # nmake /f makefile.vc INSTALLDIR=c:\path\to\tcl
7 # nmake /f makefile.vc INSTALLDIR=c:\path\to\tcl install
8 #
9 # The options TCLDIR= and TKDIR= may be added, if the TCL/Tk installation
10 # (or source) is not automatically located.
11 #
12 # For other build options (debug, static etc.),
13 # See TIP 477 (https://core.tcl-lang.org/tips/doc/main/tip/477.md) for
14 # detailed documentation.
15 #
16 # See the file "license.terms" for information on usage and redistribution
17 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
18 #
19 #------------------------------------------------------------------------------
20
21 # The name of the package
22 PROJECT = zint
23 PROJECT_REQUIRES_TK = 1
24
25 # Generic source is in root build folder (1 up)
26 GENERICDIR = ..
27 # Access the generic backend files
28 BACKEND_DIR = $(ROOT)\..\backend
29
30 !include "rules-ext.vc"
31
32 # Define the object files and resource file that make up the extension.
33 # Note the resource file does not makes sense if doing a static library build
34 # hence it is under that condition. TMP_DIR is the output directory
35 # defined by rules for object files.
36 PRJ_OBJS = \
37 $(TMP_DIR)\zint.obj \
38 $(TMP_DIR)\2of5.obj \
39 $(TMP_DIR)\auspost.obj \
40 $(TMP_DIR)\aztec.obj \
41 $(TMP_DIR)\bc412.obj \
42 $(TMP_DIR)\bmp.obj \
43 $(TMP_DIR)\codablock.obj \
44 $(TMP_DIR)\code128.obj \
45 $(TMP_DIR)\code16k.obj \
46 $(TMP_DIR)\code1.obj \
47 $(TMP_DIR)\code49.obj \
48 $(TMP_DIR)\code.obj \
49 $(TMP_DIR)\common.obj \
50 $(TMP_DIR)\composite.obj \
51 $(TMP_DIR)\dllversion.obj \
52 $(TMP_DIR)\dmatrix.obj \
53 $(TMP_DIR)\dotcode.obj \
54 $(TMP_DIR)\dxfilmedge.obj \
55 $(TMP_DIR)\eci.obj \
56 $(TMP_DIR)\emf.obj \
57 $(TMP_DIR)\filemem.obj \
58 $(TMP_DIR)\general_field.obj \
59 $(TMP_DIR)\gif.obj \
60 $(TMP_DIR)\gridmtx.obj \
61 $(TMP_DIR)\gs1.obj \
62 $(TMP_DIR)\hanxin.obj \
63 $(TMP_DIR)\imail.obj \
64 $(TMP_DIR)\large.obj \
65 $(TMP_DIR)\library.obj \
66 $(TMP_DIR)\mailmark.obj \
67 $(TMP_DIR)\maxicode.obj \
68 $(TMP_DIR)\medical.obj \
69 $(TMP_DIR)\output.obj \
70 $(TMP_DIR)\pcx.obj \
71 $(TMP_DIR)\pdf417.obj \
72 $(TMP_DIR)\plessey.obj \
73 $(TMP_DIR)\png.obj \
74 $(TMP_DIR)\postal.obj \
75 $(TMP_DIR)\ps.obj \
76 $(TMP_DIR)\qr.obj \
77 $(TMP_DIR)\raster.obj \
78 $(TMP_DIR)\reedsol.obj \
79 $(TMP_DIR)\rss.obj \
80 $(TMP_DIR)\svg.obj \
81 $(TMP_DIR)\telepen.obj \
82 $(TMP_DIR)\tif.obj \
83 $(TMP_DIR)\ultra.obj \
84 $(TMP_DIR)\upcean.obj \
85 $(TMP_DIR)\vector.obj
86
87 # Define any additional compiler flags that might be required for the project
88 PRJ_DEFINES = -D_CRT_SECURE_NO_DEPRECATE
89 PRJ_DEFINES = $(PRJ_DEFINES) -DZINT_NO_PNG=1
90 # PRJ_DEFINES = $(PRJ_DEFINES) -DZINT_VERSION=PACKAGE_VERSION
91 PRJ_DEFINES = $(PRJ_DEFINES) -I$(TMP_DIR)
92 PRJ_DEFINES = $(PRJ_DEFINES) -I$(BACKEND_DIR)
93
94
95
96
97 # Define the standard targets
98 !include "$(_RULESDIR)\targets.vc"
99
100 # We must define a pkgindex target that will create a pkgIndex.tcl
101 # file in the $(OUT_DIR) directory. We can just redirect to the
102 # default-pkgindex target for our sample extension.
103 pkgindex: default-pkgindex
104
105 $(ROOT)\manifest.uuid:
106 copy $(WIN_DIR)\gitmanifest.in $(ROOT)\manifest.uuid
107 git rev-parse HEAD >>$(ROOT)\manifest.uuid
108
109 $(TMP_DIR)\zintUuid.h: $(ROOT)\manifest.uuid
110 copy $(WIN_DIR)\zintUuid.h.in+$(ROOT)\manifest.uuid $(TMP_DIR)\zintUuid.h
111
112
113 # The default install target only installs binaries and scripts so add
114 # an additional target for our documentation. Note this *adds* a target
115 # since no commands are listed after it. The original targets for
116 # install (from targets.vc) will remain.
117 # install: default-install-docs-n
118
119 # Explicit dependency rules
120 $(GENERICDIR)\zint.c : $(TMP_DIR)\zintUuid.h
121
122 {$(BACKEND_DIR)}.c{$(TMP_DIR)}.obj::
123 $(cc32) $(pkgcflags) -Fo$(TMP_DIR)\ @<<
124 $<
125 <<