1AM_CPPFLAGS = $(JEFFX_CFLAGS) $(FXSCINTILLA_CFLAGS) $(FOX_CFLAGS) $(LUA_CFLAGS) $(X11_CFLAGS)
2LDADD = $(JEFFX_LIBS) $(FXSCINTILLA_LIBS) $(FOX_LIBS) $(LUA_LIBS) $(X11_LIBS) $(LIBINTL)
3DEFS += -DLOCALEDIR=\"$(localedir)\"
4
5
6bin_PROGRAMS=fxite
7
8utildir = $(datadir)/applications
9util_DATA = fxite.desktop
10
11icondir = $(prefix)/share/pixmaps
12icon_DATA = fxite.xpm
13
14fxite_LDFLAGS=$(FXSCINTILLA_LIBS) $(LUA_LIBS) $(LDFLAGS)
15
16fxite_SOURCES=\
17appmain.cpp \
18appname.cpp \
19appwin_base.cpp \
20appwin.cpp \
21appwin_pub.cpp \
22backup.cpp \
23cmd_utils.cpp \
24color_funcs.cpp \
25doctabs.cpp \
26export.cpp \
27filedlg.cpp \
28filer.cpp \
29foreachtab.cpp \
30fxasq.cpp \
31fxasq_c.cpp \
32fxasq_lua.c \
33help.cpp \
34isutf8.c \
35lang.cpp \
36luacmds.cpp \
37luafuncs.cpp \
38luafx.cpp \
39macro.cpp \
40mainmenu.cpp \
41menuspec.cpp \
42migration.cpp \
43outpane.cpp \
44prefdlg.cpp \
45prefdlg_ext.cpp \
46prefdlg_sntx.cpp \
47prefdlg_tbar.cpp \
48prefs.cpp \
49prefs_base.cpp \
50readtags.c \
51recorder.cpp \
52scidoc.cpp \
53scidoc_util.cpp \
54scisrch.cpp \
55search.cpp \
56shmenu.cpp \
57statusbar.cpp \
58tagread.cpp \
59theme.cpp \
60toolbar.cpp \
61toolmgr.cpp \
62tooltree.cpp \
63winshcut.c
64
65
66noinst_HEADERS=\
67appmain.h \
68appname.h \
69appwin.h \
70appwin_base.h \
71appwin_pub.h \
72backup.h \
73cmd_utils.h \
74color_funcs.h \
75doctabs.h \
76export.h \
77filedlg.h \
78filer.h \
79foreachtab.h \
80fxasq.h \
81fxasq_c.h \
82fxasq_lua.h \
83help.h \
84help_lua.h \
85helptext.h \
86lang.h \
87langlist.h \
88luacmds.h \
89luafuncs.h \
90luafx.h \
91luasci.h \
92macro.h \
93mainmenu.h \
94menuspec.h \
95outpane.h \
96prefdlg.h \
97prefdlg_ext.h \
98prefdlg_sntx.h \
99prefdlg_tbar.h \
100prefs.h \
101prefs_base.h \
102readtags.h \
103recorder.h \
104scidoc.h \
105scidoc_util.h \
106scisrch.h \
107search.h \
108shmenu.h \
109statusbar.h \
110tagread.h \
111theme.h \
112toolbar.h \
113toolmgr.h \
114tooltree.h
115
116
117EXTRA_DIST=\
118fxite.desktop \
119fxite.xpm \
120help_lua.txt \
121helptext.txt \
122icon32x32.coff \
123icon32x32.ico \
124icon32x32.rc
125
126
127$(srcdir)/help.cpp: $(srcdir)/helptext.h $(srcdir)/help_lua.h
128
129$(srcdir)/helptext.h: $(srcdir)/helptext.txt
130	awk '{if (/\\$$/) {sub(/\\$$/,""); printf("%s",$$0)} else {print}}' $< > $<.tmp
131	$(RESWRAP) -o $@ $<.tmp
132	$(RM) $<.tmp
133
134$(srcdir)/help_lua.h: $(srcdir)/help_lua.txt
135	awk '{if (/\\$$/) {sub(/\\$$/,""); printf("%s",$$0)} else {print}}' $< > $<.tmp
136	$(RESWRAP) -o $@ $<.tmp
137	$(RM) $<.tmp
138
139$(srcdir)/icon32x32.ico: $(srcdir)/fxite.xpm
140	convert $< $@
141
142
143$(srcdir)/icon32x32.rc: $(srcdir)/icon32x32.ico
144
145
146$(srcdir)/icon32x32.coff: $(srcdir)/icon32x32.rc
147	windres -i $< -o $@
148
149win32: $(srcdir)/icon32x32.coff all
150
151
152
153