]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Avoid compile errors due to the min/max macros on mingw, too
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 SUBDIRS = . tests
4
5 CLEANFILES += $(BUILT_SOURCES)
6
7 EXTRA_DIST = package.C.in pch.h \
8         os_cygwin.C os_unix.C os_win32.C os_win32.h
9
10 noinst_LTLIBRARIES = libsupport.la
11
12 libsupport_la_LIBADD = $(LIBSHLWAPI)
13
14 BUILT_SOURCES = $(PCH_FILE) package.C
15
16 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
17
18 libsupport_la_SOURCES = \
19         FileMonitor.h \
20         FileMonitor.C \
21         RandomAccessList.h \
22         abort.C \
23         chdir.C \
24         convert.C \
25         convert.h \
26         copy.C \
27         copied_ptr.h \
28         cow_ptr.h \
29         debugstream.h \
30         docstring.C \
31         docstring.h \
32         environment.h \
33         environment.C \
34         filefilterlist.C \
35         filefilterlist.h \
36         filename.C \
37         filename.h \
38         filetools.C \
39         filetools.h \
40         fontutils.C \
41         fontutils.h \
42         forkedcall.C \
43         forkedcall.h \
44         forkedcallqueue.C \
45         forkedcallqueue.h \
46         forkedcontr.C \
47         forkedcontr.h \
48         fs_extras.C \
49         fs_extras.h \
50         getcwd.C \
51         kill.C \
52         limited_stack.h \
53         lstrings.C \
54         lstrings.h \
55         lyxalgo.h \
56         lyxlib.h \
57         lyxmanip.h \
58         lyxtime.C \
59         lyxtime.h \
60         lyxsum.C \
61         mkdir.C \
62         os.C \
63         os.h \
64         path.C \
65         path.h \
66         package.C \
67         package.h \
68         rename.C \
69         socktools.C \
70         socktools.h \
71         std_istream.h \
72         std_ostream.h \
73         systemcall.C \
74         systemcall.h \
75         tempname.C \
76         textutils.h \
77         translator.h \
78         types.h \
79         userinfo.C \
80         userinfo.h \
81         unicode.C \
82         unicode.h \
83         unlink.C
84
85
86 package.C: build_package
87
88 # Solaris sed does not like spaces bewteen the ;-delimited commands
89 build_package: package.C.in
90         @rm -f tmp_package ;\
91         sed "s,%LYX_DIR%,$(LYX_ABS_INSTALLED_DATADIR),;\
92 s,%LOCALEDIR%,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
93 s,%TOP_SRCDIR%,$(LYX_ABS_TOP_SRCDIR),;\
94 s,%PROGRAM_SUFFIX%,$(program_suffix)," \
95                 $(srcdir)/package.C.in > tmp_package ;\
96         if cmp -s tmp_package package.C ; then \
97                 rm -f tmp_package ;\
98         else \
99                 rm -f package.C ;\
100                 mv tmp_package package.C ;\
101         fi