-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
76 lines (65 loc) · 1.99 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = no-exeext foreign subdir-objects
AM_CPPFLAGS = -std=c11 -Wall -Wextra -pedantic -pedantic-errors \
-Wstrict-prototypes -Wconversion -Wsign-conversion -Wsuggest-attribute=noreturn -Wundef -Wshadow -Wwrite-strings \
-pipe -mfpmath=both -march=nocona -mno-stack-arg-probe -mno-accumulate-outgoing-args -mpush-args -masm=intel
## I think you GNU people should just STFU and stop confusing the linker.
EXEEXT =
pkginclude_HEADERS = \
src/gthread.h \
src/c11thread.h
pkginclude_envdir = $(pkgincludedir)/env
pkginclude_env_HEADERS = \
src/env/avl_tree.h \
src/env/bail.h \
src/env/clocks.h \
src/env/condition_variable.h \
src/env/gthread.h \
src/env/c11thread.h \
src/env/heap.h \
src/env/mcfwin.h \
src/env/mutex.h \
src/env/once_flag.h \
src/env/thread.h \
src/env/thread_env.h \
src/env/_crtdef.h \
src/env/_gthread_inl.h \
src/env/_c11thread_inl.h
pkginclude_extdir = $(pkgincludedir)/ext
pkginclude_ext_HEADERS = \
src/ext/assert.h \
src/ext/expect.h \
src/ext/itow.h \
src/ext/wcpcpy.h
bin_PROGRAMS = \
mcfgthread-6.dll
mcfgthread_6_dll_SOURCES = \
src/env/avl_tree.c \
src/env/bail.c \
src/env/clocks.c \
src/env/condition_variable.c \
src/env/gthread.c \
src/env/c11thread.c \
src/env/heap.c \
src/env/mutex.c \
src/env/once_flag.c \
src/env/thread.c \
src/env/thread_env.c \
src/env/_seh_top.c \
src/ext/assert.c \
src/ext/itow.c \
src/ext/wcpcpy.c \
src/dll_startup.c
mcfgthread_6_dll_LDFLAGS = \
-shared -static -nostdlib \
-Wl,-e@__MCFCRT_DllStartup,-subsystem,windows,--disable-runtime-pseudo-reloc,--disable-auto-import \
-Wl,--disable-stdcall-fixup,--enable-auto-image-base,--export-all-symbols,--out-implib,libmcfgthread.dll.a
mcfgthread_6_dll_LDADD = \
-lkernel32 /c/Windows/System32/ntdll.dll
lib_LIBRARIES = \
libmcfgthread.dll.a \
libmcfgthread.a
libmcfgthread.dll.a: mcfgthread-6.dll
libmcfgthread.a: mcfgthread-6.dll
## Due to Windows limitation we can't link this library statically.
cp -p libmcfgthread.dll.a '$@'