summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: a43fb2283d5b555bfe6c6e9efac2d566a18fa544 (plain)
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
lib_LTLIBRARIES = libXt.la

BUILT_SOURCES = $(BUILT_FILES)
CLEANFILES = $(BUILT_SOURCES)

SRCH_DEFINES = -DXFILESEARCHPATHDEFAULT=\"$(XFILESEARCHPATHDEFAULT)\"
ERRORDB_DEFINES = -DERRORDB=\"$(libdir)/X11/XtErrorDB\"

AM_CFLAGS = $(CWARNFLAGS) $(XT_CFLAGS) $(SRCH_DEFINES) $(ERRORDB_DEFINES) \
	$(XTMALLOC_ZERO_CFLAGS)

INCLUDES = -I$(top_srcdir)/include/ -I$(top_srcdir)/include/X11 \
	   -I$(top_builddir)/include -I$(top_builddir)/include/X11

nodist_libXt_la_SOURCES = StringDefs.c

libXt_la_SOURCES = \
	ActionHook.c \
	Alloc.c \
	ArgList.c \
	Callback.c \
	ClickTime.c \
	Composite.c \
	Constraint.c \
	Convert.c \
	Converters.c \
	Core.c \
	Create.c \
	Destroy.c \
	Display.c \
	Error.c \
	Event.c \
	EventUtil.c \
	Functions.c \
	GCManager.c \
	Geometry.c \
	GetActKey.c \
	GetResList.c \
	GetValues.c \
	HookObj.c \
	Hooks.c \
	Initialize.c \
	Intrinsic.c \
	Keyboard.c \
	Manage.c \
	NextEvent.c \
	Object.c \
	PassivGrab.c \
	Pointer.c \
	Popup.c \
	PopupCB.c \
	RectObj.c \
	ResConfig.c \
	Resources.c \
	Selection.c \
	SetSens.c \
	SetValues.c \
	SetWMCW.c \
	Shell.c \
	TMaction.c \
	TMgrab.c \
	TMkey.c \
	TMparse.c \
	TMprint.c \
	TMstate.c \
	Threads.c \
	VarCreate.c \
	VarGet.c \
	Varargs.c \
	Vendor.c \
	sharedlib.c

DISTCLEANFILES = StringDefs.c

libXt_la_LIBADD = @XT_LIBS@

libXt_la_LDFLAGS = -version-number 6:0:0 -no-undefined

#
# The util directory contains a program that builds some of the sources. 
# The input to this program is given in files. Unfortunately those input
# files refers to things like
# 
# 	util/foo
# 
# so the generating program must be run from the top directory.
# 

BUILT_SOURCE = StringDefs.c 
BUILT_HEADER = $(top_builddir)/include/X11/StringDefs.h $(top_builddir)/include/X11/Shell.h
BUILT_FILES = $(BUILT_SOURCE) $(BUILT_HEADER)

STRING_LIST = $(top_srcdir)/util/string.list

all-local: $(BUILT_FILES)

$(BUILT_HEADER): $(BUILT_SOURCE)

$(BUILT_SOURCE):
	$(top_builddir)/util/makestrs -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c
	mkdir -p $(top_builddir)/src
	mkdir -p $(top_builddir)/include/X11
	cp StringDefs.h $(top_builddir)/include/X11
	cp Shell.h $(top_builddir)/include/X11
	rm StringDefs.h Shell.h