1lib_LTLIBRARIES = libXt.la
2
3BUILT_SOURCES = $(BUILT_FILES)
4CLEANFILES = $(BUILT_SOURCES)
5
6SRCH_DEFINES = -DXFILESEARCHPATHDEFAULT=\"$(XFILESEARCHPATHDEFAULT)\"
7ERRORDB_DEFINES = -DERRORDB=\"$(ERRORDBDIR)/XtErrorDB\"
8
9AM_CFLAGS = $(CWARNFLAGS) $(XT_CFLAGS) $(SRCH_DEFINES) $(ERRORDB_DEFINES) \
10	$(XTMALLOC_ZERO_CFLAGS) -DLIBXT_COMPILATION
11
12AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/include/X11 \
13	      -I$(top_builddir)/include -I$(top_builddir)/include/X11
14
15nodist_libXt_la_SOURCES = StringDefs.c
16
17libXt_la_SOURCES = \
18	ActionHook.c \
19	Alloc.c \
20	ArgList.c \
21	Callback.c \
22	ClickTime.c \
23	Composite.c \
24	Constraint.c \
25	Convert.c \
26	Converters.c \
27	Core.c \
28	Create.c \
29	Destroy.c \
30	Display.c \
31	Error.c \
32	Event.c \
33	EventUtil.c \
34	Functions.c \
35	GCManager.c \
36	Geometry.c \
37	GetActKey.c \
38	GetResList.c \
39	GetValues.c \
40	HookObj.c \
41	Hooks.c \
42	Initialize.c \
43	Intrinsic.c \
44	Keyboard.c \
45	Manage.c \
46	NextEvent.c \
47	Object.c \
48	PassivGrab.c \
49	Pointer.c \
50	Popup.c \
51	PopupCB.c \
52	RectObj.c \
53	ResConfig.c \
54	Resources.c \
55	Selection.c \
56	SetSens.c \
57	SetValues.c \
58	SetWMCW.c \
59	Shell.c \
60	TMaction.c \
61	TMgrab.c \
62	TMkey.c \
63	TMparse.c \
64	TMprint.c \
65	TMstate.c \
66	Threads.c \
67	VarCreate.c \
68	VarGet.c \
69	Varargs.c \
70	Vendor.c
71
72DISTCLEANFILES = StringDefs.c
73
74libXt_la_LIBADD = @XT_LIBS@
75
76libXt_la_LDFLAGS = -version-number 6:0:0 -no-undefined
77
78#
79# The util directory contains a program that builds some of the sources.
80# The input to this program is given in files. Unfortunately those input
81# files refers to things like
82#
83# 	util/foo
84#
85# so the generating program must be run from the top directory.
86#
87
88BUILT_SOURCE = StringDefs.c
89BUILT_HEADER = $(top_builddir)/include/X11/StringDefs.h $(top_builddir)/include/X11/Shell.h
90BUILT_FILES = $(BUILT_SOURCE) $(BUILT_HEADER)
91
92STRING_LIST = $(top_srcdir)/util/string.list
93
94all-local: $(BUILT_FILES)
95
96$(BUILT_HEADER): $(BUILT_SOURCE)
97
98$(BUILT_SOURCE): $(top_builddir)/util/makestrs$(EXEEXT) 
99	$(AM_V_GEN)$(top_builddir)/util/makestrs -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c
100	$(AM_V_at)$(MKDIR_P) $(top_builddir)/src
101	$(AM_V_at)$(MKDIR_P) $(top_builddir)/include/X11
102	$(AM_V_at)cp StringDefs.h $(top_builddir)/include/X11
103	$(AM_V_at)cp Shell.h $(top_builddir)/include/X11
104	$(AM_V_at)rm StringDefs.h Shell.h
105
106$(top_builddir)/util/makestrs$(EXEEXT) :
107	$(am__cd) $(@D) && $(MAKE) $(AM_MAKEFLAGS) $(@F)
108