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 # 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@
19 TOPSRCDIR
= @top_srcdir@
31 graphics
/metafiledrv \
58 PROGSUBDIRS
= libtest programs
60 DOCSUBDIRS
= documentation
69 # Sub-directories to run make depend into
70 DEPENDSUBDIRS
= $(LIBSUBDIRS
) $(EMUSUBDIRS
) $(DOCSUBDIRS
)
72 # Sub-directories to run make install into
73 INSTALLSUBDIRS
= $(DOCSUBDIRS
)
79 graphics
/metafiledrv
/metafiledrv.o \
80 graphics
/x11drv
/x11drv.o \
87 multimedia
/multimedia.o \
91 resources
/resources.o \
92 scheduler
/scheduler.o \
100 graphics
/psdrv
/psdrv.o \
101 graphics
/win16drv
/win16drv.o \
105 LIB_TARGET
= @LIB_TARGET@
111 install:: install_
$(MAIN_TARGET
)
115 lib
: $(LIBSUBDIRS
) $(LIB_TARGET
)
117 wine wine.sym
: $(LIBSUBDIRS
) $(LIB_TARGET
) $(EMUSUBDIRS
) dummy
118 $(CC
) -o wine
$(EMUOBJS
) $(LIB_TARGET
) $(LDOPTIONS
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LIBS
)
119 nm
-n wine | grep
-v _compiled
>wine.sym
121 libwine.a
: $(LIBOBJS
)
126 libwine.so
.1.0: $(LIBOBJS
)
127 $(CC
) -shared
-Wl
,-soname
,libwine.so
-o
$@
$(LIBOBJS
) $(LDOPTIONS
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LIBS
)
129 install_emu
: install_lib
132 $(INSTALL_PROGRAM
) wine
$(bindir)/wine
133 $(INSTALL_DATA
) wine.sym
$(libdir)/wine.sym
135 install_lib
: install_includes
136 $(INSTALL_DATA
) $(LIB_TARGET
) $(libdir)
138 install_includes
: dummy
139 if
[ -d
$(includedir) ]; then
: ; else $(MKDIR
) $(includedir); fi
140 cd
$(TOPSRCDIR
)/include; $(INSTALL_DATA
) windows.h wintypes.h
$(includedir)
145 install_programs
: dummy
146 @cd programs
; $(SUBMAKE
) install
149 for i in
$(INSTALLSUBDIRS
); do
(cd
$$i && $(MAKE
) install) || exit
1; done
152 for i in
$(DEPENDSUBDIRS
); do
(cd
$$i && $(MAKE
) depend
) || exit
1; done
155 etags
`find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
158 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/man3w
159 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) man
); done
162 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/html
163 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) html
); done
166 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) clean) || exit
1; done
167 for i in
include; do
(cd
$$i; $(RM
) *.o \
#*\# .#* *~ *% *.bak *.orig *.rej *.flc); done
168 $(RM
) wine wine.sym libwine.a libwine.so
.1.0 TAGS .
#*
171 $(RM
) config.
* Make.rules
include/config.h
172 $(RM
) `find . \( -name Makefile -o -size 0 \) -print`
174 configure
: configure.in
177 include/config.h.in
: configure.in
include/acconfig.h
178 autoheader
-l
include