Release 950522
[wine.git] / if1632 / Imakefile
blob6e32cabf03487a0f671b7dbabcc440f42530f421
1 #include "../autoconf.h"
2 #include "../Wine.tmpl"
4 MODULE = if1632
6 SRCS = \
7         callback.c \
8         relay.c \
9         relay32.c
11 #ifdef WINELIB
12 CALLOBJS =
13 DLLS16 =
14 DLLS32 =
15 #else
16 CALLOBJS = \
17         call16.o \
18         call32.o
19 DLLS16 = \
20         commdlg.spec \
21         compobj.spec \
22         ddeml.spec \
23         gdi.spec \
24         kernel.spec \
25         keyboard.spec \
26         mmsystem.spec \
27         mouse.spec \
28         ole2.spec \
29         ole2conv.spec \
30         ole2disp.spec \
31         ole2nls.spec \
32         ole2prox.spec \
33         olecli.spec \
34         olesvr.spec \
35         shell.spec \
36         sound.spec \
37         storage.spec \
38         stress.spec \
39         system.spec \
40         toolhelp.spec \
41         user.spec \
42         win87em.spec \
43         winprocs.spec \
44         winsock.spec
45 DLLS32 = \
46         gdi32.spec \
47         kernel32.spec \
48         shell32.spec \
49         user32.spec \
50         winprocs32.spec
51 #endif
53 OBJS = $(SRCS:.c=.o) $(CALLOBJS) $(DLLS16:.spec=.o) $(DLLS32:.spec=.o)
55 BUILD = $(TOP)/tools/build
57 #define MakeDll16FromSpec(name)                 @@\
58 name.S : name.spec $(BUILD)                     @@\
59         $(BUILD) -spec16 name.spec > name.S     @@\
61 #define MakeDll32FromSpec(name)                 @@\
62 name.c : name.spec $(BUILD)                     @@\
63         $(BUILD) -spec32 name.spec > name.c     @@\
66  * If you add a new spec file, copy one of these lines
67  */
68 MakeDll16FromSpec(commdlg)
69 MakeDll16FromSpec(compobj)
70 MakeDll16FromSpec(ddeml)
71 MakeDll16FromSpec(gdi)
72 MakeDll16FromSpec(kernel)
73 MakeDll16FromSpec(keyboard)
74 MakeDll16FromSpec(shell)
75 MakeDll16FromSpec(mmsystem)
76 MakeDll16FromSpec(mouse)
77 MakeDll16FromSpec(ole2)
78 MakeDll16FromSpec(ole2conv)
79 MakeDll16FromSpec(ole2disp)
80 MakeDll16FromSpec(ole2nls)
81 MakeDll16FromSpec(ole2prox)
82 MakeDll16FromSpec(olecli)
83 MakeDll16FromSpec(olesvr)
84 MakeDll16FromSpec(sound)
85 MakeDll16FromSpec(storage)
86 MakeDll16FromSpec(stress)
87 MakeDll16FromSpec(system)
88 MakeDll16FromSpec(toolhelp)
89 MakeDll16FromSpec(user)
90 MakeDll16FromSpec(win87em)
91 MakeDll16FromSpec(winprocs)
92 MakeDll16FromSpec(winsock)
94 MakeDll32FromSpec(gdi32)
95 MakeDll32FromSpec(kernel32)
96 MakeDll32FromSpec(shell32)
97 MakeDll32FromSpec(user32)
98 MakeDll32FromSpec(winprocs32)
100 WineRelocatableTarget($(MODULE),,$(OBJS))
101 DependTarget()
103 #ifndef WINELIB
105 call32.S: $(BUILD) $(DLLS16:.spec=.S)
106         $(BUILD) -call32 `cat $(DLLS16:.spec=.S) | grep CallTo32_ | sed 's/.*CallTo32_\(.*\)/\1/' | sort | uniq` > call32.S
108 call16.S: $(BUILD) $(TOP)/include/callback.h
109         $(BUILD) -call16 `cat $(TOP)/include/callback.h | grep "extern.*CallTo16_" | sed 's/.*CallTo16_\(.*\)(.*/\1/' | sort | uniq` > call16.S
111 #endif  /* WINELIB */
113 includes::
115 install::
117 clean::
118         $(RM) $(DLLS16:.spec=.S) $(DLLS32:.spec=.c) call32.S call16.S