summaryrefslogtreecommitdiff
path: root/src/Makefile_Evil.am
blob: b6b4e0af956bdfc90ee9b1dbbb5feddf97ffa438 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126

if HAVE_WINDOWS
### Library

lib_LTLIBRARIES += lib/evil/libevil.la lib/evil/libdl.la

install_evilheadersdir = $(includedir)/evil-@VMAJ@
dist_install_evilheaders_DATA = \
lib/evil/Evil.h \
lib/evil/evil_fcntl.h \
lib/evil/evil_inet.h \
lib/evil/evil_langinfo.h \
lib/evil/evil_macro.h \
lib/evil/evil_macro_pop.h \
lib/evil/evil_main.h \
lib/evil/evil_stdlib.h \
lib/evil/evil_stdio.h \
lib/evil/evil_string.h \
lib/evil/evil_time.h \
lib/evil/evil_unistd.h \
lib/evil/evil_util.h \
lib/evil/pwd.h \
lib/evil/fnmatch.h \
lib/evil/dirent.h \
lib/evil/dlfcn.h

if HAVE_WINCE
dist_install_evilheaders_DATA += lib/evil/mingw32ce/errno.h
endif

evilmmanheadersdir = $(includedir)/evil-@VMAJ@/sys
dist_evilmmanheaders_DATA = \
lib/evil/sys/mman.h

lib_evil_libevil_la_SOURCES = \
lib/evil/evil_dirent.c \
lib/evil/evil_fcntl.c \
lib/evil/evil_fnmatch.c \
lib/evil/evil_fnmatch_list_of_states.c \
lib/evil/evil_inet.c \
lib/evil/evil_langinfo.c \
lib/evil/evil_main.c \
lib/evil/evil_mman.c \
lib/evil/evil_pwd.c \
lib/evil/evil_stdlib.c \
lib/evil/evil_stdio.c \
lib/evil/evil_string.c \
lib/evil/evil_time.c \
lib/evil/evil_unistd.c \
lib/evil/evil_util.c \
lib/evil/evil_uuid.c \
lib/evil/evil_private.h \
lib/evil/evil_fnmatch_private.h

if HAVE_WINCE
lib_evil_libevil_la_SOURCES += lib/evil/evil_errno.c lib/evil/evil_link_ce.c
else
lib_evil_libevil_la_SOURCES += lib/evil/evil_link_xp.cpp
endif

lib_evil_libevil_la_CFLAGS = @EVIL_CFLAGS@ @EVIL_CFLAGS_WRN@ -D__USE_MINGW_ANSI_STDIO
lib_evil_libevil_la_CXXFLAGS = @EVIL_CXXFLAGS@ @EVIL_CFLAGS@
lib_evil_libevil_la_LIBADD = @EVIL_LIBS@
lib_evil_libevil_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

if HAVE_WINCE
lib_evil_libevil_la_LINK = $(LINK) $(lib_evil_libevil_la_LDFLAGS)
else
lib_evil_libevil_la_LINK = $(CXXLINK) $(lib_evil_libevil_la_LDFLAGS)
endif

lib_evil_libdl_la_SOURCES = lib/evil/dlfcn.c

lib_evil_libdl_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@EVIL_CFLAGS@ \
@EVIL_DLFCN_CPPFLAGS@
lib_evil_libdl_la_LIBADD = \
@USE_EVIL_LIBS@ \
@EVIL_DLFCN_LIBS@
lib_evil_libdl_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

### Binary

bin_PROGRAMS += bin/evil/evil_suite bin/evil/test_evil

bin_evil_evil_suite_SOURCES = \
bin/evil/evil_suite.c \
bin/evil/evil_test_dlfcn.c \
bin/evil/evil_test_environment.c \
bin/evil/evil_test_gettimeofday.c \
bin/evil/evil_test_link.c \
bin/evil/evil_test_memcpy.c \
bin/evil/evil_test_mkstemp.c \
bin/evil/evil_test_pipe.c \
bin/evil/evil_test_print.c \
bin/evil/evil_test_realpath.c \
bin/evil/evil_test_util.c \
bin/evil/evil_suite.h \
bin/evil/evil_test_dlfcn.h \
bin/evil/evil_test_environment.h \
bin/evil/evil_test_gettimeofday.h \
bin/evil/evil_test_link.h \
bin/evil/evil_test_memcpy.h \
bin/evil/evil_test_mkstemp.h \
bin/evil/evil_test_pipe.h \
bin/evil/evil_test_print.h \
bin/evil/evil_test_realpath.h \
bin/evil/evil_test_util.h

if HAVE_WINCE
bin_evil_evil_suite_SOURCES +=  bin/evil/memcpy_glibc_arm.S
#else
#suite_SOURCES +=  bin/evil/memcpy_glibc_i686.S # see EXTRA_DIST below!
endif

bin_evil_evil_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EVIL_CFLAGS@
bin_evil_evil_suite_LDADD = @USE_EVIL_LIBS@ @DL_LIBS@ -lm

bin_evil_test_evil_SOURCES = bin/evil/test_evil.c
bin_evil_test_evil_LDADD = @USE_EVIL_LIBS@

endif
EXTRA_DIST += \
lib/evil/gdtoa/README \
lib/evil/gdtoa/README.mingw \
bin/evil/memcpy_glibc_i686.S