Added rules for message compiler .mc files.
[wine/dcerpc.git] / Makefile.in
blob58d57e0a3807fdfe2d7554d3db5fbc49c7bf1131
1 # This Makefile understands the following targets:
3 # all (default): build wine
4 # clean: remove all intermediate files
5 # distclean: also remove all files created by configure
6 # install: install everything
7 # uninstall: uninstall everything
8 # depend: create the dependencies
9 # etags: create a TAGS file for Emacs.
10 # manpages: compile manpages for Wine API
13 # Directories
15 TOPSRCDIR = @top_srcdir@
16 TOPOBJDIR = .
17 SRCDIR = @srcdir@
18 VPATH = @srcdir@
19 LIBEXT = @LIBEXT@
20 LDSHARED = @LDSHARED@
21 LDCONFIG = @LDCONFIG@
22 MODULE = wine
23 SOVERSION = 1.0
24 SONAME = libwine.so
26 # Stand-alone programs
27 PROGRAMS = \
28 loader/dos/dosmod \
29 server/wineserver
31 # Programs that link with libwine
32 LIBPROGRAMS = \
33 debugger/winedbg
35 # Sub-directories to run make depend/clean into
36 SUBDIRS = \
37 console \
38 controls \
39 debugger \
40 dlls \
41 dlls/ntdll \
42 documentation \
43 files \
44 graphics \
45 graphics/enhmetafiledrv \
46 graphics/metafiledrv \
47 graphics/win16drv \
48 if1632 \
49 include \
50 library \
51 libtest \
52 loader \
53 loader/dos \
54 loader/ne \
55 memory \
56 misc \
57 miscemu \
58 msdos \
59 objects \
60 ole \
61 programs \
62 relay32 \
63 resources \
64 scheduler \
65 server \
66 tools \
67 unicode \
68 win32 \
69 windows
71 # Sub-directories to run make install into
72 INSTALLSUBDIRS = \
73 debugger \
74 dlls \
75 documentation \
76 include \
77 server \
78 tools
80 LIBOBJS = \
81 controls/controls.o \
82 console/console.o \
83 dlls/ntdll/ntdll.o \
84 files/files.o \
85 graphics/graphics.o \
86 graphics/enhmetafiledrv/enhmetafiledrv.o \
87 graphics/metafiledrv/metafiledrv.o \
88 graphics/win16drv/win16drv.o \
89 if1632/if1632.o \
90 loader/loader.o \
91 loader/ne/ne.o \
92 loader/dos/dos.o \
93 memory/memory.o \
94 misc/misc.o \
95 msdos/msdos.o \
96 objects/objects.o \
97 ole/ole.o \
98 relay32/relay32.o \
99 resources/resources.o \
100 scheduler/scheduler.o \
101 unicode/unicode.o \
102 win32/win32.o \
103 windows/windows.o
105 EMUOBJS = \
106 miscemu/miscemu.o
108 DLLOBJS = $(DLLS:%=dlls/lib%.@LIBEXT@)
110 EXTRA_OBJS = $(LIBOBJS)
112 all: Make.rules $(PROGRAMS) $(LIBPROGRAMS) wine
113 @echo "Wine build complete."
115 LIBLINTS = $(LIBOBJS:.o=.ln)
116 EMULINTS = $(EMUOBJS:.o=.ln)
118 lint:: llib-lwine.ln $(EMULINTS)
119 $(LINT) $(ALLLINTFLAGS) -L. -lwine $(EMULINTS)
121 WINAPI_CHECK_EXTRA_FLAGS = --global
123 @MAKE_RULES@
125 Make.rules: Make.rules.in configure
126 @echo $? is newer than 'Make.rules', please rerun ./configure!
127 @exit 1
129 wine: lib$(MODULE).$(LIBEXT) $(DLLDIR) $(EMUOBJS)
130 $(CC) -o wine $(EMUOBJS) $(DLL_LINK) $(LIBS)
132 llib-lwine.ln : $(LIBLINTS)
133 $(LINT) $(ALLLINTFLAGS) -owine $(LIBLINTS)
135 install_so: lib$(MODULE).so.$(SOVERSION)
136 [ -d $(libdir) ] || $(MKDIR) $(libdir)
137 $(INSTALL_PROGRAM) lib$(MODULE).so.$(SOVERSION) $(libdir)/lib$(MODULE).so.$(SOVERSION)
138 cd $(libdir) && $(RM) lib$(MODULE).so && $(LN_S) lib$(MODULE).so.$(SOVERSION) lib$(MODULE).so
140 install_a: lib$(MODULE).a
141 [ -d $(libdir) ] || $(MKDIR) $(libdir)
142 $(INSTALL_DATA) lib$(MODULE).a $(libdir)/lib$(MODULE).a
144 install:: all $(LIBEXT:%=install_%) $(INSTALLSUBDIRS:%=%/__install__)
145 [ -d $(bindir) ] || $(MKDIR) $(bindir)
146 $(INSTALL_PROGRAM) wine $(bindir)/wine
147 $(INSTALL_PROGRAM) loader/dos/dosmod $(bindir)/dosmod
148 -$(LDCONFIG)
150 uninstall:: $(INSTALLSUBDIRS:%=%/__uninstall__)
151 cd $(libdir) && $(RM) libwine.a libwine.so libwine.so.$(SOVERSION)
152 cd $(bindir) && $(RM) wine dosmod
154 lib$(MODULE).so.$(SOVERSION): $(OBJS) Makefile.in Make.rules.in
155 $(LDSHARED) $(OBJS) -o $@
157 lib$(MODULE).so: lib$(MODULE).so.$(SOVERSION)
158 $(RM) $@ && $(LN_S) lib$(MODULE).so.$(SOVERSION) $@
160 lib$(MODULE).a: $(OBJS) Makefile.in Make.rules.in
161 $(RM) $@
162 $(AR) $@ $(OBJS)
163 $(RANLIB) $@
165 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) $(LIBPROGRAMS): dummy
166 @cd `dirname $@` && $(MAKE) `basename $@`
168 $(EMUOBJS) $(LIBOBJS) $(DLLOBJS) $(PROGRAMS) $(DLLDIR): tools
170 $(LIBPROGRAMS): tools dlls lib$(MODULE).$(LIBEXT)
172 $(LIBLINTS) $(EMULINTS): dummy
173 @cd `dirname $@` && $(MAKE) lint
175 checklink::
176 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c -L. -lwine $(LIBS) && $(RM) checklink
178 install_programs: dummy
179 @cd programs && $(MAKE) install
181 uninstall_programs: dummy
182 @cd programs && $(MAKE) uninstall
184 checklink::
185 @cd dlls && $(MAKE) checklink
187 TAGS etags:
188 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
190 manpages:
191 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
192 for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
194 htmlpages:
195 -$(MKDIR) $(TOPOBJDIR)/documentation/html
196 for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
198 clean::
199 $(RM) wine libwine.so.1.0 TAGS
201 distclean: clean
202 $(RM) config.* Make.rules dlls/Makedll.rules include/config.h documentation/wine.man documentation/wine.conf.man
203 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
205 # We depend on configure above for checks, so we better don't use this rule.
206 #configure: configure.in
207 # autoconf
209 include/config.h.in: configure.in include/acconfig.h
210 autoheader -l include
212 ### Dependencies: