1XMSTRING_LIST = xmstring.list
2
3MAINTAINERCLEANFILES = Makefile.in
4CLEANFILES = $(BUILT_SOURCES)
5EXTRA_DIST = xmstring.list Xm.msg \
6             XmStrDefs.ct
7
8INCLUDES = -I.. -I$(srcdir)/.. -DXMBINDDIR_FALLBACK=\"@XMBINDDIR_FALLBACK@\" \
9           -DINCDIR=\"@INCDIR@\" \
10           -DLIBDIR=\"@LIBDIR@\" \
11           ${X_CFLAGS}
12xmdir = $(includedir)/Xm
13
14libXm_la_LDFLAGS = -version-info @CURRENT@:@REVISION@:@AGE@
15
16lib_LTLIBRARIES = libXm.la
17
18TIP_SRCS = ToolTip.c
19TIP_HDRS = ToolTipI.h
20
21
22EXTRA_HDRS = Ext.h ExtP.h  \
23             Column.h ColumnP.h \
24             ButtonBox.h ButtonBoxP.h \
25             ColorS.h ColorSP.h \
26             Picture.h PictureP.h DataF.h DataFP.h DataFSelP.h \
27             Ext18List.h Ext18ListP.h MultiList.h MultiListP.h \
28             Paned.h PanedP.h FontS.h FontSP.h \
29             IconBox.h IconBoxP.h IconButton.h IconButtonP.h xmlist.h \
30             Hierarchy.h HierarchyP.h Outline.h OutlineP.h \
31             TabBox.h TabBoxP.h TabStack.h TabStackP.h \
32             TabList.h DrawUtils.h Tree.h TreeP.h \
33             ComboBox2.h ComboBox2P.h DropDown.h DropDownP.h \
34             ToolTipT.h ToolTipCT.h
35
36EXTRA_SRCS = XmExtUtil.c \
37             Column.c ButtonBox.c ColorS.c Picture.c DataFSel.c DataF.c \
38             MultiList.c I18List.c Paned.c FontS.c IconBox.c IconButton.c xmlist.c \
39             Hierarchy.c Outline.c TabBox.c TabList.c TabStack.c \
40             DrawUtils.c Tree.c DropDown.c \
41             XmStrDefs.ht XmStrDefs22.ht XmStrDefs23.ht XmStrDefsI.ht
42
43SLIDE_HDRS = SlideC.h SlideCP.h
44SLIDE_SRCS = SlideC.c
45
46if OM_XMU
47EDITRES_SRCS = EditresCom.c
48else
49EDITRES_SRCS =
50endif
51
52if OM_LIBJPEG
53JPEG_SRCS = Jpeg.c
54JPEG_HDRS = JpegI.h
55else
56JPEG_SRCS =
57JPEG_HDRS =
58endif
59
60if OM_LIBPNG
61PNG_SRCS = Png.c
62PNG_HDRS = PngI.h
63else
64PNG_SRCS =
65PNG_HDRS =
66endif
67
68if PRINTING
69PRINTS_SRC = PrintS.c
70else
71PRINTS_SRC =
72endif
73
74libXm_la_LIBADD = ${X_LIBS} ${X_XMU} -lXt -lXext ${LIB_XP} -lX11 ${X_EXTRA_LIBS}
75
76noinst_HEADERS = BaseClassI.h \
77BitmapsI.h \
78BulletinBI.h \
79CacheI.h \
80CallbackI.h \
81CareVisualTI.h \
82CascadeBGI.h \
83CascadeBI.h \
84ClipWindTI.h \
85CntrbmI.h \
86ColorI.h \
87ColorObjI.h \
88CommandI.h \
89CutPasteI.h \
90DestI.h \
91DisplayI.h \
92DragBSI.h \
93DragCI.h \
94DragICCI.h \
95DragIconI.h \
96DragOverSI.h \
97DragUnderI.h \
98DrawI.h \
99DrawingAI.h \
100DropSMgrI.h \
101ExtObjectI.h \
102GMUtilsI.h \
103GadgetI.h \
104GadgetUtiI.h \
105GeoUtilsI.h \
106HashI.h \
107IconGI.h \
108ImageCachI.h \
109LabelGI.h \
110LabelI.h \
111ManagerI.h \
112MapEventsI.h \
113MenuProcI.h \
114MenuShellI.h \
115MenuStateI.h \
116MenuUtilI.h \
117MessageBI.h \
118MessagesI.h \
119PixConvI.h \
120PrimitiveI.h \
121PrintSI.h \
122ProtocolsI.h \
123RCHookI.h \
124RCLayoutI.h \
125RCMenuI.h \
126ReadImageI.h \
127RegionI.h \
128RepTypeI.h \
129ResConverI.h \
130ResEncodI.h \
131ResIndI.h \
132RowColumnI.h \
133ScreenI.h \
134ScrollFramTI.h \
135ScrolledWI.h \
136SelectioBI.h \
137SeparatoGI.h \
138SyntheticI.h \
139TearOffI.h \
140TextDIconI.h \
141TextFI.h \
142TextFSelI.h \
143TextI.h \
144TextInI.h \
145TextOutI.h \
146TextSelI.h \
147TextStrSoI.h \
148ToggleBGI.h \
149TraitI.h \
150TransferI.h \
151TravActI.h \
152TraversalI.h \
153UniqueEvnI.h \
154VaSimpleI.h \
155VendorSEI.h \
156VendorSI.h \
157VirtKeysI.h \
158XmI.h \
159XmImI.h \
160XmMsgI.h \
161XmRenderTI.h \
162XmStrDefsI.h \
163XmStringI.h \
164XmTabListI.h \
165XmosI.h \
166XpmI.h \
167EditresComI.h \
168$(JPEG_HDRS) \
169$(PNG_HDRS) \
170$(TIP_HDRS)
171
172xm_HEADERS = ArrowB.h      ArrowBG.h       ArrowBGP.h      ArrowBP.h \
173        BulletinB.h     BulletinBP.h    CacheP.h        CascadeB.h \
174        CascadeBG.h     CascadeBGP.h    CascadeBP.h     Command.h \
175        CommandP.h      CutPaste.h      DialogS.h \
176        DialogSP.h      DialogSEP.h     DragC.h         DragCP.h \
177        DragDrop.h      DragIcon.h      DragIconP.h     DragOverS.h \
178        DragOverSP.h    DropTransP.h    DropSMgr.h      DropSMgrP.h \
179        DropTrans.h     DrawingA.h      DrawingAP.h     DrawnB.h \
180        DrawnBP.h       FileSB.h        FileSBP.h       Form.h \
181        FormP.h         Frame.h         FrameP.h        Label.h \
182        LabelG.h        LabelGP.h       LabelP.h        List.h \
183        ListP.h         MainW.h         MainWP.h        MenuShell.h \
184        MenuShellP.h    MessageB.h      MessageBP.h     PanedW.h \
185        PanedWP.h       PushB.h         PushBG.h        PushBGP.h \
186        PushBP.h        RCLayoutP.h     RowColumn.h     RowColumnP.h \
187        SashP.h         Scale.h         ScaleP.h        ScrollBar.h \
188        ScrollBarP.h    ScrolledW.h     ScrolledWP.h    SelectioB.h \
189        SelectioBP.h    SeparatoG.h     SeparatoGP.h    Separator.h \
190        SeparatorP.h    TextF.h         TextFP.h        TextFSelP.h \
191        TextSelP.h      Text.h          TextInP.h       TextOutP.h \
192        TextP.h         TextStrSoP.h    ToggleB.h       ToggleBG.h \
193        ToggleBGP.h     ToggleBP.h      XmP.h \
194        BaseClassP.h    ManagerP.h      PrimitiveP.h    GadgetP.h \
195        XmStrDefs.h     XmStrDefs22.h   XmStrDefs23.h \
196        VaSimpleP.h     VirtKeys.h      VirtKeysP.h \
197        ExtObjectP.h    Display.h       DisplayP.h      Screen.h \
198        ScreenP.h       ShellEP.h       VendorS.h       VendorSP.h \
199        VendorSEP.h     DesktopP.h      AtomMgr.h \
200        Protocols.h     ProtocolsP.h    MwmUtil.h       TransltnsP.h \
201        RepType.h       XmosP.h         Xmos_r.h       DrawP.h   \
202        Xmpoll.h        TearOffP.h \
203        TearOffBP.h     MenuUtilP.h     MenuT.h         XmAll.h \
204        TraitP.h        SpinB.h         SpinBP.h        SSpinB.h \
205        SSpinBP.h \
206        Container.h     ContainerP.h    IconG.h         IconGP.h \
207        Notebook.h      NotebookP.h     ContItemT.h     ContainerT.h \
208        RCMenuP.h       ClipWindowP.h   TransferT.h \
209        Transfer.h      AccTextT.h      NavigatorT.h    IconFileP.h\
210        ScrollFrameT.h  GrabShell.h     GrabShellP.h    ComboBox.h \
211        ComboBoxP.h     XmIm.h          IconFile.h      AccColorT.h\
212        ActivatableT.h  JoinSideT.h     SpecRenderT.h \
213        CareVisualT.h   DialogSavvyT.h  TransferP.h     TakesDefT.h \
214        ColorP.h        Primitive.h     Manager.h \
215        Gadget.h        LayoutT.h       IconH.h         IconHP.h \
216        UnitTypeT.h     TxtPropCv.h     MenuProcP.h     MenuStateP.h\
217        ColorObjP.h     TravConT.h      UnhighlightT.h  PointInT.h \
218        Print.h         PrintSP.h       XpmP.h		Xmfuncs.h \
219        ${SLIDE_HDRS}	${EXTRA_HDRS}
220
221nodist_xm_HEADERS = Xm.h
222
223SRCS1 = XmStrDefs.c ArrowB.c        ArrowBG.c       BulletinB.c     CallbackI.c \
224        CascadeB.c      CascadeBG.c     Command.c       CutPaste.c \
225        Dest.c          DialogS.c       DialogSE.c      DragBS.c \
226        DragC.c         DragOverS.c     DragICC.c       DragIcon.c \
227        DragUnder.c     DrawingA.c      DrawnB.c        DropSMgr.c \
228        DropSMgrI.c     DropTrans.c     ExtObject.c     FileSB.c \
229        Form.c          Frame.c         Gadget.c        GadgetUtil.c \
230        GeoUtils.c      ImageCache.c    Label.c         LabelG.c \
231        List.c          MainW.c         MapEvents.c     MenuShell.c \
232        MenuUtil.c      MessageB.c      PanedW.c        PushB.c \
233        PushBG.c        ReadImage.c     Region.c        ResConvert.c \
234        ResInd.c        RowColumn.c     Sash.c          \
235        Scale.c         ScrollBar.c     ScrolledW.c     SelectioB.c \
236        SeparatoG.c     Separator.c     Simple.c        Text.c \
237        TextIn.c        TextOut.c       TextStrSo.c     TextSel.c \
238        ToggleB.c       ToggleBG.c      TrackLoc.c      UniqueEvnt.c \
239        VaSimple.c      VirtKeys.c      XmString.c      ResEncod.c\
240        TextF.c         TextFSel.c      AtomMgr.c \
241        Cache.c         Protocols.c     Primitive.c     Manager.c \
242        Traversal.c     TravAct.c       TraversalI.c    BaseClass.c
243
244SRCS2 = Desktop.c       Messages.c      Transltns.c     RepType.c \
245        Xmos.c          Draw.c          TearOff.c       TearOffB.c \
246        XmIm.c          GMUtils.c       Display.c       Screen.c \
247        ShellE.c        VendorS.c       VendorSE.c      RCMenu.c  \
248        RCLayout.c      GetPixData.c    RCPopup.c       Trait.c  \
249        Synthetic.c     XmFontList.c    ClipWindow.c    Transfer.c \
250        Hash.c          ScrollFrameT.c  \
251        XmTabList.c     Resolve.c       XmStringFunc.c \
252        XmRenderT.c     PixConv.c       Color.c         Xm.c \
253        CareVisualT.c   Direction.c     XmStringObso.c  XmStringGet.c \
254        IsMwmRun.c      MenuProc.c      MenuState.c     TextFind.c \
255        TextFunc.c      ColorObj.c      IconFile.c      RCHook.c \
256        GetRes.c        BBUtil.c        ChColor.c       ColObjFunc.c \
257        DrTog.c         DrArrow.c       DrPoly.c        DrHiDash.c \
258        ValTime.c       FocusAct.c      CvtUnit.c       ScalTics.c \
259        ScroVis.c       WidGet.c        $(PRINTS_SRC)
260
261OBSO_SRCS = Obso1_2.c ObsoStr.c ObsoXme.c Obso2_0.c
262
263XPM_SRCS = \
264        XpmAttrib.c    XpmCrIFrDat.c  XpmInfo.c      XpmWrFFrDat.c  Xpmmisc.c \
265        XpmCrBufFrI.c  XpmCrIFrP.c    XpmRdFToBuf.c  XpmWrFFrI.c    Xpmparse.c\
266        XpmCrBufFrP.c  XpmCrPFrBuf.c  XpmRdFToDat.c  XpmWrFFrP.c    Xpmrgb.c \
267        XpmCrDatFrI.c  XpmCrPFrDat.c  XpmRdFToI.c    Xpmcreate.c    Xpmscan.c \
268        Xpms_popen.c   XpmCrDatFrP.c  XpmCrPFrI.c    XpmRdFToP.c    Xpmdata.c \
269        XpmCrIFrBuf.c  XpmImage.c     XpmWrFFrBuf.c  Xpmhashtab.c
270
271NEW_WID_SRCS =         IconH.c        Container.c     IconG.c  \
272        Notebook.c     ComboBox.c     GrabShell.c     SpinB.c  \
273        SSpinB.c       TxtPropCv.c    XmStringSeg.c   TranslNew.c
274
275libXm_la_SOURCES = $(SRCS1) $(SRCS2) $(OBSO_SRCS) $(XPM_SRCS) $(NEW_WID_SRCS) $(SLIDE_SRCS) \
276        $(TIP_SRCS) $(EDITRES_SRCS) $(EXTRA_SRCS) $(JPEG_SRCS) $(PNG_SRCS)
277
278EXTRA_libXm_la_SOURCES = $(SLIDE_SRCS) $(TIP_SRCS)
279
280STRING_FILES = XmStrDefs.h XmStrDefs22.h XmStrDefs23.h XmStrDefsI.h XmStrDefs.c
281
282BUILT_SOURCES = $(STRING_FILES) $(CAT_FILES)
283
284$(top_builddir)/config/util/makestrs:
285	( cd $(top_builddir)/config/util && $(MAKE) $(AM_MAKEFLAGS) makestrs )
286
287$(STRING_FILES): Makefile $(XMSTRING_LIST) XmStrDefs.ht XmStrDefsI.ht XmStrDefs.ct $(top_builddir)/config/util/makestrs
288	test -f $(XMSTRING_LIST) || $(LN_S) $(srcdir)/$(XMSTRING_LIST) $(XMSTRING_LIST)
289	test -f XmStrDefs.ht || $(LN_S) $(srcdir)/XmStrDefs.ht XmStrDefs.ht
290	test -f XmStrDefs22.ht || $(LN_S) $(srcdir)/XmStrDefs22.ht XmStrDefs22.ht
291	test -f XmStrDefs23.ht || $(LN_S) $(srcdir)/XmStrDefs23.ht XmStrDefs23.ht
292	test -f XmStrDefsI.ht || $(LN_S) $(srcdir)/XmStrDefsI.ht XmStrDefsI.ht
293	test -f XmStrDefs.ct || $(LN_S) $(srcdir)/XmStrDefs.ct XmStrDefs.ct
294	$(top_builddir)/config/util/makestrs -f $(XMSTRING_LIST) >XmStrDefs.c
295
296if MessageCatalog
297
298CAT_FILES = Xm.cat XmMsgCatI.h
299
300$(CAT_FILES): Xm.msg
301	$(mkinstalldirs) $(top_builddir)/localized/C/msg
302	$(top_builddir)/localized/util/mkcatdefs XmMsgCatI.h $(srcdir)/Xm.msg >$(top_builddir)/localized/C/msg/Xm.msg
303	gencat Xm.cat $(top_builddir)/localized/C/msg/Xm.msg
304    SPLINT_EXTRAFLAGS = -I/usr/include -I. +posixlib -nestcomment
305else
306    SPLINT_EXTRAFLAGS = -I/usr/include -I. -DNO_MESSAGE_CATALOG +posixlib -nestcomment
307endif
308
309splint: $(STRING_FILES)
310	$(SPLINT) $(INCLUDES) $(SPLINT_EXTRAFLAGS) $(top_srcdir)/lib/Xm/*.c
311
312#include $(srcdir)/check_headers.am
313