-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
3160 lines (2703 loc) · 121 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
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
AUTOMAKE_OPTIONS = 1.8 foreign no-dependencies
SUFFIXES = .hs.uncpp .hs.pp .chs.pp .chs .hsc .deps .p_deps .dep
MOSTLYCLEANFILES = */*.bak tools/*/*.bak
CLEANFILES = */*.precomp $(pkglib_LIBRARIES:.a=_p.a) */*.deps */*.p_deps
DISTCLEANFILES =
if GHC_VERSION_610
FFI = -XForeignFunctionInterface
else
FFI = -fffi
endif
EXTRA_DIST = \
template-hsc-gtk2hs.h \
tools/callbackGen/Signal.chs.template \
tools/callbackGen/gtkmarshal.list \
tools/checkDirs.sh \
tools/c2hs/toplevel/c2hs_config.h \
tools/hierarchyGen/hierarchy.list \
tools/hierarchyGen/Hierarchy.chs.template \
gconf/System/Gnome/GConf/marshal.list \
sourceview/sourceview.h \
gtksourceview2/gtksourceview2.h \
gtk/hsgtk.h \
gtk/wingtk.h \
glib/System/Glib/hsgclosure.h \
cairo/COPYRIGHT \
cairo/cairo-gtk2hs.h \
svgcairo/svgcairo.h \
gtk/Graphics/UI/Gtk/General/hsgthread.h \
gnomevfs/hsgnomevfs-2.14.h \
gnomevfs/System/Gnome/VFS/hsfileinfo.h \
gnomevfs/marshal.list \
gstreamer/hsgstreamer.h \
gstreamer/hierarchy.list \
gstreamer/mini-hierarchy.list \
gstreamer/gobject-hierarchy.list \
gstreamer/Media/Streaming/GStreamer/Hierarchy.chs.template \
gstreamer/Media/Streaming/GStreamer/MiniHierarchy.chs.template \
gstreamer/marshal.list \
gio/marshal.list \
gtksourceview2/marshal.list \
gtk/Graphics/UI/Gtk/ModelView/Gtk2HsStore.h \
COPYING.LGPLv3 COPYING.GPLv3
# There are no other files in these dirs and tar excludes empty dirs
dist-hook:
mkdir $(distdir)/glade/Graphics/UI/Gtk/Glade
touch $(distdir)/glade/Graphics/UI/Gtk/Glade/.keep
mkdir $(distdir)/mozembed/Graphics/UI/Gtk/MozEmbed
touch $(distdir)/mozembed/Graphics/UI/Gtk/MozEmbed/.keep
CHSDEPEND = $(srcdir)/mk/chsDepend
# all packages and applications
pkglib_LIBRARIES = \
libHSglib.a
if ENABLE_CAIRO
pkglib_LIBRARIES += libHScairo.a
endif
if ENABLE_SVGCAIRO
pkglib_LIBRARIES += libHSsvgcairo.a
endif
if ENABLE_GTK
pkglib_LIBRARIES += \
libHSgtk.a \
libHSsoegtk.a
endif
if ENABLE_GIO
pkglib_LIBRARIES += libHSgio.a
endif
if ENABLE_LIBGLADE
pkglib_LIBRARIES += libHSglade.a
endif
if ENABLE_GCONF
pkglib_LIBRARIES += libHSgconf.a
endif
if ENABLE_SOURCEVIEW
pkglib_LIBRARIES += libHSsourceview.a
endif
if ENABLE_GTKSOURCEVIEW2
pkglib_LIBRARIES += libHSgtksourceview2.a
endif
if ENABLE_MOZEMBED
pkglib_LIBRARIES += libHSmozembed.a
endif
if ENABLE_GTKGLEXT
pkglib_LIBRARIES += libHSgtkglext.a
endif
if ENABLE_GNOMEVFS
pkglib_LIBRARIES += libHSgnomevfs.a
endif
if ENABLE_GSTREAMER
pkglib_LIBRARIES += libHSgstreamer.a
endif
noinst_PROGRAMS = \
tools/hierarchyGen/TypeGenerator \
tools/hierarchyGenGst/TypeGenerator \
tools/callbackGen/HookGenerator \
tools/c2hs/c2hsLocal
pkglibincludedir = $(pkglibdir)/include
pkglibinclude_DATA = gtk2hs-config.h
hidir = $(pkglibdir)/imports
EARLY_DEPS = tools/c2hs/c2hsLocal.deps
all: dep
dep: $(EARLY_DEPS)
DONT_USE_DEPS = $(strip $(if $(findstring clean,$(MAKECMDGOALS))$(findstring dist,$(MAKECMDGOALS))$(filter dep,$(MAKECMDGOALS))$(filter all,$(MAKECMDGOALS)),true,$(if $(MAKECMDGOALS),,true)))
#
# TypeGenerator Tool
#
################################################################################
# While building the program <name>, set the variable NAME to <name> so
# we can access program-specific variables like <name>_EXTERNALDEPS. The
# following is a hack to prevent automake from assuming that we are overriding
# the tools/hierarchyGen/TypeGenerator goal.
tools_hierarchyGen_PKGNAME = tools_hierarchyGen_TypeGenerator
tools_hierarchyGen_TypeGenerator_MAIN = \
$(tools_hierarchyGen_TypeGenerator_SOURCES)
tools_hierarchyGen_TypeGenerator_EXTERNALDEPS = base-$(PKG_BASE_VERSION)
tools_hierarchyGen_TypeGenerator_NOSPLITOBJS = yes
tools_hierarchyGen_TypeGenerator_SOURCESDIRS = tools/hierarchyGen
tools_hierarchyGen_TypeGenerator_SOURCES = \
tools/hierarchyGen/TypeGen.hs
# Fix automake - the subdir-objects option doesn't work here.
am_tools_hierarchyGen_TypeGenerator_OBJECTS = $(addsuffix .$(OBJEXT),\
$(basename $(tools_hierarchyGen_TypeGenerator_SOURCES)))
MOSTLYCLEANFILES+= $(am_tools_hierarchyGen_TypeGenerator_OBJECTS)
MOSTLYCLEANFILES+= $(tools_hierarchyGen_TypeGenerator_SOURCES:.hs=.hi)
tools_hierarchyGenGst_PKGNAME = tools_hierarchyGenGst_TypeGenerator
tools_hierarchyGenGst_TypeGenerator_MAIN = \
$(tools_hierarchyGenGst_TypeGenerator_SOURCES)
tools_hierarchyGenGst_TypeGenerator_EXTERNALDEPS = base-$(PKG_BASE_VERSION)
tools_hierarchyGenGst_TypeGenerator_NOSPLITOBJS = yes
tools_hierarchyGenGst_TypeGenerator_SOURCESDIRS = tools/hierarchyGenGst
tools_hierarchyGenGst_TypeGenerator_SOURCES = \
tools/hierarchyGenGst/TypeGen.hs
# Fix automake - the subdir-objects option doesn't work here.
am_tools_hierarchyGenGst_TypeGenerator_OBJECTS = $(addsuffix .$(OBJEXT),\
$(basename $(tools_hierarchyGenGst_TypeGenerator_SOURCES)))
MOSTLYCLEANFILES+= $(am_tools_hierarchyGenGst_TypeGenerator_OBJECTS)
MOSTLYCLEANFILES+= $(tools_hierarchyGenGst_TypeGenerator_SOURCES:.hs=.hi)
#
# HookGenerator Tool
#
################################################################################
tools_callbackGen_PKGNAME = tools_callbackGen_HookGenerator
tools_callbackGen_HookGenerator_MAIN = \
$(tools_callbackGen_HookGenerator_SOURCES)
tools_callbackGen_HookGenerator_EXTERNALDEPS = base-$(PKG_BASE_VERSION)
tools_callbackGen_HookGenerator_NOSPLITOBJS = yes
tools_callbackGen_HookGenerator_SOURCESDIRS = tools/callbackGen
tools_callbackGen_HookGenerator_SOURCES = \
tools/callbackGen/HookGenerator.hs
tools_callbackGen_HookGenerator_hs_HCFLAGS = -I.
am_tools_callbackGen_HookGenerator_OBJECTS = $(addsuffix .$(OBJEXT),\
$(basename $(tools_callbackGen_HookGenerator_SOURCES)))
MOSTLYCLEANFILES+= $(am_tools_callbackGen_HookGenerator_OBJECTS)
MOSTLYCLEANFILES+= $(tools_callbackGen_HookGenerator_SOURCES:.hs=.hi)
#
# c2hs interface generator
#
################################################################################
tools_c2hs_PKGNAME = tools_c2hs_c2hsLocal
tools_c2hs_c2hsLocal_MAIN = c2hs/toplevel/Main.hs
tools_c2hs_c2hsLocal_EXTERNALDEPS = base-$(PKG_BASE_VERSION) haskell98-$(PKG_HASKELL98_VERSION)
if HAVE_SPLIT_BASE
tools_c2hs_c2hsLocal_EXTERNALDEPS += pretty-$(PKG_PRETTY_VERSION) containers-$(PKG_CONTAINERS_VERSION) array-$(PKG_ARRAY_VERSION)
endif
tools_c2hs_c2hsLocal_NOSPLITOBJS = yes
tools_c2hs_c2hsLocal_SOURCESDIRS = \
tools/c2hs/base/admin tools/c2hs/base/errors \
tools/c2hs/base/general tools/c2hs/base/state \
tools/c2hs/base/syms tools/c2hs/base/syntax \
tools/c2hs/c tools/c2hs/chs tools/c2hs/gen \
tools/c2hs/state tools/c2hs/toplevel
tools_c2hs_c2hsLocal_SOURCES = \
tools/c2hs/base/admin/BaseVersion.hs \
tools/c2hs/base/admin/Config.hs \
tools/c2hs/base/errors/Errors.hs \
tools/c2hs/base/general/DLists.hs \
tools/c2hs/base/general/FileOps.hs \
tools/c2hs/base/general/FNameOps.hs \
tools/c2hs/base/general/Map.hs \
tools/c2hs/base/general/Position.hs \
tools/c2hs/base/general/Set.hs \
tools/c2hs/base/general/UNames.hs \
tools/c2hs/base/general/Binary.hs \
tools/c2hs/base/general/FastMutInt.hs \
tools/c2hs/base/state/CIO.hs \
tools/c2hs/base/state/StateBase.hs \
tools/c2hs/base/state/State.hs \
tools/c2hs/base/state/StateTrans.hs \
tools/c2hs/base/syms/Attributes.hs \
tools/c2hs/base/syms/Idents.hs \
tools/c2hs/base/syms/NameSpaces.hs \
tools/c2hs/base/syntax/Lexers.hs \
tools/c2hs/c/CAST.hs \
tools/c2hs/c/CAttrs.hs \
tools/c2hs/c/CBuiltin.hs \
tools/c2hs/c/C.hs \
tools/c2hs/c/CLexer.hs \
tools/c2hs/c/CNames.hs \
tools/c2hs/c/CParser.hs \
tools/c2hs/c/CParserMonad.hs \
tools/c2hs/c/CPretty.hs \
tools/c2hs/c/CTokens.hs \
tools/c2hs/c/CTrav.hs \
tools/c2hs/chs/CHS.hs \
tools/c2hs/chs/CHSLexer.hs \
tools/c2hs/gen/CInfo.hs \
tools/c2hs/gen/GBMonad.hs \
tools/c2hs/gen/GenBind.hs \
tools/c2hs/gen/GenHeader.hs \
tools/c2hs/state/C2HSState.hs \
tools/c2hs/state/Switches.hs \
tools/c2hs/toplevel/Main.hs \
tools/c2hs/toplevel/Version.hs \
tools/c2hs/toplevel/c2hs_config.c \
tools/c2hs/toplevel/C2HSConfig.hs
tools_c2hs_c2hsLocal_ALLSOURCES = \
$(tools_c2hs_c2hsLocal_SOURCES)
tools_c2hs_base_general_Binary_hs_HCFLAGS = -O -funbox-strict-fields
tools_c2hs_base_general_FastMutInt_hs_HCFLAGS = -O
tools_c2hs_base_syntax_Parsers_hs_HCFLAGS = -fglasgow-exts
tools_c2hs_toplevel_C2HSConfig_hs_HCFLAGS = $(FFI) '-\#include<c2hs_config.h>' \
-cpp -D_C2HS_CPP=\""$(CPP)"\"
tools/c2hs/c/CLexer.hs : tools/c2hs/c/CLexer.x
$(ALEX) --ghc -o $@ $<
tools/c2hs/c/CParser.hs : tools/c2hs/c/CParser.y
$(HAPPY) --ghc --array --coerce --strict -o $@ $<
MAINTAINERCLEANFILES = \
tools/c2hs/c/CParser.hs \
tools/c2hs/c/CLexer.hs
EXTRA_DIST += \
tools/c2hs/c/CParser.y \
tools/c2hs/c/CLexer.x
tools_c2hs_c2hsLocal_HSFILES = \
$(filter %.hs,$(tools_c2hs_c2hsLocal_ALLSOURCES))
# Fix automake - the subdir-objects option doesn't work here.
am_tools_c2hs_c2hsLocal_OBJECTS = \
$(addsuffix .$(OBJEXT),$(basename $(tools_c2hs_c2hsLocal_ALLSOURCES)))
$(am_tools_c2hs_c2hsLocal_OBJECTS): | tools/c2hs/c2hsLocal.deps
tools/c2hs/c2hsLocal.deps: $(tools_c2hs_c2hsLocal_HSFILES)
c2hs_MOSTLYCLEANFILES = $(am_tools_c2hs_c2hsLocal_OBJECTS)
c2hs_MOSTLYCLEANFILES += $(tools_c2hs_c2hsLocal_HSFILES:.hs=.hi)
c2hs_CLEANFILES = tools/c2hs/c2hsLocal.deps
ifeq (,$(DONT_USE_DEPS))
-include tools/c2hs/c2hsLocal.deps
endif
#
# glib package
#
################################################################################
glib_PKGNAME = libHSglib_a
libHSglib_a_NAME = glib
libHSglib_a_CONFIG = glib/glib.package.conf
libHSglib_a_EXTERNALDEPS = base-$(PKG_BASE_VERSION)
libHSglib_a_INTERNALDEPS =
libHSglib_a_HEADER = glib-object.h
libHSglib_a_PRECOMP = glib/glib.precomp
libHSglib_a_LIBS = $(GLIB_LIBS)
libHSglib_a_HCFLAGS = $(FFI)
libHSglib_a_CFLAGS = $(filter-out -I% -D%,$(GLIB_CFLAGS))
libHSglib_a_CPPFLAGS = $(filter -I% -D%,$(GLIB_CFLAGS))
libHSglib_a_SOURCESDIRS = glib
libHSglib_a_SOURCES = \
glib/System/Glib.hs \
glib/System/Glib/FFI.hs.pp \
glib/System/Glib/UTFString.hs.pp \
glib/System/Glib/Types.chs \
glib/System/Glib/GType.chs \
glib/System/Glib/GTypeConstants.hsc \
glib/System/Glib/GValue.chs \
glib/System/Glib/GValueTypes.chs \
glib/System/Glib/GParameter.hsc \
glib/System/Glib/StoreValue.hsc \
glib/System/Glib/GObject.chs.pp \
glib/System/Glib/Properties.chs \
glib/System/Glib/Attributes.hs \
glib/System/Glib/GError.chs.pp \
glib/System/Glib/GList.chs \
glib/System/Glib/Signals.chs.pp \
glib/System/Glib/Flags.hs \
glib/System/Glib/MainLoop.chs.pp \
glib/System/Glib/GDateTime.chs.pp
htmldoc_HSFILES_HIDDEN = \
glib/System/Glib/FFI.hs \
glib/System/Glib/Types.hs
if USE_GCLOSUE_SIGNALS_IMPL
libHSglib_a_SOURCES += glib/System/Glib/hsgclosure.c
# make calling an undefined function an error so we can catch changes in the
# GHC RTS API:
glib_System_Glib_hsgclosure_c_CFLAGS = -Werror-implicit-function-declaration
endif
glib_System_Glib_Types_hs_HCFLAGS = -fglasgow-exts
glib_System_Glib_GError_hs_HCFLAGS = -fglasgow-exts
glib_System_Glib_Attributes_hs_HCFLAGS = -fglasgow-exts
glib_System_Glib_Signals_hs_HCFLAGS = '-\#include"hsgclosure.h"'
libHSglib_a_LIBADD = \
glib/System/Glib/GObject_stub.o \
glib/System/Glib/MainLoop_stub.o
if !USE_GCLOSUE_SIGNALS_IMPL
libHSglib_a_LIBADD += glib/System/Glib/Signals_stub.o
endif
am_libHSglib_a_OBJECTS = \
$(addsuffix .$(OBJEXT),$(basename $(basename $(libHSglib_a_SOURCES))))
libHSglib_a_HSPPFILES = $(filter %.hs.pp, $(libHSglib_a_SOURCES))
libHSglib_a_CHSPPFILES = $(filter %.chs.pp,$(libHSglib_a_SOURCES))
libHSglib_a_CHSFILES = \
$(filter %.chs,$(libHSglib_a_SOURCES:.chs.pp=.chs))
libHSglib_a_CHSFILES_HS = $(libHSglib_a_CHSFILES:.chs=.hs)
libHSglib_a_HSCFILES = $(filter %.hsc, $(libHSglib_a_SOURCES))
libHSglib_a_HSCFILES_HS = $(libHSglib_a_HSCFILES:.hsc=.hs)
libHSglib_a_BUILDSOURCES = \
$(libHSglib_a_HSPPFILES:.hs.pp=.hs) \
$(libHSglib_a_CHSPPFILES:.chs.pp=.chs) \
$(libHSglib_a_CHSFILES_HS) \
$(libHSglib_a_HSCFILES_HS)
libHSglib_a_HSFILES = \
$(filter %.hs,$(libHSglib_a_BUILDSOURCES)) \
$(filter %.hs,$(libHSglib_a_SOURCES))
libHSglib_a_CFILES = $(filter %.c,$(libHSglib_a_SOURCES))
nobase_hi_DATA = $(libHSglib_a_HSFILES:.hs=.hi)
glib_MOSTLYCLEANFILES = $(am_libHSglib_a_OBJECTS)
glib_MOSTLYCLEANFILES += $(libHSglib_a_HSFILES:.hs=.hi)
glib_MOSTLYCLEANFILES += \
$(libHSglib_a_CHSFILES:.chs=.chi) \
$(libHSglib_a_CHSFILES:.chs=_stub.h) \
$(libHSglib_a_CHSFILES:.chs=_stub.o) \
$(libHSglib_a_CHSFILES:.chs=_stub.c)
glib_CLEANFILES = $(libHSglib_a_BUILDSOURCES)
glib_CLEANFILES += $(libHSglib_a_CHSFILES_HS:.hs=.dep)
glib_CLEANFILES += \
$(libHSglib_a_HSCFILES:.hsc=_hsc_make$(EXEEXT)) \
$(libHSglib_a_HSCFILES:.hsc=_hsc_make.c) \
$(libHSglib_a_HSCFILES:.hsc=_hsc_make.o)
glib/libHSglib_a.deps: $(libHSglib_a_HSFILES) | \
$(foreach pkg,$(libHSglib_a_INTERNALDEPS),$(pkg)/libHS$(pkg)_a.deps)
$(libHSglib_a_CHSFILES:.chs=.dep): \
$(foreach pkg,glib $(libHSglib_a_INTERNALDEPS),$(libHS$(pkg)_a_CHSFILES))
$(libHSglib_a_CHSFILES_HS): $(libHSglib_a_PRECOMP)
$(libHSglib_a_OBJECTS) : \
$(foreach pkg,$(libHSglib_a_INTERNALDEPS),$(libHS$(pkg)_a_OBJECTS))
EARLY_DEPS += $(libHSglib_a_CHSFILES:.chs=.dep)
ifeq (,$(DONT_USE_DEPS))
-include $(libHSglib_a_CHSFILES:.chs=.dep) glib/libHSglib_a.deps
endif
if ENABLE_SPLITOBJS
libHSglib_a_AR = $(srcdir)/mk/link-splitobjs.sh
glib_CLEANFILES_SPLIT = $(libHSglib_a_HSFILES:.hs=_split/)
else
libHSglib_a_AR = $(AR) $(ARFLAGS)
endif
libHSglib_a_DEPENDENCIES = HSglib.o
pkglib_DATA = HSglib.o
HSglib.o : $(libHSglib_a_OBJECTS)
$(LD) -r $(LD_X) -o $@ $(libHSglib_a_OBJECTS) $(libHSglib_a_LIBADD)
if ENABLE_PROFILING
libHSglib_a_DEPENDENCIES += libHSglib_p.a
pkglib_DATA += libHSglib_p.a
libHSglib_p.a : $(libHSglib_a_HSFILES:.hs=.p_o) \
$(libHSglib_a_CFILES:.c=.o) \
$(libHSglib_a_LIBADD:.o=.p_o)
$(AR) $(ARFLAGS) $@ $^
ifeq (,$(DONT_USE_DEPS))
-include glib/libHSglib_a.p_deps
endif
nobase_hi_DATA += $(libHSglib_a_HSFILES:.hs=.p_hi)
glib_MOSTLYCLEANFILES += $(libHSglib_a_HSFILES:.hs=.p_hi)
glib_MOSTLYCLEANFILES += $(libHSglib_a_HSFILES:.hs=.p_o)
glib_MOSTLYCLEANFILES += $(libHSglib_a_LIBADD:.o=.p_o)
endif
#
# gio package
#
################################################################################
if ENABLE_GIO
gio_PKGNAME = libHSgio_a
libHSgio_a_NAME = gio
libHSgio_a_CONFIG = gio/gio.package.conf
libHSgio_a_EXTERNALDEPS = base-$(PKG_BASE_VERSION)
if HAVE_SPLIT_BASE
libHSgio_a_EXTERNALDEPS += bytestring-$(PKG_BYTESTRING_VERSION)
endif
libHSgio_a_INTERNALDEPS = glib
libHSgio_a_HEADER = gio/gio.h
libHSgio_a_PRECOMP = gio/gio.precomp
libHSgio_a_LIBS = $(GLIB_LIBS) $(GIO_LIBS)
libHSgio_a_HCFLAGS = $(FFI) -fglasgow-exts
libHSgio_a_CFLAGS = $(filter-out -I% -D%,$(GLIB_CFLAGS) $(GIO_CFLAGS))
libHSgio_a_CPPFLAGS = $(filter -I% -D%,$(GLIB_CFLAGS) $(GIO_CFLAGS))
libHSgio_a_SOURCESDIRS = gio
libHSgio_a_GENERATEDSOURCES = \
gio/System/GIO/Types.chs \
gio/System/GIO/Signals.chs
nodist_libHSgio_a_SOURCES = $(libHSgio_a_GENERATEDSOURCES)
libHSgio_a_SOURCES = \
gio/System/GIO/AsyncResult.chs \
gio/System/GIO/Base.chs \
gio/System/GIO/Cancellable.chs \
gio/System/GIO/FileAttribute.hsc \
gio/System/GIO/File.chs.pp \
gio/System/GIO.hs
htmldoc_HSFILES_HIDDEN += \
$(libHSgio_a_GENERATEDSOURCES:.chs=.hs)
libHSgio_a_LIBADD = \
gio/System/GIO/Base_stub.o
if !USE_GCLOSUE_SIGNALS_IMPL
libHSgio_a_LIBADD += \
gio/System/GIO/Signals_stub.o
endif
gio/System/GIO/Types.chs : \
$(srcdir)/tools/hierarchyGen/hierarchy.list \
$(srcdir)/tools/hierarchyGen/TypeGenerator$(EXEEXT) \
$(srcdir)/tools/hierarchyGen/Hierarchy.chs.template
$(strip $(srcdir)/tools/hierarchyGen/TypeGenerator$(EXEEXT) \
$(srcdir)/tools/hierarchyGen/hierarchy.list \
$(srcdir)/tools/hierarchyGen/Hierarchy.chs.template \
$@ --tag=gio --lib=gio --prefix=g \
--modname=System.GIO.Types \
--parentname=System.Glib.GObject)
gio/System/GIO/Signals.chs : \
$(srcdir)/tools/callbackGen/Signal.chs.template \
$(srcdir)/gio/marshal.list \
$(srcdir)/tools/callbackGen/HookGenerator$(EXEEXT)
$(strip $(srcdir)/tools/callbackGen/HookGenerator$(EXEEXT) \
$(srcdir)/gio/marshal.list \
$(srcdir)/tools/callbackGen/Signal.chs.template $@ \
System.GIO.Signals)
libHSgio_a_ALLSOURCES = $(libHSgio_a_SOURCES) $(nodist_libHSgio_a_SOURCES)
am_libHSgio_a_OBJECTS = \
$(addsuffix .$(OBJEXT),$(basename $(basename $(libHSgio_a_ALLSOURCES))))
libHSgio_a_HSPPFILES = $(filter %.hs.pp, $(libHSgio_a_ALLSOURCES))
libHSgio_a_CHSPPFILES = $(filter %.chs.pp,$(libHSgio_a_ALLSOURCES))
libHSgio_a_CHSFILES = \
$(filter %.chs,$(libHSgio_a_ALLSOURCES:.chs.pp=.chs))
libHSgio_a_CHSFILES_HS = $(libHSgio_a_CHSFILES:.chs=.hs)
libHSgio_a_HSCFILES = $(filter %.hsc, $(libHSgio_a_ALLSOURCES))
libHSgio_a_HSCFILES_HS = $(libHSgio_a_HSCFILES:.hsc=.hs)
libHSgio_a_BUILDSOURCES = \
$(libHSgio_a_HSPPFILES:.hs.pp=.hs) \
$(libHSgio_a_CHSPPFILES:.chs.pp=.chs) \
$(libHSgio_a_CHSFILES_HS) \
$(libHSgio_a_HSCFILES_HS) \
$(libHSgio_a_GENERATEDSOURCES)
libHSgio_a_HSFILES = \
$(filter %.hs,$(libHSgio_a_BUILDSOURCES)) \
$(filter %.hs,$(libHSgio_a_ALLSOURCES))
libHSgio_a_CFILES = $(filter %.c,$(libHSgio_a_ALLSOURCES))
nobase_hi_DATA += $(libHSgio_a_HSFILES:.hs=.hi)
gio_MOSTLYCLEANFILES = $(am_libHSgio_a_OBJECTS)
gio_MOSTLYCLEANFILES += $(libHSgio_a_HSFILES:.hs=.hi)
gio_MOSTLYCLEANFILES += \
$(libHSgio_a_CHSFILES:.chs=.chi) \
$(libHSgio_a_CHSFILES:.chs=.h) \
$(libHSgio_a_CHSFILES:.chs=_stub.h) \
$(libHSgio_a_CHSFILES:.chs=_stub.o) \
$(libHSgio_a_CHSFILES:.chs=_stub.c)
gio_CLEANFILES = $(libHSgio_a_BUILDSOURCES)
gio_CLEANFILES += $(libHSgio_a_CHSFILES_HS:.hs=.dep)
gio_CLEANFILES += \
$(libHSgio_a_HSCFILES:.hsc=_hsc_make$(EXEEXT)) \
$(libHSgio_a_HSCFILES:.hsc=_hsc_make.c) \
$(libHSgio_a_HSCFILES:.hsc=_hsc_make.o)
gio/libHSgio_a.deps: $(libHSgio_a_HSFILES) | \
$(foreach pkg,$(libHSgio_a_INTERNALDEPS),$(pkg)/libHS$(pkg)_a.deps)
$(libHSgio_a_CHSFILES:.chs=.dep): \
$(foreach pkg,gio $(libHSgio_a_INTERNALDEPS),$(libHS$(pkg)_a_CHSFILES))
$(libHSgio_a_CHSFILES_HS): $(libHSgio_a_PRECOMP)
$(libHSgio_a_OBJECTS) : \
$(foreach pkg,$(libHSgio_a_INTERNALDEPS),$(libHS$(pkg)_a_OBJECTS))
EARLY_DEPS += $(libHSgio_a_CHSFILES:.chs=.dep)
ifeq (,$(DONT_USE_DEPS))
-include $(libHSgio_a_CHSFILES:.chs=.dep) gio/libHSgio_a.deps
endif
if ENABLE_SPLITOBJS
libHSgio_a_AR = $(srcdir)/mk/link-splitobjs.sh
gio_CLEANFILES_SPLIT = $(libHSgio_a_HSFILES:.hs=_split/)
else
libHSgio_a_AR = $(AR) $(ARFLAGS)
endif
libHSgio_a_DEPENDENCIES = HSgio.o
pkglib_DATA += HSgio.o
HSgio.o : $(libHSgio_a_OBJECTS)
$(LD) -r $(LD_X) -o $@ $(libHSgio_a_OBJECTS) $(libHSgio_a_LIBADD)
if ENABLE_PROFILING
libHSgio_a_DEPENDENCIES += libHSgio_p.a
pkglib_DATA += libHSgio_p.a
libHSgio_p.a : $(libHSgio_a_HSFILES:.hs=.p_o) \
$(libHSgio_a_CFILES:.c=.o) \
$(libHSgio_a_LIBADD:.o=.p_o)
$(AR) $(ARFLAGS) $@ $^
ifeq (,$(DONT_USE_DEPS))
-include gio/libHSgio_a.p_deps
endif
nobase_hi_DATA += $(libHSgio_a_HSFILES:.hs=.p_hi)
gio_MOSTLYCLEANFILES += $(libHSgio_a_HSFILES:.hs=.p_hi)
gio_MOSTLYCLEANFILES += $(libHSgio_a_HSFILES:.hs=.p_o)
gio_MOSTLYCLEANFILES += $(libHSgio_a_LIBADD:.o=.p_o)
endif
endif #ENABLE_GIO
#
# gtk package
#
################################################################################
if ENABLE_GTK
gtk_PKGNAME = libHSgtk_a
libHSgtk_a_NAME = gtk
libHSgtk_a_CONFIG = gtk/gtk.package.conf
libHSgtk_a_EXTERNALDEPS = base-$(PKG_BASE_VERSION) mtl-$(PKG_MTL_VERSION)
if HAVE_SPLIT_BASE
libHSgtk_a_EXTERNALDEPS += containers-$(PKG_CONTAINERS_VERSION) array-$(PKG_ARRAY_VERSION)
endif
libHSgtk_a_INTERNALDEPS = glib
libHSgtk_a_HEADER = gtk/hsgtk.h
libHSgtk_a_PRECOMP = gtk/gtk.precomp
libHSgtk_a_LIBS = $(GLIB_LIBS) $(GTK_LIBS)
libHSgtk_a_HCFLAGS = $(FFI)
libHSgtk_a_CFLAGS = $(filter-out -I% -D%,$(GLIB_CFLAGS) $(GTK_CFLAGS))
libHSgtk_a_CPPFLAGS = $(filter -I% -D%,$(GLIB_CFLAGS) $(GTK_CFLAGS)) -I.
libHSgtk_a_SOURCESDIRS = gtk
if ENABLE_CAIRO
libHSgtk_a_INTERNALDEPS += cairo
endif
libHSgtk_a_GENERATEDSOURCES = \
gtk/Graphics/UI/Gtk/Types.chs \
gtk/Graphics/UI/Gtk/Signals.chs
nodist_libHSgtk_a_SOURCES = $(libHSgtk_a_GENERATEDSOURCES)
libHSgtk_a_SOURCES = \
gtk/Graphics/UI/Gtk.hs.pp \
gtk/Graphics/UI/Gtk/Console.chs \
gtk/Graphics/UI/Gtk/Pango/Types.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Structs.hsc \
gtk/Graphics/UI/Gtk/Multiline/Types.chs.pp \
gtk/Graphics/UI/Gtk/Gdk/Region.chs.pp \
gtk/Graphics/UI/Gtk/Abstract/Bin.chs \
gtk/Graphics/UI/Gtk/Abstract/Box.chs \
gtk/Graphics/UI/Gtk/Abstract/ButtonBox.chs.pp \
gtk/Graphics/UI/Gtk/Abstract/Container.chs.pp \
gtk/Graphics/UI/Gtk/Abstract/ContainerChildProperties.chs \
gtk/Graphics/UI/Gtk/Abstract/IMContext.chs \
gtk/Graphics/UI/Gtk/Abstract/Misc.chs \
gtk/Graphics/UI/Gtk/Abstract/Object.chs.pp \
gtk/Graphics/UI/Gtk/Abstract/Paned.chs.pp \
gtk/Graphics/UI/Gtk/Abstract/Range.chs.pp \
gtk/Graphics/UI/Gtk/Abstract/Scale.chs \
gtk/Graphics/UI/Gtk/Abstract/Widget.chs.pp \
gtk/Graphics/UI/Gtk/Buttons/Button.chs.pp \
gtk/Graphics/UI/Gtk/Buttons/CheckButton.chs \
gtk/Graphics/UI/Gtk/Buttons/RadioButton.chs.pp \
gtk/Graphics/UI/Gtk/Buttons/ToggleButton.chs \
gtk/Graphics/UI/Gtk/Display/AccelLabel.chs \
gtk/Graphics/UI/Gtk/Display/Image.chs.pp \
gtk/Graphics/UI/Gtk/Display/Label.chs.pp \
gtk/Graphics/UI/Gtk/Display/ProgressBar.chs.pp \
gtk/Graphics/UI/Gtk/Display/Statusbar.chs \
gtk/Graphics/UI/Gtk/Display/StatusIcon.chs.pp \
gtk/Graphics/UI/Gtk/Embedding/Plug.chs.pp \
gtk/Graphics/UI/Gtk/Embedding/Socket.chs.pp \
gtk/Graphics/UI/Gtk/Embedding/Embedding.hsc \
gtk/Graphics/UI/Gtk/Entry/Editable.chs.pp \
gtk/Graphics/UI/Gtk/Entry/Entry.chs.pp \
gtk/Graphics/UI/Gtk/Entry/EntryCompletion.chs.pp \
gtk/Graphics/UI/Gtk/Entry/HScale.chs \
gtk/Graphics/UI/Gtk/Entry/SpinButton.chs \
gtk/Graphics/UI/Gtk/Entry/VScale.chs \
gtk/Graphics/UI/Gtk/General/Clipboard.chs.pp \
gtk/Graphics/UI/Gtk/General/Enums.chs.pp \
gtk/Graphics/UI/Gtk/General/General.chs \
gtk/Graphics/UI/Gtk/General/hsgthread.c \
gtk/Graphics/UI/Gtk/General/IconFactory.chs.pp \
gtk/Graphics/UI/Gtk/General/Style.chs \
gtk/Graphics/UI/Gtk/Layout/Alignment.chs.pp \
gtk/Graphics/UI/Gtk/Layout/AspectFrame.chs \
gtk/Graphics/UI/Gtk/Layout/Expander.chs.pp \
gtk/Graphics/UI/Gtk/Layout/Fixed.chs \
gtk/Graphics/UI/Gtk/Layout/HBox.chs \
gtk/Graphics/UI/Gtk/Layout/HButtonBox.chs \
gtk/Graphics/UI/Gtk/Layout/HPaned.chs \
gtk/Graphics/UI/Gtk/Layout/Layout.chs \
gtk/Graphics/UI/Gtk/Layout/Notebook.chs.pp \
gtk/Graphics/UI/Gtk/Layout/Table.chs \
gtk/Graphics/UI/Gtk/Layout/VBox.chs \
gtk/Graphics/UI/Gtk/Layout/VButtonBox.chs \
gtk/Graphics/UI/Gtk/Layout/VPaned.chs \
gtk/Graphics/UI/Gtk/MenuComboToolbar/CheckMenuItem.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/Combo.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/ComboBox.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/ComboBoxEntry.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/ImageMenuItem.chs \
gtk/Graphics/UI/Gtk/MenuComboToolbar/Menu.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuBar.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuItem.chs \
gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuShell.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/OptionMenu.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/RadioMenuItem.chs \
gtk/Graphics/UI/Gtk/MenuComboToolbar/TearoffMenuItem.chs \
gtk/Graphics/UI/Gtk/MenuComboToolbar/ToolItem.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/Toolbar.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/ToolButton.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/MenuToolButton.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/ToggleToolButton.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/RadioToolButton.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/SeparatorMenuItem.chs.pp \
gtk/Graphics/UI/Gtk/MenuComboToolbar/SeparatorToolItem.chs.pp \
gtk/Graphics/UI/Gtk/ActionMenuToolbar/Action.chs.pp \
gtk/Graphics/UI/Gtk/ActionMenuToolbar/ActionGroup.chs.pp \
gtk/Graphics/UI/Gtk/ActionMenuToolbar/ToggleAction.chs.pp \
gtk/Graphics/UI/Gtk/ActionMenuToolbar/RadioAction.chs.pp \
gtk/Graphics/UI/Gtk/ActionMenuToolbar/UIManager.chs.pp \
gtk/Graphics/UI/Gtk/Misc/Adjustment.chs.pp \
gtk/Graphics/UI/Gtk/Misc/Calendar.chs.pp \
gtk/Graphics/UI/Gtk/Misc/DrawingArea.chs \
gtk/Graphics/UI/Gtk/Misc/EventBox.chs.pp \
gtk/Graphics/UI/Gtk/Misc/Arrow.chs \
gtk/Graphics/UI/Gtk/Misc/HandleBox.chs \
gtk/Graphics/UI/Gtk/Misc/IMMulticontext.chs.pp \
gtk/Graphics/UI/Gtk/Misc/SizeGroup.chs.pp \
gtk/Graphics/UI/Gtk/Misc/Tooltips.chs.pp \
gtk/Graphics/UI/Gtk/Misc/Viewport.chs \
gtk/Graphics/UI/Gtk/Multiline/TextBuffer.chs.pp \
gtk/Graphics/UI/Gtk/Multiline/TextIter.chs.pp \
gtk/Graphics/UI/Gtk/Multiline/TextMark.chs \
gtk/Graphics/UI/Gtk/Multiline/TextTag.chs.pp \
gtk/Graphics/UI/Gtk/Multiline/TextTagTable.chs \
gtk/Graphics/UI/Gtk/Multiline/TextView.chs.pp \
gtk/Graphics/UI/Gtk/Ornaments/Frame.chs \
gtk/Graphics/UI/Gtk/Ornaments/HSeparator.chs \
gtk/Graphics/UI/Gtk/Ornaments/VSeparator.chs \
gtk/Graphics/UI/Gtk/Scrolling/HScrollbar.chs \
gtk/Graphics/UI/Gtk/Scrolling/ScrolledWindow.chs.pp \
gtk/Graphics/UI/Gtk/Scrolling/VScrollbar.chs \
gtk/Graphics/UI/Gtk/Selectors/ColorButton.chs.pp \
gtk/Graphics/UI/Gtk/Selectors/ColorSelection.chs \
gtk/Graphics/UI/Gtk/Selectors/ColorSelectionDialog.chs \
gtk/Graphics/UI/Gtk/Selectors/FontButton.chs.pp \
gtk/Graphics/UI/Gtk/Selectors/FontSelection.chs \
gtk/Graphics/UI/Gtk/Selectors/FontSelectionDialog.chs \
gtk/Graphics/UI/Gtk/Selectors/FileSelection.chs.pp \
gtk/Graphics/UI/Gtk/Selectors/FileChooser.chs.pp \
gtk/Graphics/UI/Gtk/Selectors/FileChooserButton.chs.pp \
gtk/Graphics/UI/Gtk/Selectors/FileChooserWidget.chs.pp \
gtk/Graphics/UI/Gtk/Selectors/FileChooserDialog.chs.pp \
gtk/Graphics/UI/Gtk/Selectors/FileFilter.chs.pp \
gtk/Graphics/UI/Gtk/TreeList.hs \
gtk/Graphics/UI/Gtk/TreeList/CellRenderer.hs \
gtk/Graphics/UI/Gtk/TreeList/CellRendererPixbuf.chs \
gtk/Graphics/UI/Gtk/TreeList/CellRendererText.chs \
gtk/Graphics/UI/Gtk/TreeList/CellRendererToggle.chs \
gtk/Graphics/UI/Gtk/TreeList/CellView.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/IconView.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/ListStore.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeIter.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeModel.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeModelSort.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreePath.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeSelection.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeStore.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeView.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeViewColumn.chs.pp \
gtk/Graphics/UI/Gtk/TreeList/TreeRowReference.chs.pp \
gtk/Graphics/UI/Gtk/ModelView.hs \
gtk/Graphics/UI/Gtk/ModelView/CellLayout.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CellRenderer.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CellRendererCombo.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CellRendererPixbuf.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CellRendererProgress.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CellRendererText.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CellRendererToggle.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CellView.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/CustomStore.chs \
gtk/Graphics/UI/Gtk/ModelView/Gtk2HsStore.c \
gtk/Graphics/UI/Gtk/ModelView/IconView.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/ListStore.hs.pp \
gtk/Graphics/UI/Gtk/ModelView/Sequence.hs.pp \
gtk/Graphics/UI/Gtk/ModelView/TreeDrag.chs \
gtk/Graphics/UI/Gtk/ModelView/TreeModel.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/TreeModelSort.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/TreeSortable.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/TreeSelection.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/TreeStore.hs \
gtk/Graphics/UI/Gtk/ModelView/TreeView.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/TreeViewColumn.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/TreeRowReference.chs.pp \
gtk/Graphics/UI/Gtk/ModelView/Types.chs \
gtk/Graphics/UI/Gtk/Windows/AboutDialog.chs.pp \
gtk/Graphics/UI/Gtk/Windows/Dialog.chs.pp \
gtk/Graphics/UI/Gtk/Windows/MessageDialog.chs.pp \
gtk/Graphics/UI/Gtk/Windows/Window.chs.pp \
gtk/Graphics/UI/Gtk/Windows/WindowGroup.chs \
gtk/Graphics/UI/Gtk/Gdk/Cursor.chs \
gtk/Graphics/UI/Gtk/Gdk/Drawable.chs.pp \
gtk/Graphics/UI/Gtk/Gdk/GC.chs.pp \
gtk/Graphics/UI/Gtk/Gdk/Gdk.chs \
gtk/Graphics/UI/Gtk/Gdk/Enums.chs.pp \
gtk/Graphics/UI/Gtk/Gdk/Keys.chs \
gtk/Graphics/UI/Gtk/Gdk/PixbufData.hs.pp \
gtk/Graphics/UI/Gtk/Gdk/Pixbuf.chs.pp \
gtk/Graphics/UI/Gtk/Gdk/Pixmap.chs.pp \
gtk/Graphics/UI/Gtk/Gdk/Screen.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Attributes.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Description.chs \
gtk/Graphics/UI/Gtk/Pango/Font.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Enums.chs.pp \
gtk/Graphics/UI/Gtk/Pango/GlyphStorage.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Context.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Layout.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Rendering.chs.pp \
gtk/Graphics/UI/Gtk/General/StockItems.hsc \
gtk/Graphics/UI/Gtk/General/Structs.hsc \
gtk/Graphics/UI/Gtk/Gdk/Events.hsc \
gtk/Graphics/UI/Gtk/Gdk/EventM.hsc \
gtk/Graphics/UI/Gtk/Abstract/Scrollbar.hs \
gtk/Graphics/UI/Gtk/Abstract/Separator.hs \
gtk/Graphics/UI/Gtk/Gdk/DrawWindow.chs.pp \
gtk/Graphics/UI/Gtk/Pango/Markup.hs.pp \
gtk/Graphics/UI/Gtk/General/Selection.chs.pp \
gtk/Graphics/UI/Gtk/General/Drag.chs.pp \
gtk/Graphics/UI/Gtk/General/DNDTypes.chs
gtk/Graphics/UI/Gtk/ModelView/Gtk2HsStore.o: gtk/Graphics/UI/Gtk/ModelView/CustomStore.o
if ENABLE_CAIRO
libHSgtk_a_SOURCES += \
gtk/Graphics/UI/Gtk/Cairo.chs.pp
endif
htmldoc_HSFILES_HIDDEN += \
$(libHSgtk_a_GENERATEDSOURCES:.chs=.hs) \
gtk/Graphics/UI/Gtk/Gdk/PixbufData.hs \
gtk/Graphics/UI/Gtk/General/Structs.hs \
gtk/Graphics/UI/Gtk/Pango/Description.hs \
gtk/Graphics/UI/Gtk/Pango/Types.hs \
gtk/Graphics/UI/Gtk/Pango/Structs.hs \
gtk/Graphics/UI/Gtk/Pango/Attributes.hs \
gtk/Graphics/UI/Gtk/Pango/GlyphStorage.hs \
gtk/Graphics/UI/Gtk/TreeList/TreePath.hs \
gtk/Graphics/UI/Gtk/ModelView/Types.hs \
gtk/Graphics/UI/Gtk/ModelView/Sequence.hs \
gtk/Graphics/UI/Gtk/Multiline/Types.hs \
gtk/Graphics/UI/Gtk/Abstract/ContainerChildProperties.hs \
gtk/Graphics/UI/Gtk/General/DNDTypes.hs
gtk_Graphics_UI_Gtk_hs_HCFLAGS = -fno-warn-duplicate-exports #FIXME
gtk_Graphics_UI_Gtk_Gdk_Enums_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_Types_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_General_Structs_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_Gdk_Events_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_Gdk_EventM_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_General_StockItems_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_Gdk_Region_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_Gdk_Drawable_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_ModelView_Types_hs_HCFLAGS = -fglasgow-exts
gtk_Graphics_UI_Gtk_Gdk_PixbufData_hs_HCFLAGS = -fglasgow-exts
if WIN32
gtk_Graphics_UI_Gtk_General_General_hs_HCFLAGS = '-\#include"gtk/wingtk.h"' -I.
endif
libHSgtk_a_LIBADD = \
gtk/Graphics/UI/Gtk/General/Clipboard_stub.o \
gtk/Graphics/UI/Gtk/Abstract/Container_stub.o \
gtk/Graphics/UI/Gtk/Multiline/TextIter_stub.o \
gtk/Graphics/UI/Gtk/Multiline/TextTagTable_stub.o \
gtk/Graphics/UI/Gtk/MenuComboToolbar/ComboBox_stub.o \
gtk/Graphics/UI/Gtk/TreeList/TreeModel_stub.o \
gtk/Graphics/UI/Gtk/TreeList/TreeSelection_stub.o \
gtk/Graphics/UI/Gtk/TreeList/TreeView_stub.o \
gtk/Graphics/UI/Gtk/ModelView/TreeModel_stub.o \
gtk/Graphics/UI/Gtk/ModelView/TreeSelection_stub.o \
gtk/Graphics/UI/Gtk/ModelView/TreeView_stub.o \
gtk/Graphics/UI/Gtk/ModelView/TreeSortable_stub.o \
gtk/Graphics/UI/Gtk/ModelView/CustomStore_stub.o
if HAVE_GTK_VERSION_2_4
libHSgtk_a_LIBADD += \
gtk/Graphics/UI/Gtk/Entry/EntryCompletion_stub.o \
gtk/Graphics/UI/Gtk/ModelView/CellLayout_stub.o \
gtk/Graphics/UI/Gtk/Selectors/FileFilter_stub.o \
gtk/Graphics/UI/Gtk/ActionMenuToolbar/ActionGroup_stub.o
endif
if HAVE_GTK_VERSION_2_6
libHSgtk_a_LIBADD += \
gtk/Graphics/UI/Gtk/TreeList/IconView_stub.o \
gtk/Graphics/UI/Gtk/ModelView/IconView_stub.o \
gtk/Graphics/UI/Gtk/Windows/AboutDialog_stub.o
endif
if ENABLE_CAIRO
if HAVE_GTK_VERSION_2_8
libHSgtk_a_LIBADD += \
gtk/Graphics/UI/Gtk/Cairo_stub.o
endif
endif
if !USE_GCLOSUE_SIGNALS_IMPL
libHSgtk_a_LIBADD += gtk/Graphics/UI/Gtk/Signals_stub.o
endif
gtk/Graphics/UI/Gtk/Types.chs : \
$(srcdir)/tools/hierarchyGen/hierarchy.list \
$(srcdir)/tools/hierarchyGen/TypeGenerator$(EXEEXT) \
$(srcdir)/tools/hierarchyGen/Hierarchy.chs.template
$(strip $(srcdir)/tools/hierarchyGen/TypeGenerator$(EXEEXT) \
$(srcdir)/tools/hierarchyGen/hierarchy.list \
$(srcdir)/tools/hierarchyGen/Hierarchy.chs.template \
$@ $(addprefix --tag=,$(CREATE_TYPES)) \
--modname=Graphics.UI.Gtk.Types \
--parentname=System.Glib.GObject)
gtk/Graphics/UI/Gtk/Signals.chs : \
$(srcdir)/tools/callbackGen/Signal.chs.template \
$(srcdir)/tools/callbackGen/gtkmarshal.list \
$(srcdir)/tools/callbackGen/HookGenerator$(EXEEXT)
$(strip $(srcdir)/tools/callbackGen/HookGenerator$(EXEEXT) \
$(srcdir)/tools/callbackGen/gtkmarshal.list \
$(srcdir)/tools/callbackGen/Signal.chs.template $@ \
Graphics.UI.Gtk.Signals)
libHSgtk_a_ALLSOURCES = $(libHSgtk_a_SOURCES) $(nodist_libHSgtk_a_SOURCES)
am_libHSgtk_a_OBJECTS = \
$(addsuffix .$(OBJEXT),$(basename $(basename $(libHSgtk_a_ALLSOURCES))))
libHSgtk_a_objects_deps = $(libHSglib_a_OBJECTS)
if ENABLE_CAIRO
libHSgtk_a_objects_deps += $(libHScairo_a_OBJECTS)
endif
libHSgtk_a_HSPPFILES = $(filter %.hs.pp, $(libHSgtk_a_ALLSOURCES))
libHSgtk_a_CHSPPFILES = $(filter %.chs.pp,$(libHSgtk_a_ALLSOURCES))
libHSgtk_a_CHSFILES = $(filter %.chs,$(libHSgtk_a_ALLSOURCES:.chs.pp=.chs))
libHSgtk_a_CHSFILES_HS = $(libHSgtk_a_CHSFILES:.chs=.hs)
libHSgtk_a_HSCFILES = $(filter %.hsc, $(libHSgtk_a_ALLSOURCES))
libHSgtk_a_HSCFILES_HS = $(libHSgtk_a_HSCFILES:.hsc=.hs)
libHSgtk_a_BUILDSOURCES = \
$(libHSgtk_a_HSPPFILES:.hs.pp=.hs) \
$(libHSgtk_a_CHSPPFILES:.chs.pp=.chs) \
$(libHSgtk_a_CHSFILES_HS) \
$(libHSgtk_a_HSCFILES_HS) \
$(libHSgtk_a_GENERATEDSOURCES)
libHSgtk_a_HSFILES = \
$(filter %.hs,$(libHSgtk_a_BUILDSOURCES)) \
$(filter %.hs,$(libHSgtk_a_ALLSOURCES))
libHSgtk_a_CFILES = $(filter %.c,$(libHSgtk_a_ALLSOURCES))
nobase_hi_DATA += $(libHSgtk_a_HSFILES:.hs=.hi)
gtk_MOSTLYCLEANFILES = $(am_libHSgtk_a_OBJECTS)
gtk_MOSTLYCLEANFILES += $(libHSgtk_a_HSFILES:.hs=.hi)
gtk_MOSTLYCLEANFILES += \
$(libHSgtk_a_CHSFILES:.chs=.chi) \
$(libHSgtk_a_CHSFILES:.chs=_stub.h) \
$(libHSgtk_a_CHSFILES:.chs=_stub.o) \
$(libHSgtk_a_CHSFILES:.chs=_stub.c)
gtk_CLEANFILES = $(libHSgtk_a_BUILDSOURCES)
gtk_CLEANFILES += $(libHSgtk_a_CHSFILES_HS:.hs=.dep)
gtk_CLEANFILES += \
$(libHSgtk_a_HSCFILES:.hsc=_hsc_make$(EXEEXT)) \
$(libHSgtk_a_HSCFILES:.hsc=_hsc_make.c) \
$(libHSgtk_a_HSCFILES:.hsc=_hsc_make.o)
$(libHSgtk_a_PRECOMP): $(libHSgtk_a_HEADER)
gtk/libHSgtk_a.deps: $(libHSgtk_a_HSFILES) | \
$(foreach pkg,$(libHSgtk_a_INTERNALDEPS),$(pkg)/libHS$(pkg)_a.deps)
$(libHSgtk_a_CHSFILES:.chs=.dep): \
$(foreach pkg,gtk $(libHSgtk_a_INTERNALDEPS),$(libHS$(pkg)_a_CHSFILES))
$(libHSgtk_a_CHSFILES_HS): $(libHSgtk_a_PRECOMP) $(libHSgtk_a_HEADER)
$(libHSgtk_a_HSCFILES_HS): $(libHSgtk_a_HEADER)
$(libHSgtk_a_OBJECTS) : \
$(foreach pkg,$(libHSgtk_a_INTERNALDEPS),$(libHS$(pkg)_a_OBJECTS))
EARLY_DEPS += $(libHSgtk_a_CHSFILES:.chs=.dep)
ifeq (,$(DONT_USE_DEPS))
-include $(libHSgtk_a_CHSFILES_HS:.hs=.dep) gtk/libHSgtk_a.deps
endif
if ENABLE_SPLITOBJS
libHSgtk_a_AR = $(srcdir)/mk/link-splitobjs.sh
gtk_CLEANFILES_SPLIT = $(libHSgtk_a_HSFILES:.hs=_split/)
else
libHSgtk_a_AR = $(AR) $(ARFLAGS)
endif
libHSgtk_a_DEPENDENCIES = HSgtk.o
pkglib_DATA += HSgtk.o
HSgtk.o : $(libHSgtk_a_OBJECTS)
$(LD) -r $(LD_X) -o $@ $(libHSgtk_a_OBJECTS) $(libHSgtk_a_LIBADD)
if ENABLE_PROFILING
libHSgtk_a_DEPENDENCIES += libHSgtk_p.a
pkglib_DATA += libHSgtk_p.a
libHSgtk_p.a : $(libHSgtk_a_HSFILES:.hs=.p_o) \
$(libHSgtk_a_CFILES:.c=.o) \
$(libHSgtk_a_LIBADD:.o=.p_o)
$(AR) $(ARFLAGS) $@ $^
ifeq (,$(DONT_USE_DEPS))
-include gtk/libHSgtk_a.p_deps
endif
nobase_hi_DATA += $(libHSgtk_a_HSFILES:.hs=.p_hi)
gtk_MOSTLYCLEANFILES += $(libHSgtk_a_HSFILES:.hs=.p_hi)
gtk_MOSTLYCLEANFILES += $(libHSgtk_a_HSFILES:.hs=.p_o)
gtk_MOSTLYCLEANFILES += $(libHSgtk_a_LIBADD:.o=.p_o)
endif
endif
#
# glade package
#
################################################################################