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