1 # This Makefile understands the following targets:
3 # all (default): build wine
5 # clean: remove all intermediate files
6 # distclean: also remove all files created by configure
7 # install: install everything
8 # uninstall: uninstall everything
9 # depend: create the dependencies
10 # etags: create a TAGS file for Emacs.
11 # manpages: compile manpages for Wine API
14 # Main target to build
16 MAIN_TARGET
= @MAIN_TARGET@
20 TOPSRCDIR
= @top_srcdir@
37 graphics
/metafiledrv \
65 PROGSUBDIRS
= libtest programs
67 DOCSUBDIRS
= documentation
76 # Sub-directories to run make depend into
77 DEPENDSUBDIRS
= $(LIBSUBDIRS
) $(EMUSUBDIRS
) $(DOCSUBDIRS
)
79 # Sub-directories to run make install into
80 INSTALLSUBDIRS
= $(DOCSUBDIRS
)
84 dlls
/comctl32
/comctl32.o \
86 dlls
/shell32
/shell32.o \
87 dlls
/winaspi
/winaspi.o \
88 dlls
/wnaspi32
/wnaspi32.o \
91 graphics
/metafiledrv
/metafiledrv.o \
92 graphics
/x11drv
/x11drv.o \
100 multimedia
/multimedia.o \
104 resources
/resources.o \
105 scheduler
/scheduler.o \
112 debugger
/debugger.o \
113 graphics
/psdrv
/psdrv.o \
114 graphics
/win16drv
/win16drv.o \
118 LIB_TARGET
= @LIB_TARGET@
120 ALT_LINK
= @ALT_LINK@
126 install:: install_
$(MAIN_TARGET
)
128 uninstall:: uninstall_
$(MAIN_TARGET
)
132 lib
: $(LIBSUBDIRS
) $(LIB_TARGET
)
134 wine wine.sym
: $(LIBSUBDIRS
) $(LIB_TARGET
) $(EMUSUBDIRS
) dummy
135 $(CC
) -o wine
$(EMUOBJS
) $(LIB_TARGET
) $(ALT_LINK
) $(LDOPTIONS
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LIBS
)
136 nm
-n wine | grep
-v _compiled
>wine.sym
138 libwine.a
: $(LIBOBJS
)
143 libwine.so
.1.0: $(LIBOBJS
)
144 $(CC
) -shared
-Wl
,-soname
,libwine.so
-o
$@
$(LIBOBJS
) $(LDOPTIONS
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LIBS
)
146 install_emu
: install_lib
147 [ -d
$(bindir) ] ||
$(MKDIR
) $(bindir)
148 $(INSTALL_PROGRAM
) wine
$(bindir)/wine
149 $(INSTALL_PROGRAM
) loader
/dos
/dosmod
$(bindir)/dosmod
151 uninstall_emu
: uninstall_lib
152 $(RM
) $(bindir)/wine
$(bindir)/dosmod
154 install_lib
: install_includes
155 [ -d
$(libdir) ] ||
$(MKDIR
) $(libdir)
156 if
[ $(LIB_TARGET
) ]; then
$(INSTALL_DATA
) $(LIB_TARGET
) $(libdir); fi
157 $(INSTALL_DATA
) wine.sym
$(libdir)/wine.sym
159 uninstall_lib
: uninstall_includes
160 cd
$(libdir); $(RM
) $(LIB_TARGET
)
161 $(RM
) $(libdir)/wine.sym
163 install_includes
: dummy
164 [ -d
$(includedir) ] ||
$(MKDIR
) $(includedir)
165 cd
$(TOPSRCDIR
)/include; $(INSTALL_DATA
) windows.h wintypes.h
$(includedir)
167 # Don't just do a rm -rf on $(includedir) -- don't want to wipe out
168 # anything extra the user may have put there.
169 uninstall_includes
: dummy
170 $(RM
) $(includedir)/windows.h
$(includedir)/wintypes.h
176 install_programs
: dummy
177 @cd programs
; $(SUBMAKE
) install
179 uninstall_programs
: dummy
180 @cd programs
; $(SUBMAKE
) uninstall
183 for i in
$(INSTALLSUBDIRS
); do
(cd
$$i && $(MAKE
) install) || exit
1; done
186 for i in
$(INSTALLSUBDIRS
); do
(cd
$$i && $(MAKE
) uninstall) || exit
1; done
189 for i in
$(DEPENDSUBDIRS
); do
(cd
$$i && $(MAKE
) depend
) || exit
1; done
192 etags
`find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
195 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/man3w
196 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) man
); done
199 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/html
200 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) html
); done
203 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) clean) || exit
1; done
204 for i in
include; do
(cd
$$i; $(RM
) *.o \
#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
205 $(RM
) wine wine.sym libwine.a libwine.so
.1.0 TAGS .
#*
208 $(RM
) config.
* Make.rules
include/config.h
209 $(RM
) `find . \( -name Makefile -o -size 0 \) -print`
211 configure
: configure.in
214 include/config.h.in
: configure.in
include/acconfig.h
215 autoheader
-l
include