Debian Codegraph @

Makefile.am

raw ◀ ▶
Source reconstructed at patch state 0 of 7 — not the installed (fully patched) source.
7 Debian patches touch this file
1 #
2 # Makefile.am - hplip automake input file
3 #
4 # (c) 2004-2015 Copyright HP Development Company, LP
5 # Author: David Suffield, Naga Samrat Chowdary Narla, Sarbeswar Meher
6 INCLUDES = -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -Icommon/
7 CFLAGS+= -DCONFDIR=\"$(hplip_confdir)\"
8 CXXFLAGS+= -DCONFDIR=\"$(hplip_confdir)\"
9
10 hplipdir = $(datadir)/hplip
11 apparmordir = /etc/apparmor.d
12 docdir = $(hpdocdir)
13 htmldir = $(hphtmldir)
14 doc_DATA = COPYING copyright prnt/hpijs/README_LIBJPG
15 EXTRA_DIST = prnt/hpijs/gdevijs-krgb-1.5-gs8.61.patch prnt/hpijs/README_LIBJPG copyright
16 UNAME = $(shell uname -m)
17 EXPORT_PATH=$(shell export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/prnt/hpcups/)
18 EXPORT_PATH1=$(shell export LIBRARY_PATH=$LIBRARY_PATH:$PWD/prnt/hpcups/)
19
20 dist_noinst_SCRIPTS =
21 dist_noinst_DATA =
22 noinst_PROGRAMS =
23 lib_LTLIBRARIES =
24
25 include foomatic_drv.inc
26 include unreleased.inc
27 if !HPLIP_CLASS_DRIVER
28 include cups_drv.inc
29 endif
30 if HPLIP_CLASS_DRIVER
31 include class_cups_drv.inc
32 endif
33
34 if DOC_BUILD
35 wwwsrc = doc
36 www0dir = $(htmldir)
37 dist_www0_DATA = $(wwwsrc)/index.html $(wwwsrc)/commandline.html $(wwwsrc)/copying.html $(wwwsrc)/devicemanager.html $(wwwsrc)/faxtrouble.html $(wwwsrc)/gettinghelp.html $(wwwsrc)/hpscan.html $(wwwsrc)/mainttask.html $(wwwsrc)/plugins.html $(wwwsrc)/print.html $(wwwsrc)/printing.html $(wwwsrc)/printoptions.html $(wwwsrc)/printtroubleshooting.html $(wwwsrc)/scanning.html $(wwwsrc)/scantrouble.html $(wwwsrc)/sendfax.html $(wwwsrc)/setup.html $(wwwsrc)/systray.html $(wwwsrc)/troubleshooting.html $(wwwsrc)/uninstalling.html $(wwwsrc)/upgrading.html
38 www3dir = $(htmldir)/styles
39 dist_www3_DATA = $(wwwsrc)/styles/*
40 www4dir = $(htmldir)/images
41 dist_www4_DATA = $(wwwsrc)/images/*
42 endif
43
44 if HPLIP_BUILD
45 if !HPLIP_CLASS_DRIVER
46 # hp backend.
47 hpdir = $(cupsbackenddir)
48 hp_PROGRAMS = hp
49 hp_SOURCES = prnt/backend/hp.c
50 hp_LDADD = libhpmud.la libhpdiscovery.la $(DBUS_LIBS)
51 hp_LDFLAGS = $(libhpmud_la_LDFLAGS)
52 hp_CFLAGS = $(DBUS_CFLAGS)
53 endif #HPLIP_CLASS_DRIVER
54 # hpaio sane backend
55 if !HPLIP_CLASS_DRIVER
56 if SCAN_BUILD
57 libsane_hpaiodir = $(libdir)/sane
58 libsane_hpaio_LTLIBRARIES = libsane-hpaio.la
59 libsane_hpaio_la_SOURCES = scan/sane/hpaio.c scan/sane/mfpdtf.c scan/sane/pml.c scan/sane/scl.c scan/sane/io.c scan/sane/hpaio.h \
60 scan/sane/pml.h scan/sane/saneopts.h scan/sane/io.h scan/sane/mfpdtf.h scan/sane/sane.h scan/sane/scl.h scan/sane/tables.h \
61 scan/sane/common.c scan/sane/common.h scan/sane/soap.h scan/sane/soapht.h scan/sane/sanei_debug.h scan/sane/sanei.h \
62 scan/sane/sanei_init_debug.c scan/sane/marvell.h scan/sane/marvelli.h scan/sane/marvell.c scan/sane/soapht.c scan/sane/soap.c \
63 scan/sane/soaphti.h scan/sane/soapi.h scan/sane/xml.c scan/sane/xml.h scan/sane/ledm.h scan/sane/ledmi.h scan/sane/ledm.c \
64 scan/sane/bb_ledm.c scan/sane/http.h scan/sane/http.c scan/sane/sclpml.c scan/sane/sclpml.h common/utils.c common/utils.h \
65 scan/sane/escl.h scan/sane/escli.h scan/sane/escl.c \
66 scan/sane/orblitei.h scan/sane/orblite.h scan/sane/orblite.c \
67 scan/sane/OrbliteScan/LinuxCommon.h scan/sane/OrbliteScan/MacCommon.h
68 if DARWIN_BUILD
69 libsane_hpaio_la_LDFLAGS = -module -framework CoreFoundation -version-info 1:0:0
70 else
71 libsane_hpaio_la_LDFLAGS = -version-info 1:0:0
72 endif
73 # The following is a interlibrary dependency that must be compiled first.
74 libsane_hpaio_la_LIBADD = libhpip.la libhpmud.la libhpipp.la $(DBUS_LIBS) -lcups -ldl
75 #libsane_hpaio_la_CFLAGS = -DWITH_NONAMESPACES -DSOAP_DEBUG
76 libsane_hpaio_la_CFLAGS = $(DBUS_CFLAGS) -Iprotocol
77
78 if NETWORK_BUILD
79 libsane_hpaio_la_LIBADD += libhpdiscovery.la
80 libsane_hpaio_la_CFLAGS += -Iprotocol/discovery
81 endif
82 endif #!HPLIP_CLASS_DRIVER
83 endif # SCAN_BUILD
84
85
86 # HP Service Discovery library
87 if NETWORK_BUILD
88 lib_LTLIBRARIES += libhpdiscovery.la
89 #libhpdiscovery_la_SOURCES = protocol/discovery/mdns.c protocol/discovery/mdns.h
90 libhpdiscovery_la_SOURCES = protocol/discovery/avahiDiscovery.c protocol/discovery/avahiDiscovery.h
91 libhpdiscovery_la_CFLAGS = -DCONFDIR=\"$(hplip_confdir)\" -I/usr/include/avahi-client -I/usr/include/avahi-core -I/usr/include/avahi-common $(DBUS_CFLAGS)
92 libhpdiscovery_la_LDFLAGS = -version-info 0:1:0 -L$(libdir)
93 libhpdiscovery_la_LIBADD = -l$(SNMPLIB) -lcrypto -lavahi-client -lavahi-core -lavahi-common $(DBUS_LIBS)
94 endif #NETWORK_BUILD
95
96
97 # hpmud library
98 if !HPLIP_CLASS_DRIVER
99 MUDNAME=hpmud
100 lib_LTLIBRARIES += libhpmud.la
101 libhpmud_la_CFLAGS = -DMUDNAME=\"$(MUDNAME)\" -DCONFDIR=\"$(hplip_confdir)\" -Iprotocol
102 libhpmud_la_LDFLAGS = -version-info 0:6:0 -lpthread -ldl
103 libhpmud_la_SOURCES = io/hpmud/hpmud.c io/hpmud/mlc.c io/hpmud/model.c io/hpmud/pml.c \
104 io/hpmud/hpmud.h io/hpmud/hpmudi.h io/hpmud/list.h io/hpmud/mlc.h io/hpmud/pml.h io/hpmud/dot4.c \
105 io/hpmud/dot4.h io/hpmud/jd.c io/hpmud/jd.h io/hpmud/pp.c io/hpmud/pp.h io/hpmud/musb.h \
106 common/utils.c common/utils.h
107
108 if LIBUSB01_BUILD
109 libhpmud_la_SOURCES += io/hpmud/musb_libusb01.c
110 libhpmud_la_LDFLAGS += -lusb
111 else
112 libhpmud_la_SOURCES += io/hpmud/musb.c
113 libhpmud_la_CFLAGS += -I/usr/include/libusb-1.0
114 libhpmud_la_LDFLAGS += -lusb-1.0
115 endif
116
117
118 if NETWORK_BUILD
119 libhpmud_la_CFLAGS += -Iprotocol/discovery
120 libhpmud_la_LDFLAGS += -l$(SNMPLIB) -lcrypto
121 libhpmud_la_LIBADD = libhpdiscovery.la
122 endif
123 endif #HPLIP_CLASS_DRIVER
124
125 # ip library
126 lib_LTLIBRARIES += libhpip.la
127 libhpip_la_LDFLAGS = -version-info 0:1:0
128 libhpip_la_LIBADD = -lm
129 libhpip_la_SOURCES = ip/xconvolve.c ip/xfax.c ip/xgrayout.c ip/xjpg_dct.c ip/xjpg_fix.c ip/xpad.c ip/xrotate.c ip/xskel.c ip/xtiff.c \
130 ip/ipmain.c ip/xchgbpp.c ip/xcrop.c ip/xgamma.c ip/xjpg_dec.c ip/xjpg_huf.c ip/xpcx.c ip/xsaturation.c ip/xtable.c ip/xtonemap.c \
131 ip/xbi2gray.c ip/xcolrspc.c ip/xfakemono.c ip/xgray2bi.c ip/xinvert.c ip/xjpg_enc.c ip/xmatrix.c ip/xpnm.c ip/xscale.c ip/xthumb.c ip/xyxtract.c \
132 ip/hpip.h ip/ipdefs.h ip/xform.h ip/xjpg_dct.h ip/xjpg_huf.h ip/xjpg_mrk.h
133
134 #hpmud rules data dir
135 rulessystemdir=/usr/lib/systemd/system
136 dist_rulessystem_DATA =data/rules/[email protected]
137
138 # hpmud.rules
139 if !HPLIP_CLASS_DRIVER
140 rulesdir = /etc/udev/rules.d
141 if UDEV_SYSFS_RULES
142 dist_rules_DATA = data/rules/56-hpmud_sysfs.rules
143 else
144 dist_rules_DATA = data/rules/56-hpmud.rules
145 endif
146 endif #HPLIP_CLASS_DRIVER
147
148 halpredir = /usr/share/hal/fdi/preprobe/10osvendor
149 dist_halpre_DATA = data/rules/20-hplip-devices.fdi
150
151 # hplip.conf
152 hplip_confdir = /etc/hp
153 hplip_conf_DATA = hplip.conf
154
155 if !HPLIP_CLASS_DRIVER
156 #pstotiff filter
157 pstotiffdir = $(cupsfilterdir)
158 pstotiff_SCRIPTS = fax/filters/pstotiff
159 endif #HPLIP_CLASS_DRIVER
160
161 # hplip.state
162 hplip_statedir = /var/lib/hp
163 dist_hplip_state_DATA =
164
165 if FULL_BUILD
166 if !HPLIP_CLASS_DRIVER
167 dist_hplip_SCRIPTS = hpssd.py __init__.py hpdio.py
168 endif #HPLIP_CLASS_DRIVER
169
170 dist_noinst_DATA += prnt/drv/hpijs.drv.in.template prnt/drv/hpcups.drv.in.template prnt/hpcups/libImageProcessor-x86_64.so prnt/hpcups/libImageProcessor-x86_32.so
171
172 dist_noinst_DATA += prnt/ipp-usb/HPLIP.conf
173 dist_noinst_SCRIPTS += dat2drv.py install.py hplip-install init-suse-firewall init-iptables-firewall class_rpm_build.sh hplipclassdriver.spec createPPD.sh Makefile_dat2drv hpijs-drv
174
175 if !HPLIP_CLASS_DRIVER
176 dist_noinst_DATA += scan/sane/hpaio.desc
177 endif #HPLIP_CLASS_DRIVER
178
179 cmddir = $(hplipdir)
180 if !HPLIP_CLASS_DRIVER
181 dist_cmd_SCRIPTS = align.py info.py print.py toolbox.py clean.py colorcal.py unload.py testpage.py makeuri.py check.py fab.py levels.py \
182 sendfax.py setup.py makecopies.py probe.py timedate.py firmware.py scan.py systray.py plugin.py linefeedcal.py pqdiag.py \
183 faxsetup.py devicesettings.py printsettings.py query.py pkservice.py wificonfig.py diagnose_plugin.py uninstall.py \
184 upgrade.py config_usb_printer.py diagnose_queues.py logcapture.py doctor.py uiscan.py
185
186 homedir = $(hplipdir)
187 dist_home_DATA = check-plugin.py
188 dist_home_DATA += hplip_clean.sh
189
190 # base
191 basedir = $(hplipdir)/base
192
193 dist_base_DATA = base/maint.py base/codes.py base/g.py base/pml.py base/status.py base/local.py \
194 base/__init__.py base/mfpdtf.py base/utils.py base/wifi.py base/LedmWifi.py base/CdmWifi.py \
195 base/device.py base/logger.py base/slp.py base/exif.py base/strings.py base/magic.py \
196 base/imagesize.py base/models.py base/validation.py base/sixext.py base/avahi.py \
197 base/mdns.py base/tui.py base/dime.py base/ldif.py base/vcard.py base/module.py \
198 base/pkit.py base/queues.py base/password.py base/services.py base/os_utils.py \
199 base/smart_install.py base/six.py base/imageprocessing.py
200
201 basepexpectdir = $(hplipdir)/base/pexpect
202 dist_basepexpect_DATA=base/pexpect/__init__.py
203 endif #HPLIP_CLASS_DRIVER
204 if !HPLIP_CLASS_DRIVER
205 # installer
206 installdir = $(hplipdir)/installer
207 dist_install_DATA = installer/__init__.py installer/dcheck.py installer/distros.dat installer/core_install.py installer/pluginhandler.py
208 dist_noinst_DATA += installer/text_install.py
209
210 # makecopies
211 copierdir = $(hplipdir)/copier
212 dist_copier_DATA = copier/copier.py copier/__init__.py
213 endif #HPLIP_CLASS_DRIVER
214
215 # fax
216 if FAX_BUILD
217 if !HPLIP_CLASS_DRIVER
218 faxdir = $(hplipdir)/fax
219 dist_fax_DATA = fax/fax.py fax/__init__.py fax/coverpages.py fax/pmlfax.py fax/ledmfax.py fax/cdmfax.py fax/soapfax.py fax/ledmsoapfax.py fax/marvellfax.py \
220 fax/faxdevice.py fax/filters/pstotiff fax/filters/pstotiff.convs fax/filters/pstotiff.types
221 fax_filtersdir = $(mimedir)
222 dist_fax_filters_DATA = fax/filters/pstotiff.convs fax/filters/pstotiff.types
223 hpfaxdir = $(cupsbackenddir)
224 dist_hpfax_SCRIPTS = fax/backend/hpfax.py
225 hpijsfaxppddir = $(hpppddir)
226 hpcupsfaxppddir = $(hpppddir)
227 if HPIJS_INSTALL
228 dist_hpijsfaxppd_DATA = fax/ppd/HP-Fax-hpijs.ppd.gz fax/ppd/HP-Fax2-hpijs.ppd.gz fax/ppd/HP-Fax3-hpijs.ppd.gz fax/ppd/HP-Fax4-hpijs.ppd.gz
229 endif # HPIJS_INSTALL
230 if HPCUPS_INSTALL
231 dist_hpcupsfaxppd_DATA = fax/ppd/HP-Fax-hpcups.ppd.gz fax/ppd/HP-Fax2-hpcups.ppd.gz fax/ppd/HP-Fax3-hpcups.ppd.gz fax/ppd/HP-Fax4-hpcups.ppd.gz fax/ppd/HP-Fax-CDM-hpcups.ppd.gz
232 endif # HPCUPS_INSTALL
233 endif # HPLIP_CLASS_DRIVER
234 endif # FAX_BUILD
235
236 if !HPLIP_CLASS_DRIVER
237 # AppArmor Changes
238 if APPARMOR_BUILD
239 apparmor_profiledir = /etc/apparmor.d
240 apparmor_profile_DATA = apparmor/usr.share.hplip
241 dist_apparmor_profile_DATA = apparmor/usr.share.hplip
242
243 apparmor_abstractiondir = /etc/apparmor.d/abstractions
244 apparmor_abstraction_DATA = apparmor/abstractions/hplip
245 dist_apparmor_abstraction_DATA = apparmor/abstractions/hplip
246
247 endif #APPARMOR_BUILD
248 endif #!HPLIP_CLASS_DRIVER
249
250 selinuxdir =
251 dist_selinux_DATA = selinux/hplip.te selinux/hplip.fc selinux/hplip.pp selinux/hplip.if selinux/mypol.pp selinux/mypol.te
252 if !HPLIP_CLASS_DRIVER
253 # ptest
254 noinst_PROGRAMS += ptest
255 ptest_SOURCES = pcard/ptest.c pcard/ptest.h pcard/fat.c pcard/fat.h
256 ptest_LDADD = libhpmud.la libhpdiscovery.la
257 endif #!HPLIP_CLASS_DRIVER
258
259 # data
260 modelsdir = $(hplipdir)/data/models
261 if !HPLIP_CLASS_DRIVER
262 images_16x16dir = $(hplipdir)/data/images/16x16
263 images_24x24dir = $(hplipdir)/data/images/24x24
264 images_32x32dir = $(hplipdir)/data/images/32x32
265 images_64x64dir = $(hplipdir)/data/images/64x64
266 images_128x128dir = $(hplipdir)/data/images/128x128
267 images_256x256dir = $(hplipdir)/data/images/256x256
268 images_devicesdir = $(hplipdir)/data/images/devices
269 images_otherdir = $(hplipdir)/data/images/other
270 pcldir = $(hplipdir)/data/pcl
271 ldldir = $(hplipdir)/data/ldl
272 postscriptdir = $(hplipdir)/data/ps
273 localzdir = $(hplipdir)/data/localization
274 dist_postscript_DATA = data/ps/testpage.ps.gz data/ps/clean_page.pdf.gz
275 endif #HPLIP_CLASS_DRIVER
276 dist_models_DATA = data/models/models.dat
277
278 if GUI_BUILD
279 if !HPLIP_CLASS_DRIVER
280 dist_images_16x16_DATA = data/images/16x16/*
281 dist_images_24x24_DATA = data/images/24x24/*
282 dist_images_32x32_DATA = data/images/32x32/*
283 dist_images_64x64_DATA = data/images/64x64/*
284 dist_images_128x128_DATA = data/images/128x128/*
285 dist_images_256x256_DATA = data/images/256x256/*
286 dist_images_devices_DATA = data/images/devices/*
287 dist_images_other_DATA = data/images/other/*
288 endif #HPLIP_CLASS_DRIVER
289 endif
290
291 if !HPLIP_CLASS_DRIVER
292 dist_pcl_DATA = data/pcl/align1_8xx.pcl.gz data/pcl/align1_9xx.pcl.gz data/pcl/align2_8xx.pcl.gz data/pcl/align3_8xx.pcl.gz data/pcl/align4_8xx.pcl.gz \
293 data/pcl/align5_8xx.pcl.gz data/pcl/align2_9xx.pcl.gz data/pcl/align3_9xx.pcl.gz data/pcl/align4_450.pcl.gz data/pcl/align6_450.pcl.gz \
294 data/pcl/colorcal1_450.pcl.gz data/pcl/colorcal2_450.pcl.gz data/pcl/crbcal.pcl.gz data/pcl/crcaldone.pcl.gz data/pcl/crcbcal.pcl.gz data/pcl/crccal.pcl.gz \
295 data/pcl/crcpcal.pcl.gz data/pcl/crpcal.pcl.gz
296 dist_ldl_DATA = data/ldl/cb2pcal.ldl.gz data/ldl/cb2pcal_done.ldl.gz data/ldl/cbbcal.ldl.gz data/ldl/cbccal.ldl.gz data/ldl/cbccal_done.ldl.gz data/ldl/cbcpcal.ldl.gz \
297 data/ldl/cbpcal.ldl.gz
298 dist_localz_DATA = data/localization/hplip_de.qm data/localization/hplip_es.qm data/localization/hplip_fr.qm data/localization/hplip_it.qm \
299 data/localization/hplip_pt.qm data/localization/hplip_ru.qm data/localization/hplip_zh.qm
300 dist_noinst_DATA += data/localization/hplip_de.ts data/localization/hplip_es.ts data/localization/hplip_fr.ts data/localization/hplip_it.ts \
301 data/localization/hplip_pt.ts data/localization/hplip_ru.ts data/localization/hplip_zh.ts
302 endif #!HPLIP_CLASS_DRIVER
303
304 # pcard
305 if !HPLIP_CLASS_DRIVER
306 pcarddir = $(hplipdir)/pcard
307 dist_pcard_DATA = pcard/__init__.py pcard/photocard.py
308
309 # pcardext
310 pcardextdir = $(PYTHONEXECDIR)
311 pcardextdir = $(PYTHONEXECDIR)
312 pcardext_LTLIBRARIES = pcardext.la
313 pcardext_la_LDFLAGS = -module -avoid-version
314 pcardext_la_SOURCES = pcard/pcardext/pcardext.c pcard/fat.c
315 pcardext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
316
317 # prnt
318 prntdir = $(hplipdir)/prnt
319 dist_prnt_DATA = prnt/cups.py prnt/__init__.py prnt/ldl.py prnt/pcl.py prnt/colorcal.py
320
321 # IPP library
322 lib_LTLIBRARIES += libhpipp.la
323 #hpipp_LTLIBRARIES = hpipp.la
324 #hpipp_la_LDFLAGS = -module -avoid-version
325 libhpipp_la_SOURCES = protocol/hp_ipp.c protocol/hp_ipp.h protocol/hp_ipp_i.h
326 libhpipp_la_CFLAGS = -DCONFDIR=\"$(hplip_confdir)\"
327 libhpipp_la_LDFLAGS = -version-info 0:1:0
328 libhpipp_la_LIBADD = libhpmud.la
329
330 # cupsext
331 cupsextdir = $(PYTHONEXECDIR)
332 cupsext_LTLIBRARIES = cupsext.la
333 cupsext_la_LDFLAGS = -module -avoid-version
334 cupsext_la_SOURCES = prnt/cupsext/cupsext.c prnt/cupsext/cupsext.h
335 cupsext_la_CFLAGS = -I$(PYTHONINCLUDEDIR) -Iprotocol
336 cupsext_la_LIBADD = -lcups libhpipp.la
337 endif #HPLIP_CLASS_DRIVER
338
339 if !HPLIP_CLASS_DRIVER
340 if SCAN_BUILD
341 # scan
342 scandir = $(hplipdir)/scan
343 dist_scan_DATA = scan/__init__.py scan/sane.py
344
345 # scanext
346 scanextdir = $(PYTHONEXECDIR)
347 scanext_LTLIBRARIES = scanext.la
348 scanext_la_LDFLAGS = -module -avoid-version -lsane
349 scanext_la_SOURCES = scan/scanext/scanext.c
350 scanext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
351 endif #SCAN_BUILD
352 endif #!HPLIP_CLASS_DRIVER
353
354 # hpmudext
355 if !HPLIP_CLASS_DRIVER
356 hpmudextdir = $(PYTHONEXECDIR)
357 hpmudext_LTLIBRARIES = hpmudext.la
358 hpmudext_la_LDFLAGS = -module -avoid-version
359 hpmudext_la_SOURCES = io/mudext/hpmudext.c
360 hpmudext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
361 hpmudext_la_LIBADD = libhpmud.la
362
363 if NETWORK_BUILD
364 hpmudext_la_LIBADD += libhpdiscovery.la
365 hpmudext_la_CFLAGS += -Iprotocol/discovery
366 endif
367
368 if !LIBUSB01_BUILD
369 hpmudext_la_CFLAGS +=-I/usr/include/libusb-1.0
370 endif
371 endif #!HPLIP_CLASS_DRIVER
372 # ui (qt3)
373 if GUI_BUILD
374 if QT3_INSTALL
375 uidir = $(hplipdir)/ui
376 dist_ui_DATA = ui/alignform.py \
377 ui/colorcalform_base.py ui/colorcalform.py ui/coloradjform_base.py ui/coloradjform.py ui/devmgr4_base.py ui/devmgr4.py \
378 ui/__init__.py ui/loadpaperform_base.py ui/loadpaperform.py \
379 ui/paperedgealignform_base.py ui/paperedgealignform.py ui/ui_utils.py \
380 ui/settingsdialog_base.py ui/settingsdialog.py ui/aligntype6form1.py ui/aligntype6form1_base.py ui/aligntype6form2_base.py \
381 ui/aligntype6form2.py ui/nodevicesform_base.py ui/nodevicesform.py ui/unloadform.py \
382 ui/imagepropertiesdlg_base.py ui/imagepropertiesdlg.py ui/choosedevicedlg.py ui/chooseprinterdlg.py \
383 ui/aboutdlg.py ui/aboutdlg_base.py ui/waitform.py ui/waitform_base.py ui/cleaningform_base.py ui/cleaningform.py \
384 ui/cleaningform2_base.py ui/cleaningform2.py ui/colorcalform2_base.py ui/colorcalform2.py ui/colorcal4form.py \
385 ui/colorcal4form_base.py ui/colorcal4form_base.ui ui/printerform.py \
386 ui/faxaddrbookgroupsform_base.py ui/faxaddrbookgroupeditform_base.py ui/faxaddrbookform_base.py \
387 ui/faxaddrbookform.py ui/faxaddrbookeditform_base.py ui/align10form.py ui/align10form_base.py \
388 ui/faxsendjobform.py ui/faxsettingsform_base.py ui/faxsettingsform.py \
389 ui/coverpageform_base.py ui/coverpageform.py ui/allowabletypesdlg_base.py ui/allowabletypesdlg.py \
390 ui/makecopiesform.py ui/setupform_base.py ui/setupform.py ui/setupmanualfind_base.py \
391 ui/setupmanualfind.py ui/setupsettings_base.py ui/setupsettings.py ui/scrollview.py \
392 ui/scrollprintsettings.py ui/scrollprint.py ui/scrollfax.py \
393 ui/scrollunload.py ui/scrollcopy.py ui/pluginform2.py ui/pluginform2_base.py ui/systemtray.py \
394 ui/ui_utils.py ui/jobstoragemixin.py ui/pluginlicenseform_base.py ui/pluginlicenseform.py \
395 ui/align13form_base.py ui/align13form.py ui/firmwaredialog_base.py ui/firmwaredialog.py \
396 ui/deviceuricombobox.py ui/upgradeform.py ui/upgradeform_base.py
397
398 dist_noinst_DATA += ui/colorcalform2_base.ui ui/settingsdialog_base.ui ui/aligntype6form1_base.ui \
399 ui/aboutdlg_base.ui ui/imagepropertiesdlg_base.ui ui/paperedgealignform_base.ui ui/aligntype6form2_base.ui \
400 ui/nodevicesform_base.ui ui/cleaningform_base.ui ui/colorcalform_base.ui ui/devmgr4_base.ui ui/loadpaperform_base.ui \
401 ui/cleaningform2_base.ui ui/waitform_base.ui ui/coloradjform_base.ui ui/faxaddrbookeditform_base.ui \
402 ui/faxaddrbookform_base.ui ui/faxaddrbookgroupeditform_base.ui ui/faxaddrbookgroupsform_base.ui \
403 ui/align10form_base.ui ui/pluginform2_base.ui \
404 plugins/powersettingsdialog_base.ui ui/faxsettingsform_base.ui ui/coverpageform_base.ui \
405 ui/allowabletypesdlg_base.ui ui/setupform_base.ui ui/setupmanualfind_base.ui \
406 ui/setupsettings_base.ui ui/pluginlicenseform_base.ui ui/align13form_base.ui ui/firmwaredialog_base.ui
407 endif
408 endif
409 if !HPLIP_CLASS_DRIVER
410 #ui4 (qt4)
411 if GUI_BUILD
412 if QT4_INSTALL
413 ui4dir=$(hplipdir)/ui4
414 dist_ui4_DATA = ui4/*.py
415 dist_noinst_DATA += ui4/*.ui
416 endif
417 endif
418
419 #ui5 (qt5)
420 if GUI_BUILD
421 if QT5_INSTALL
422 ui5dir=$(hplipdir)/ui5
423 dist_ui5_DATA = ui5/*.py
424 dist_noinst_DATA += ui5/*.ui
425 endif
426 endif
427
428 # ui plugins (qt3)
429 if GUI_BUILD
430 if QT3_INSTALL
431 pluginsdir = $(hplipdir)/plugins
432 dist_plugins_DATA = plugins/dj450.py plugins/__init__.py plugins/powersettings.py plugins/powersettingsdialog.py \
433 plugins/powersettingsdialog_base.py plugins/Deskjet_460.py plugins/Officejet_H470.py plugins/powersettings2.py
434 endif
435 endif
436
437 # ui plugins (qt4)
438 if GUI_BUILD
439 if QT4_INSTALL
440 plugins4dir = $(hplipdir)/ui4/plugins
441 dist_plugins4_SCRIPTS =
442 endif
443 endif
444
445 # ui plugins (qt5)
446 if GUI_BUILD
447 if QT5_INSTALL
448 plugins5dir = $(hplipdir)/ui5/plugins
449 dist_plugins5_SCRIPTS =
450 endif
451 endif
452 endif #HPLIP_CLASS_DRIVER
453 # PolicyKit
454 if POLICYKIT_INSTALL
455 policykit_dbus_etcdir = /etc/dbus-1/system.d
456 dist_policykit_dbus_etc_DATA = data/policykit/com.hp.hplip.conf
457 policykit_dbus_sharedir = /usr/share/dbus-1/system-services
458 dist_policykit_dbus_share_DATA = data/policykit/com.hp.hplip.service
459 policykit_policydir = $(policykit_dir)
460 dist_policykit_policy_DATA = data/policykit/com.hp.hplip.policy
461 endif
462
463
464 # hppgsz
465 noinst_PROGRAMS += hppgsz
466 hppgsz_SOURCES = prnt/hpijs/PrinterProperties.cpp prnt/hpijs/PrinterProperties.h prnt/hpijs/bug.h
467 hppgsz_CXXFLAGS = $(libapdk_la_CXXFLAGS)
468 hppgsz_CFLAGS = $(libapdk_la_CFLAGS)
469 hppgsz_LDADD = libapdk.la -ljpeg -ldl
470
471
472 if GUI_BUILD
473 # hplip.desktop
474 hplip_desktopdir = $(icondir)
475 hplip_desktop_DATA = hplip.desktop
476
477 # hplip-systray.desktop
478 hplip_systraydir = $(systraydir)
479 hplip_systray_DATA = hplip-systray.desktop
480
481 #hp-uiscan_desktop
482 hp_uiscan_desktopdir = $(icondir)
483 hp_uiscan_desktop_DATA = hp-uiscan.desktop
484 endif
485
486
487 # hpps (Finishing PS filter)
488 findir = $(cupsfilterdir)
489 dist_fin_SCRIPTS = prnt/filters/hpps
490
491
492 endif # FULL_BUILD
493 endif # HPLIP_BUILD
494
495 # foomatic-rip-hplip
496 if RIP_INSTALL
497 ripdir = $(cupsfilterdir)
498 dist_rip_SCRIPTS = prnt/hpijs/foomatic-rip-hplip
499 endif
500
501 # apdk
502 noinst_LTLIBRARIES = libapdk.la
503 libapdk_la_SOURCES = prnt/hpijs/models.cpp prnt/hpijs/breaks_open.cpp \
504 prnt/hpijs/dj9xxvip.cpp prnt/hpijs/dj9xx.cpp prnt/hpijs/capture.cpp prnt/hpijs/colormatch.cpp prnt/hpijs/colormatcher_open.cpp \
505 prnt/hpijs/compression.cpp prnt/hpijs/context2.cpp prnt/hpijs/create_so.cpp prnt/hpijs/creator.cpp \
506 prnt/hpijs/dj600.cpp prnt/hpijs/dj630.cpp prnt/hpijs/dj660.cpp prnt/hpijs/dj690.cpp prnt/hpijs/dj6xx.cpp prnt/hpijs/dj8xx.cpp prnt/hpijs/dj600_maps.cpp \
507 prnt/hpijs/dj660_maps.cpp prnt/hpijs/dj690_maps.cpp prnt/hpijs/dj895_maps.cpp prnt/hpijs/dj895_maps2.cpp prnt/hpijs/dj970_maps.cpp \
508 prnt/hpijs/dj970_maps2.cpp prnt/hpijs/dj970_maps3.cpp prnt/hpijs/filterhpa.cpp prnt/hpijs/apollo21xx.cpp prnt/hpijs/apollo2560.cpp prnt/hpijs/apollo2xxx.cpp \
509 prnt/hpijs/dj8x5.cpp prnt/hpijs/psp100.cpp prnt/hpijs/phobos_cmaps.cpp prnt/hpijs/dj350.cpp prnt/hpijs/halftoner.cpp prnt/hpijs/halftoner_open.cpp \
510 prnt/hpijs/globals.cpp prnt/hpijs/header2.cpp prnt/hpijs/htmtxhi.cpp prnt/hpijs/pmselect.cpp \
511 prnt/hpijs/job.cpp prnt/hpijs/printer.cpp prnt/hpijs/registry.cpp prnt/hpijs/scaler.cpp \
512 prnt/hpijs/scaler_open.cpp prnt/hpijs/script.cpp prnt/hpijs/systemservices.cpp \
513 prnt/hpijs/translator.cpp prnt/hpijs/version.cpp prnt/hpijs/versioncode.cpp \
514 prnt/hpijs/djgenericvip.cpp prnt/hpijs/dj540.cpp prnt/hpijs/dj850.cpp prnt/hpijs/dj850_maps.cpp prnt/hpijs/dj890.cpp \
515 prnt/hpijs/apollo21xx.h prnt/hpijs/apollo2560.h prnt/hpijs/apollo2xxx.h prnt/hpijs/colormatch.h prnt/hpijs/colormatcher_open.h \
516 prnt/hpijs/compression.h prnt/hpijs/config.h prnt/hpijs/context.h prnt/hpijs/dj350.h prnt/hpijs/dj400.h prnt/hpijs/dj540.h \
517 prnt/hpijs/dj600.h prnt/hpijs/dj630.h prnt/hpijs/dj660.h prnt/hpijs/dj690.h prnt/hpijs/dj6xx.h prnt/hpijs/dj8x5.h prnt/hpijs/dj8xx.h \
518 prnt/hpijs/dj850.h prnt/hpijs/dj890.h prnt/hpijs/dj9xx.h prnt/hpijs/dj9xxvip.h \
519 prnt/hpijs/ernieplatform.h prnt/hpijs/filterhpa.h prnt/hpijs/global_types.h prnt/hpijs/halftoner.h prnt/hpijs/font.h prnt/hpijs/debug.h \
520 prnt/hpijs/halftoner_open.h prnt/hpijs/header.h prnt/hpijs/hpprint_c_api.h \
521 prnt/hpijs/hpprintapi.h prnt/hpijs/hptypes.h prnt/hpijs/htfed.h prnt/hpijs/internal.h \
522 prnt/hpijs/interp.h prnt/hpijs/interp_data_50.h prnt/hpijs/io_defs.h prnt/hpijs/job.h prnt/hpijs/models.h prnt/hpijs/modes.h prnt/hpijs/pmselect.h \
523 prnt/hpijs/printer.h prnt/hpijs/psp100.h prnt/hpijs/psp470.h prnt/hpijs/resources.h prnt/hpijs/scaler_open.h prnt/hpijs/scaler_prop.h prnt/hpijs/script.h \
524 prnt/hpijs/systemservices.h prnt/hpijs/unistd_.h prnt/hpijs/djgenericvip.h prnt/hpijs/ljmono.h prnt/hpijs/ljmono.cpp \
525 prnt/hpijs/dj3320.cpp prnt/hpijs/dj3320.h prnt/hpijs/dj3320_cmap.cpp prnt/hpijs/dj3600.cpp prnt/hpijs/dj3600.h prnt/hpijs/dj3600_cmap.cpp prnt/hpijs/dj4100.h prnt/hpijs/djd2600.h \
526 prnt/hpijs/dj4100_cmap.cpp prnt/hpijs/ldlencap.h prnt/hpijs/ljcolor.cpp prnt/hpijs/ljcolor.h prnt/hpijs/pscript.h \
527 prnt/hpijs/printerproxy.cpp prnt/hpijs/printerfactory.cpp prnt/hpijs/printerproxy.h prnt/hpijs/printerfactory.h \
528 prnt/hpijs/ljjetready.cpp prnt/hpijs/ljjetready.h prnt/hpijs/jdatadbf.c prnt/hpijs/jccolor.c prnt/hpijs/ljfastraster.cpp prnt/hpijs/ljfastraster.h \
529 prnt/hpijs/jinclude.h prnt/hpijs/jpegint.h prnt/hpijs/dj55xx.h prnt/hpijs/hpijsfax.h prnt/hpijs/ojprokx50.h \
530 prnt/hpijs/ljzjs.cpp prnt/hpijs/ljzjs.h prnt/hpijs/ljzjsmono.cpp prnt/hpijs/ljm1005.cpp prnt/hpijs/ljm1005.h \
531 prnt/hpijs/ljzjsmono.h prnt/hpijs/hpjbig_wrapper.h prnt/hpijs/quickconnect.cpp prnt/hpijs/quickconnect.h prnt/hpijs/ljp1xxx.h prnt/hpijs/ljzjscolor.cpp prnt/hpijs/ljzjscolor.h \
532 common/utils.c common/utils.h
533 libapdk_la_CXXFLAGS = -DAPDK_DJ660 -DAPDK_DJ6xx -DAPDK_DJ6xxPhoto -DAPDK_DJ8xx -DAPDK_DJ9xx -DAPDK_DJ9xxVIP -DAPDK_DJ630 \
534 -DAPDK_APOLLO2XXX -DAPDK_APOLLO21XX -DAPDK_APOLLO2560 -DAPDK_DJ600 -DAPDK_DJ350 -DAPDK_DJ8x5 -DAPDK_PSP100 -DAPDK_AUTODUPLEX \
535 -DAPDK_HIGH_RES_MODES -DAPDK_LJMONO -DAPDK_DJ540 -DAPDK_DJ850 -DAPDK_DJ890 -DAPDK_DJ3320 -DAPDK_LJCOLOR -DAPDK_DJGENERICVIP \
536 -DAPDK_LJJETREADY -DAPDK_LJFASTRASTER -DAPDK_BUFFER_SEND -DAPDK_LDL_COMPRESS -DAPDK_EXTENDED_MEDIASIZE \
537 -DAPDK_MLC_PRINTER -DAPDK_DJ3600 -DAPDK_LJZJS_MONO -DAPDK_LJZJS_COLOR -DAPDK_LJM1005 -DAPDK_QUICKCONNECT \
538 $(APDK_ENDIAN_FLAG) $(APDK_AUTO_INCLUDE_FLAG) -DAPDK_LINUX -DNDEBUG $(DBUS_CFLAGS)
539 libapdk_la_CFLAGS = $(libapdk_la_CXXFLAGS) -Iprnt/hpijs
540
541 if HPIJS_INSTALL
542 # hpijs
543 bin_PROGRAMS = hpijs
544 hpijs_SOURCES = prnt/hpijs/hpijs.cpp prnt/hpijs/ijs_server.c prnt/hpijs/ijs.c prnt/hpijs/hpijsfax.cpp prnt/hpijs/services.cpp prnt/hpijs/bug.h \
545 prnt/hpijs/hpijs.h prnt/hpijs/ijs.h prnt/hpijs/ijs_server.h prnt/hpijs/services.h prnt/hpijs/ijs_client.h prnt/hpijs/hpiom.c \
546 prnt/hpijs/hpiom.h common/utils.h common/utils.c
547
548 hpijs_CXXFLAGS = $(libapdk_la_CXXFLAGS)
549 hpijs_CFLAGS = $(libapdk_la_CFLAGS)
550 if HPLIP_BUILD
551 hpijs_LDADD = libapdk.la -ljpeg -ldl libhpip.la libhpmud.la $(DBUS_LIBS)
552 else
553 hpijs_LDADD = libapdk.la -ljpeg -ldl
554 endif
555 endif # HPIJS_INSTALL
556
557 if HPCUPS_INSTALL
558 # hpcups
559 #if NEW_HPCUPS
560 hpcupsdir = $(cupsfilterdir)
561 hpcups_PROGRAMS = hpcups
562 hpcups_SOURCES = prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/HPCupsFilter.h prnt/hpcups/dbuscomm.cpp prnt/hpcups/dbuscomm.h prnt/hpcups/Compressor.cpp prnt/hpcups/Compressor.h \
563 prnt/hpcups/Mode2.cpp prnt/hpcups/Mode2.h prnt/hpcups/Mode3.cpp prnt/hpcups/Mode3.h \
564 prnt/hpcups/Mode9.cpp prnt/hpcups/Mode9.h prnt/hpcups/Mode10.cpp prnt/hpcups/Mode10.h \
565 prnt/hpcups/ModeDeltaPlus.cpp prnt/hpcups/ModeDeltaPlus.h prnt/hpcups/ModeJbig.cpp prnt/hpcups/ModeJbig.h \
566 prnt/hpcups/ErnieFilter.cpp prnt/hpcups/ErnieFilter.h prnt/hpcups/EncapsulatorFactory.cpp prnt/hpcups/EncapsulatorFactory.h \
567 prnt/hpcups/Encapsulator.cpp prnt/hpcups/Encapsulator.h prnt/hpcups/Pcl3.cpp prnt/hpcups/Pcl3.h \
568 prnt/hpcups/Pcl3Gui.cpp prnt/hpcups/Pcl3Gui.h prnt/hpcups/Pcl3Gui2.cpp prnt/hpcups/Pcl3Gui2.h \
569 prnt/hpcups/LJMono.cpp prnt/hpcups/LJMono.h prnt/hpcups/LJColor.cpp prnt/hpcups/LJColor.h \
570 prnt/hpcups/LJFastRaster.cpp prnt/hpcups/LJFastRaster.h prnt/hpcups/LJJetReady.cpp prnt/hpcups/LJJetReady.h \
571 prnt/hpcups/LJZjStream.cpp prnt/hpcups/LJZjStream.h \
572 prnt/hpcups/LJZxStream.cpp prnt/hpcups/LJZxStream.h prnt/hpcups/Job.cpp prnt/hpcups/Job.h \
573 prnt/hpcups/Pipeline.cpp prnt/hpcups/Pipeline.h prnt/hpcups/Processor.cpp prnt/hpcups/Processor.h \
574 prnt/hpcups/RasterSender.cpp prnt/hpcups/RasterSender.h prnt/hpcups/ColorMatcher.cpp prnt/hpcups/ColorMatcher.h \
575 prnt/hpcups/Halftoner.cpp prnt/hpcups/Halftoner.h prnt/hpcups/Scaler.cpp prnt/hpcups/Scaler.h prnt/hpcups/resources.h \
576 prnt/hpcups/dj400ColorMaps.cpp prnt/hpcups/dj600ColorMaps.cpp prnt/hpcups/dj970ColorMaps.cpp prnt/hpcups/dj8xxColorMaps.cpp \
577 prnt/hpcups/dj4100ColorMaps.cpp \
578 prnt/hpcups/BreakTables.cpp prnt/hpcups/PrinterCommands.h prnt/hpcups/Utils.cpp prnt/hpcups/Utils.h \
579 prnt/hpcups/SystemServices.cpp prnt/hpcups/SystemServices.h prnt/hpcups/CommonDefinitions.h prnt/hpcups/hpjbig_wrapper.h \
580 prnt/hpcups/apPrintModes.h prnt/hpcups/dj400PrintModes.h prnt/hpcups/dj540PrintModes.h prnt/hpcups/dj600PrintModes.h \
581 prnt/hpcups/dj630PrintModes.h prnt/hpcups/dj690PrintModes.h prnt/hpcups/dj850PrintModes.h prnt/hpcups/dj890PrintModes.h \
582 prnt/hpcups/dj895PrintModes.h prnt/hpcups/dj8x5PrintModes.h prnt/hpcups/dj970PrintModes.h prnt/hpcups/Pcl3GuiPrintModes.h \
583 prnt/hpcups/Pcl3PrintModes.h prnt/hpcups/ColorMaps.h \
584 prnt/hpcups/QuickConnect.cpp prnt/hpcups/QuickConnect.h \
585 prnt/hpcups/ModeJpeg.cpp prnt/hpcups/ModeJpeg.h \
586 prnt/hpcups/jccolor.c prnt/hpcups/jinclude.h \
587 prnt/hpcups/jdatadbf.c prnt/hpcups/jinclude.h \
588 prnt/hpcups/Lidil.cpp prnt/hpcups/Lidil.h \
589 prnt/hpcups/LidilCompress.cpp prnt/hpcups/LidilCompress.h \
590 prnt/hpcups/LidilPrintModes.h prnt/hpcups/dj3320ColorMaps.cpp \
591 prnt/hpcups/dj3600ColorMaps.cpp prnt/hpcups/dj3320PrintModes.h \
592 prnt/hpcups/dj4100PrintModes.h \
593 prnt/hpcups/Hbpl1.cpp prnt/hpcups/Hbpl1.h prnt/hpcups/Hbpl1_Wrapper.h prnt/hpcups/PCLmGenerator.h \
594 prnt/hpcups/flate_colorspace.h prnt/hpcups/RunLenEncoding.h prnt/hpcups/common_defines.h \
595 prnt/hpcups/genPCLm.h \
596 common/utils.c common/utils.h prnt/hpcups/Hbpl1_Wrapper.cpp prnt/hpcups/genPCLm.cpp \
597 prnt/hpcups/genJPEGStrips.cpp prnt/hpcups/RunLenEncoding.cpp \
598 prnt/hpcups/ImageProcessor.h
599
600 hpcups_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS)
601 hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lImageProcessor -lcups -lcupsimage -lz $(DBUS_LIBS)
602 #else
603 #hpcupsdir = $(cupsfilterdir)
604 #hpcups_PROGRAMS = hpcups
605 #hpcups_SOURCES = prnt/hpijs/hpcups.cpp prnt/hpijs/hpcups.h prnt/hpijs/services.cpp prnt/hpijs/services.h prnt/hpijs/hpiom.c prnt/hpijs/hpiom.h prnt/hpijs/bug.h prnt/hpijs/hpimage.cpp prnt/hpijs/hpimage.h
606 #hpcups_CXXFLAGS = $(libapdk_la_CXXFLAGS)
607 #hpcups_CFLAGS = $(libapdk_la_CFLAGS)
608 #if HPCUPS_ONLY_BUILD
609 #hpcups_LDADD = libapdk.la -ljpeg -ldl -lcups -lcupsimage
610 #else
611 #hpcups_LDADD = libapdk.la -ljpeg -ldl libhpip.la libhpmud.la $(DBUS_LIBS) -lcups -lcupsimage
612 #endif #HPCUPS_ONLY_BUILD
613 #endif # NEW_HPCUPS
614 if !HPCUPS_ONLY_BUILD
615 if FAX_BUILD
616 if !HPLIP_CLASS_DRIVER
617
618 # hpcupsfax
619 hpcupsfaxdir = $(cupsfilterdir)
620 hpcupsfax_PROGRAMS = hpcupsfax
621 hpcupsfax_SOURCES = prnt/hpijs/hpcupsfax.cpp prnt/hpijs/hpcupsfax.h common/utils.h common/utils.c
622 hpcupsfax_LDADD = libhpip.la -lcups -lcupsimage -ldl
623
624 # hpcdmfax
625 hpcdmfaxdir = $(cupsfilterdir)
626 hpcdmfax_PROGRAMS = hpcdmfax
627 hpcdmfax_SOURCES = fax/filters/cdmfax/hpcupscdmfax.cpp fax/filters/cdmfax/hpcupscdmfax.h fax/filters/cdmfax/jetlib.cpp fax/filters/cdmfax/jetlib.h
628 hpcdmfax_LDADD = libhpip.la -lcups -lcupsimage -ldl -ljpeg
629
630 endif # HPLIP_CLASS_DRIVER
631 endif # FAX_BUILD
632 endif # HPCUPS ONLY
633 endif # HPCUPS_INSTALL
634
635 dat2drvdir = $(hplipdir)
636 dat2drv_PROGRAMS = dat2drv
637 dat2drv_SOURCES = Common.h Dat2drv.cpp Dat2drv.h Normalize.cpp Normalize.h
638 if GCC_GE_47
639 dat2drv_CXXFLAGS = -std=c++11
640 endif
641
642 if HPPS_INSTALL
643 hppsdir = $(cupsfilterdir)
644 hpps_PROGRAMS = hpps
645 hpps_SOURCES = prnt/hpps/hppsfilter.c prnt/hpps/hppsfilter.h prnt/hpps/psutil.c prnt/hpps/psutil.h prnt/hpps/pserror.c prnt/hpps/pserror.h prnt/hpps/psbooklet.c prnt/hpps/patchlev.h prnt/hpps/psspec.c prnt/hpps/psspec.h
646 hpps_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS)
647 hpps_LDADD = -lcups $(DBUS_LIBS)
648 endif #HPPS_INSTALL
649
650
651 #locate driver
652 locatedriverdir = $(hplipdir)
653 locatedriver_PROGRAMS = locatedriver
654 locatedriver_SOURCES = FindPPD.cpp FindPPD.h
655 if GCC_GE_47
656 locatedriver_CXXFLAGS = -std=c++11
657 endif
658 if HPLIP_CLASS_DRIVER
659 dist_locatedriver_DATA = locatedriver
660 endif #HPLIP_CLASS_DRIVER
661
662 # PPDs
663 ppddir = $(hpppddir)
664
665 #if FOOMATIC_PPD_INSTALL
666 #dist_ppd_DATA += $(foomatic_ppd_printers)
667 #endif
668 if FOOMATIC_DRV_INSTALL
669 cupsdrvdir = $(drvdir)
670 cupsdrv_DATA = $(foomatic_drv)
671 endif
672
673 if !HPLIP_CLASS_DRIVER
674 dist_ppd_DATA = $(foomatic_ps_printers)
675 dist_ppd_DATA += $(foomatic_pdf_printers)
676 dist_ppd_DATA += $(cups_ppd_printers)
677 endif
678
679 if HPLIP_CLASS_DRIVER
680 dist_ppd_DATA = $(class_cups_ppd_printers)
681 endif
682
683 if CUPS_DRV_INSTALL
684 cupsdrv2dir = $(drvdir)
685 cupsdrv2_DATA = $(cups_drv)
686 endif
687
688 if HPLIP_CLASS_DRIVER
689 filterdir=$(cupsfilterdir)
690 printpluginsdir=$(cupsfilterdir)
691
692
693 dist_filter_DATA = hpcups hpps dat2drv
694 dist_printplugins_DATA = prnt/plugins/hbpl1-arm32.so prnt/plugins/hbpl1-arm64.so prnt/plugins/hbpl1-x86_32.so prnt/plugins/hbpl1-x86_64.so prnt/plugins/lj-arm32.so prnt/plugins/lj-arm64.so prnt/plugins/lj-x86_32.so prnt/plugins/lj-x86_64.so
695 endif #HPLIP_CLASS_DRIVER
696
697 install-data-hook:
698 if HPLIP_BUILD
699 if [ \( "$(UNAME)" = "x86_64" -a -d "$(libdir)/" \) ]; then \
700 cp prnt/hpcups/libImageProcessor-x86_64.so $(libdir)/ ; \
701 chmod 775 $(libdir)/libImageProcessor-x86_64.so ; \
702 ln -sf $(libdir)/libImageProcessor-x86_64.so $(libdir)/libImageProcessor.so ; \
703 fi; \
704 if [ \( \( "$(UNAME)" = "i686" -o "$(UNAME)" = "i386" \) -a -d "$(libdir)/" \) ]; then \
705 cp prnt/hpcups/libImageProcessor-x86_32.so $(libdir)/ ; \
706 chmod 775 $(libdir)/libImageProcessor-x86_32.so ; \
707 ln -sf $(libdir)/libImageProcessor-x86_32.so $(libdir)/libImageProcessor.so ; \
708 fi
709 if [ -d "/usr/share/ipp-usb/quirks/" ]; then \
710 echo "ipp-usb directory exists"; \
711 cp prnt/ipp-usb/HPLIP.conf /usr/share/ipp-usb/quirks/ ; \
712 fi
713 if !HPLIP_CLASS_DRIVER
714 # If scanner build, add hpaio entry to sane dll.conf.
715 if [ "$(scan_build)" = "yes" ]; then \
716 $(mkinstalldirs) $(DESTDIR)/etc/sane.d; \
717 if [ ! -f $(DESTDIR)/etc/sane.d/dll.conf ]; then \
718 touch $(DESTDIR)/etc/sane.d/dll.conf; \
719 fi; \
720 if ! grep ^hpaio $(DESTDIR)/etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
721 echo "Adding hpaio entry to /etc/sane.d/dll.conf." ; \
722 echo hpaio >>$(DESTDIR)/etc/sane.d/dll.conf ; \
723 fi; \
724 if [ \( "$(UNAME)" = "x86_64" -a -d "$(libdir)/x86_64-linux-gnu/sane" \) ]; then \
725 ln -sf $(libdir)/sane/libsane-hpaio.so $(libdir)/x86_64-linux-gnu/sane/ ; \
726 ln -sf $(libdir)/sane/libsane-hpaio.so.1 $(libdir)/x86_64-linux-gnu/sane/ ; \
727 fi; \
728 if [ \( \( "$(UNAME)" = "i686" -o "$(UNAME)" = "i386" \) -a -d "$(libdir)/i386-linux-gnu" \) ]; then \
729 ln -sf $(libdir)/libhpmud.so.0.0.6 $(libdir)/i386-linux-gnu/libhpmud.so ; \
730 ln -sf $(libdir)/libhpmud.so.0.0.6 $(libdir)/i386-linux-gnu/libhpmud.so.0 ; \
731 ln -sf $(libdir)/sane/libsane-hpaio.so.1.0.0 $(libdir)/i386-linux-gnu/sane/libsane-hpaio.so.1 ; \
732 ln -sf $(libdir)/sane/libsane-hpaio.so.1.0.0 $(libdir)/i386-linux-gnu/sane/libsane-hpaio.so ; \
733 fi \
734 fi
735 endif #HPLIP_CLASS_DRIVER
736 if FULL_BUILD
737 if !HPLIP_CLASS_DRIVER
738 # Create hp-xxx commands in bindir.
739 $(mkinstalldirs) $(DESTDIR)$(bindir)
740 for i in $(dist_cmd_SCRIPTS); do \
741 cmd=`basename $$i .py`; \
742 if [ ! \( "$$cmd" = "toolbox" -a "$(gui_build)" = "no" \) ]; then \
743 ln -sf ../share/$(PACKAGE)/$$i $(DESTDIR)$(bindir)/hp-$$cmd; \
744 fi \
745 done
746 #
747 # Install fax support.
748 if [ "$(fax_build)" = "yes" ]; then \
749 mv $(DESTDIR)$(hpfaxdir)/hpfax.py $(DESTDIR)$(hpfaxdir)/hpfax; \
750 chmod 700 $(DESTDIR)$(hpfaxdir)/hpfax; \
751 fi
752
753 if [ "$(apparmor_build)" = "yes" ];then \
754 chmod 644 $(DESTDIR)$(apparmor_profiledir)/usr.share.hplip;\
755 chmod 644 $(DESTDIR)$(apparmor_profiledir)/abstractions/hplip;\
756 fi
757
758 # Make backend run as root.
759 chmod 700 $(DESTDIR)$(hpdir)/hp
760 endif #HPLIP_CLASS_DRIVER
761 #AppArmor
762
763 endif # FULL_BUILD
764 endif # HPLIP_BUILD
765 if HPLIP_CLASS_DRIVER
766 ln -sf ../share/$(PACKAGE)/locatedriver $(DESTDIR)$(bindir)/hp-locatedriver
767 endif
768
769 uninstall-hook:
770 if HPLIP_BUILD
771 # Remove hp-xxx commands.
772 for i in $(dist_cmd_SCRIPTS); do \
773 cmd=`basename $$i .py`; \
774 rm -f $(DESTDIR)$(bindir)/hp-$$cmd; \
775 done
776 #
777 # Remove fax support.
778 rm -f $(DESTDIR)$(hpfaxdir)/hpfax
779 # Remove apparmor profiles
780 rm -f $(DESTDIR)$(apparmor_profiledir)/usr.share.hplip
781 rm -f $(DESTDIR)$(apparmor_profiledir)/abstractions/hplip
782 endif
783
784 #tarfile(ignoring scan and fax files)
785 dist-hook:
786 if !HPLIP_CLASS_DRIVER
787 rm -rf $(distdir)/hpps
788 rm -rf $(distdir)/hpcups
789 rm -rf $(distdir)/dat2drv
790 endif
791 if HPLIP_CLASS_DRIVER
792 rm -rf $(distdir)/faxsetup.py
793 rm -rf $(distdir)/sendfax.py
794 rm -rf $(distdir)/scan.py
795 rm -rf $(distdir)/fax/
796 rm -rf $(distdir)/scan/
797 rm -rf $(distdir)/ui/
798 rm -rf $(distdir)/ui4/
799 rm -rf $(distdir)/ui5/
800 rm -rf $(distdir)/align.py
801 rm -rf $(distdir)/info.py
802 rm -rf $(distdir)/uiscan.py
803 rm -rf $(distdir)/toolbox.py
804 rm -rf $(distdir)/clean.py
805 rm -rf $(distdir)/colorcal.py
806 rm -rf $(distdir)/unload.py
807 rm -rf $(distdir)/makeuri.py
808 rm -rf $(distdir)/check.py
809 rm -rf $(distdir)/fab.py
810 rm -rf $(distdir)/levels.py
811 rm -rf $(distdir)/query.py
812 rm -rf $(distdir)/pkservice.py
813 rm -rf $(distdir)/wificonfig.py
814 rm -rf $(distdir)/diagnose_plugin.py
815 rm -rf $(distdir)/upgrade.py
816 rm -rf $(distdir)/config_usb_printer.py
817 rm -rf $(distdir)/diagnose_queues.py
818 rm -rf $(distdir)/logcapture.py
819 rm -rf $(distdir)/doctor.py
820 rm -rf $(distdir)/devicesettings.py
821 # rm -rf $(distdir)/selinux/
822 rm -rf $(distdir)/installer/
823 rm -rf $(distdir)/copier/
824 rm -rf $(distdir)/apparmor/
825 rm -rf $(distdir)/base/
826 rm -rf $(distdir)/data/images/
827 rm -rf $(distdir)/data/ldl/
828 rm -rf $(distdir)/data/localization/
829 rm -rf $(distdir)/data/policykit/
830 rm -rf $(distdir)/data/rules/
831 rm -rf $(distdir)/data/pcl/
832 rm -rf $(distdir)/data/ps/
833 rm -rf $(distdir)/io/
834 rm -rf $(distdir)/ip/
835 rm -rf $(distdir)/pcard/
836 rm -rf $(distdir)/plugins/
837 rm -rf $(distdir)/protocol/
838 rm -rf $(distdir)/testcommon/
839 rm -rf $(distdir)/common/
840 rm -rf $(distdir)/check-plugin.py
841 rm -rf $(distdir)/hplip_clean.sh
842 rm -rf $(distdir)/hpssd.py
843 rm -rf $(distdir)/__init__.py
844 rm -rf $(distdir)/hpdio.py
845 rm -rf $(distdir)/hplip.desktop.in
846 rm -rf $(distdir)/hp-uiscan.desktop.in
847 rm -rf $(distdir)/hplip-systray.desktop.in
848 rm -rf $(distdir)/print.py
849 rm -rf $(distdir)/printsettings.py
850 rm -rf $(distdir)/testpage.py
851 rm -rf $(distdir)/config.guess
852 rm -rf $(distdir)/config.sub
853 rm -rf $(distdir)/configure
854 rm -rf $(distdir)/cups_drv.inc
855 rm -rf $(distdir)/foomatic_drv.inc
856 rm -rf $(distdir)/Makefile.in
857 rm -rf $(distdir)/missing
858 rm -rf $(distdir)/unreleased.inc
859 rm -rf $(distdir)/uninstall.py
860 rm -rf $(distdir)/install.py
861 rm -rf $(distdir)/dat2drv.py
862 rm -rf $(distdir)/aclocal.m4
863 rm -rf $(distdir)/prnt/backend/
864 rm -rf $(distdir)/prnt/cupsext/
865 rm -rf $(distdir)/prnt/hpijs/
866 rm -rf $(distdir)/print.py
867 rm -rf $(distdir)/prnt/colorcal.py
868 rm -rf $(distdir)/prnt/cups.py
869 rm -rf $(distdir)/prnt/__init__.py
870 rm -rf $(distdir)/prnt/ldl.py
871 rm -rf $(distdir)/prnt/pcl.py
872 rm -rf $(distdir)/FindPPD.cpp
873 rm -rf $(distdir)/FindPPD.h
874 rm -rf $(distdir)/Makefile.am
875 rm -rf $(distdir)/Makefile_dat2drv
876 rm -rf $(distdir)/init-suse-firewall
877 rm -rf $(distdir)/init-iptables-firewall
878 rm -rf $(distdir)/hplip-install
879 rm -rf $(distdir)/hplip.list.in
880 rm -rf $(distdir)/hplip.conf.in
881 rm -rf $(distdir)/configure.in
882 mv $(distdir)/locatedriver $(distdir)/hp-locatedriver
883 rm -rf $(distdir)/doc/
884 rm -rf $(distdir)/firmware.py
885 rm -rf $(distdir)/linefeedcal.py
886 rm -rf $(distdir)/makecopies.py
887 rm -rf $(distdir)/plugin.py
888 rm -rf $(distdir)/pqdiag.py
889 rm -rf $(distdir)/probe.py
890 rm -rf $(distdir)/setup.py
891 rm -rf $(distdir)/systray.py
892 rm -rf $(distdir)/timedate.py
893 rm -rf $(distdir)/prnt/plugins/lj-arm32.so
894 rm -rf $(distdir)/prnt/plugins/lj-arm64.so
895 rm -rf $(distdir)/prnt/plugins/lj-x86_32.so
896 rm -rf $(distdir)/prnt/plugins/lj-x86_64.so
897 rm -rf $(distdir)/hpijs-drv
898 rm -rf $(distdir)/prnt/hpcups/
899 rm -rf $(distdir)/prnt/ps/
900 rm -rf $(distdir)/prnt/drv/hpijs.drv.in.template
901 rm -rf $(distdir)/prnt/hpps/
902 rm -rf $(distdir)/prnt/pdf/
903 rm -rf $(distdir)/Dat2drv.cpp
904 rm -rf $(distdir)/Dat2drv.h
905 rm -rf $(distdir)/Normalize.cpp
906 rm -rf $(distdir)/Normalize.h
907 rm -rf $(distdir)/Common.h
908 rm -rf $(distdir)/createPPD.sh
909 rm -rf $(distdir)/install-sh
910 rm -rf $(distdir)/ltmain.sh
911 rm -rf $(distdir)/depcomp
912 rm -rf $(distdir)/class_cups_drv.inc
913 rm -rf $(distdir)/ppd/hpcups/
914 rm -rf $(distdir)/ppd/hpijs/
915 rm -rf $(distdir)/class_rpm_build.sh
916 rm -rf $(distdir)/hplipclassdriver.spec
917
918 endif
919 rpm:
920 if FULL_BUILD
921 if !HPLIP_CLASS_DRIVER
922 epm -f rpm hplipfull hplip.list
923 endif #HPLIP_CLASS_DRIVER
924 endif #FULL_BUILD
925 if LITE_BUILD
926 epm -f rpm hpliplite hplip.list
927 endif
928 if HPCUPS_ONLY_BUILD
929 epm -f rpm hpliphpcupsonly hplip.list
930 endif
931 if HPIJS_ONLY_BUILD
932 epm -f rpm hpliphpijsonly hplip.list
933 endif
934 if HPLIP_CLASS_DRIVER
935 # epm -f rpm hplipclassdriver hplip.list
936 ./class_rpm_build.sh
937 rpmbuild -bb --buildroot=$(CURDIR)/rpm_temp/buildroot/ hplipclassdriver.spec
938 endif
939
940 deb:
941 if FULL_BUILD
942 if !HPLIP_CLASS_DRIVER
943 epm -f deb hplipfull hplip.list --output-dir ./
944 endif #HPLIP_CLASS_DRIVER
945 endif #FULL_BUILD
946 if LITE_BUILD
947 epm -f deb hpliplite hplip.list
948 endif
949 if HPCUPS_ONLY_BUILD
950 epm -f deb hpliphpcupsonly hplip.list
951 endif
952 if HPIJS_ONLY_BUILD
953 epm -f deb hpliphpijsonly hplip.list
954 endif
955 if HPLIP_CLASS_DRIVER
956 epm -f deb hplipclassdriver hplip.list --output-dir ./
957 endif
958