Implement ReadFileEx and WriteFileEx (lpOverlappedCompletion routine
[wine] / libtest / Makefile.in
1 DEFS       = @DLLFLAGS@ -DSTRICT
2 LDDLLFLAGS = @LDDLLFLAGS@
3 TOPSRCDIR  = @top_srcdir@
4 TOPOBJDIR  = ..
5 SRCDIR     = @srcdir@
6 VPATH      = @srcdir@
7 MODULE     = none
8 PROGRAMS   = expand hello hello2 hello3 hello4 hello5 new rolex vartest volinfo
9 ALL_LIBS   = $(LIBWINE) $(LIBS)
10
11 C_SRCS = \
12         expand.c \
13         hello.c \
14         hello2.c \
15         hello3.c \
16         hello4.c \
17         hello5.c \
18         new.c \
19         rolex.c \
20         vartest.c \
21         volinfo.c
22
23 SPEC_SRCS = \
24         expand.spec \
25         hello.spec \
26         hello2.spec \
27         hello3.spec \
28         hello4.spec \
29         hello5.spec \
30         new.spec \
31         rolex.spec \
32         vartest.spec \
33         volinfo.spec
34
35 RC_SRCS = \
36         hello3res.rc
37
38 all: $(PROGRAMS) $(PROGRAMS:%=%.so)
39
40 @MAKE_RULES@
41
42 expand.spec.c: expand.spec expand.o $(WINEBUILD)
43         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym expand.o -o expand.spec.c -spec expand.spec
44 expand.so: expand.o expand.spec.o
45         $(LDSHARED) $(LDDLLFLAGS) -o expand.so $+ $(ALL_LIBS)
46
47 hello.spec.c: hello.spec hello.o $(WINEBUILD)
48         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym hello.o -o hello.spec.c -spec hello.spec
49 hello.so: hello.o hello.spec.o
50         $(LDSHARED) $(LDDLLFLAGS) -o hello.so $+ $(ALL_LIBS)
51
52 hello2.spec.c: hello2.spec hello2.o $(WINEBUILD)
53         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym hello2.o -o hello2.spec.c -spec hello2.spec
54 hello2.so: hello2.o hello2.spec.o
55         $(LDSHARED) $(LDDLLFLAGS) -o hello2.so $+ $(ALL_LIBS)
56
57 hello3.spec.c: hello3.spec hello3.o hello3res.res $(WINEBUILD)
58         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym hello3.o -o hello3.spec.c -spec hello3.spec
59 hello3.so: hello3.o hello3.spec.o
60         $(LDSHARED) $(LDDLLFLAGS) -o hello3.so $+ $(ALL_LIBS)
61
62 hello4.spec.c: hello4.spec hello4.o $(WINEBUILD)
63         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym hello4.o -o hello4.spec.c -spec hello4.spec
64 hello4.so: hello4.o hello4.spec.o
65         $(LDSHARED) $(LDDLLFLAGS) -o hello4.so $+ $(ALL_LIBS)
66
67 hello5.spec.c: hello5.spec hello5.o $(WINEBUILD)
68         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym hello5.o -o hello5.spec.c -spec hello5.spec
69 hello5.so: hello5.o hello5.spec.o
70         $(LDSHARED) $(LDDLLFLAGS) -o hello5.so $+ $(ALL_LIBS)
71
72 new.spec.c: new.spec new.o $(WINEBUILD)
73         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym new.o -o new.spec.c -spec new.spec
74 new.so: new.o new.spec.o
75         $(LDSHARED) $(LDDLLFLAGS) -o new.so $+ $(ALL_LIBS)
76
77 rolex.spec.c: rolex.spec rolex.o $(WINEBUILD)
78         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym rolex.o -o rolex.spec.c -spec rolex.spec
79 rolex.so: rolex.o rolex.spec.o
80         $(LDSHARED) $(LDDLLFLAGS) -o rolex.so $+ $(ALL_LIBS)
81
82 vartest.spec.c: vartest.spec vartest.o $(WINEBUILD)
83         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym vartest.o -o vartest.spec.c -spec vartest.spec
84 vartest.so: vartest.o vartest.spec.o
85         $(LDSHARED) $(LDDLLFLAGS) -o vartest.so $+ $(ALL_LIBS)
86
87 volinfo.spec.c: volinfo.spec volinfo.o $(WINEBUILD)
88         $(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L $(DLLDIR) -sym volinfo.o -o volinfo.spec.c -spec volinfo.spec
89 volinfo.so: volinfo.o volinfo.spec.o
90         $(LDSHARED) $(LDDLLFLAGS) -o volinfo.so $+ $(ALL_LIBS)
91
92 $(PROGRAMS):
93         $(LN_S) $(TOPOBJDIR)/wine $@
94
95 $(PROGRAMS:%=%.so/_checklink_): $(PROGRAMS:%=%.so)
96         $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c `dirname $@` $(ALL_LIBS) && $(RM) checklink
97
98 checklink:: $(PROGRAMS:%=%.so/_checklink_)
99
100 ### Dependencies: