Release 980517
[wine/multimedia.git] / Makefile.in
blobad023d984e05f71998e4ffa022b501d681a43d8c
1 # This Makefile understands the following targets:
3 # all (default): build wine
4 # lib: build libwine
5 # clean: remove all intermediate files
6 # distclean: also remove all files created by configure
7 # install: install everything
8 # depend: create the dependencies
9 # etags: create a TAGS file for Emacs.
10 # manpages: compile manpages for Wine API
13 # Main target to build
15 MAIN_TARGET = @MAIN_TARGET@
16 LIB_TARGET = @LIB_TARGET@
18 # Directories
20 TOPSRCDIR = @top_srcdir@
21 TOPOBJDIR = .
22 SRCDIR = @srcdir@
23 VPATH = @srcdir@
24 MODULE = none
26 LIBSUBDIRS = \
27 rc \
28 tools \
29 controls \
30 files \
31 graphics \
32 graphics/metafiledrv \
33 graphics/x11drv \
34 ipc \
35 library \
36 loader \
37 loader/ne \
38 memory \
39 misc \
40 msdos \
41 multimedia \
42 objects \
43 ole \
44 relay32 \
45 resources \
46 scheduler \
47 tsx11 \
48 win32 \
49 windows
51 EMUSUBDIRS = \
52 debugger \
53 graphics/win16drv \
54 if1632 \
55 miscemu
57 PROGSUBDIRS = libtest programs
59 DOCSUBDIRS = documentation
61 # All sub-directories
62 ALLSUBDIRS = \
63 $(LIBSUBDIRS) \
64 $(EMUSUBDIRS) \
65 $(PROGSUBDIRS) \
66 $(DOCSUBDIRS)
68 # Sub-directories to run make depend into
69 DEPENDSUBDIRS = $(LIBSUBDIRS) $(EMUSUBDIRS) $(DOCSUBDIRS)
71 # Sub-directories to run make install into
72 INSTALLSUBDIRS = $(DOCSUBDIRS)
74 LIBOBJS = \
75 controls/controls.o \
76 files/files.o \
77 graphics/graphics.o \
78 graphics/metafiledrv/metafiledrv.o \
79 graphics/x11drv/x11drv.o \
80 ipc/ipc.o \
81 loader/loader.o \
82 loader/ne/ne.o \
83 memory/memory.o \
84 misc/misc.o \
85 msdos/msdos.o \
86 multimedia/multimedia.o \
87 objects/objects.o \
88 ole/ole.o \
89 relay32/relay32.o \
90 resources/resources.o \
91 scheduler/scheduler.o \
92 tsx11/tsx11.o \
93 win32/win32.o \
94 windows/windows.o
96 EMUOBJS = \
97 debugger/debugger.o \
98 graphics/win16drv/win16drv.o \
99 if1632/if1632.o \
100 miscemu/miscemu.o
102 all: $(MAIN_TARGET)
104 @MAKE_RULES@
106 install:: install_$(MAIN_TARGET)
108 emu: wine
110 lib: $(LIBSUBDIRS) $(LIB_TARGET)
112 wine wine.sym: $(LIBSUBDIRS) $(LIB_TARGET) $(EMUSUBDIRS) dummy
113 $(CC) -o wine $(EMUOBJS) $(LIB_TARGET) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LIBS)
114 nm -n wine | grep -v _compiled >wine.sym
116 libwine.a: $(LIBOBJS)
117 $(RM) $@
118 $(AR) $@ $(LIBOBJS)
119 $(RANLIB) $@
121 libwine.so.1.0: $(LIBOBJS)
122 $(CC) -shared -Wl,-soname,libwine.so -o$@ $(LIBOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LIBS)
124 install_emu: install_lib
125 -mkdirhier $(bindir)
126 -mkdirhier $(libdir)
127 $(INSTALL_PROGRAM) wine $(bindir)/wine
128 $(INSTALL_DATA) wine.sym $(libdir)/wine.sym
130 install_lib: install_includes
131 $(INSTALL_DATA) $(LIB_TARGET) $(libdir)
133 install_includes: dummy
134 if [ -d $(includedir) ]; then : ; else $(MKDIR) $(includedir); fi
135 cd $(TOPSRCDIR)/include; $(INSTALL_DATA) windows.h wintypes.h $(includedir)
137 $(ALLSUBDIRS): dummy
138 @cd $@; $(SUBMAKE)
140 install_programs: dummy
141 @cd programs; $(SUBMAKE) install
143 install::
144 for i in $(INSTALLSUBDIRS); do (cd $$i && $(MAKE) install) || exit 1; done
146 depend:: dummy
147 for i in $(DEPENDSUBDIRS); do (cd $$i && $(MAKE) depend) || exit 1; done
149 TAGS etags:
150 etags `find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
152 manpages:
153 -$(MKDIR) $(TOPOBJDIR)/documentation/man3w
154 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) man); done
156 htmlpages:
157 -$(MKDIR) $(TOPOBJDIR)/documentation/html
158 for i in $(LIBSUBDIRS); do (cd $$i && $(MAKE) html); done
160 clean::
161 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
162 for i in include; do (cd $$i; $(RM) *.o \#*\# *~ *% *.bak *.orig *.rej *.flc); done
163 $(RM) wine wine.sym libwine.a libwine.so.1.0 TAGS
165 distclean: clean
166 $(RM) config.* Make.rules include/config.h
167 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
169 configure: configure.in
170 autoconf
172 include/config.h.in: configure.in include/acconfig.h
173 autoheader -l include
175 ### Dependencies: