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@
16 LIB_TARGET
= @LIB_TARGET@
20 TOPSRCDIR
= @top_srcdir@
33 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 \
99 graphics
/win16drv
/win16drv.o \
107 install:: install_
$(MAIN_TARGET
)
111 lib
: $(LIBSUBDIRS
) $(LIB_TARGET
)
113 wine wine.sym
: $(LIBSUBDIRS
) $(LIB_TARGET
) $(EMUSUBDIRS
) dummy
114 $(CC
) -o wine
$(EMUOBJS
) $(LIB_TARGET
) $(LDOPTIONS
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LIBS
)
115 nm
-n wine | grep
-v _compiled
>wine.sym
117 libwine.a
: $(LIBOBJS
)
122 libwine.so
.1.0: $(LIBOBJS
)
123 $(CC
) -shared
-Wl
,-soname
,libwine.so
-o
$@
$(LIBOBJS
) $(LDOPTIONS
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LIBS
)
125 install_emu
: install_lib
128 $(INSTALL_PROGRAM
) wine
$(bindir)/wine
129 $(INSTALL_DATA
) wine.sym
$(libdir)/wine.sym
131 install_lib
: install_includes
132 $(INSTALL_DATA
) $(LIB_TARGET
) $(libdir)
134 install_includes
: dummy
135 if
[ -d
$(includedir) ]; then
: ; else $(MKDIR
) $(includedir); fi
136 cd
$(TOPSRCDIR
)/include; $(INSTALL_DATA
) windows.h wintypes.h
$(includedir)
141 install_programs
: dummy
142 @cd programs
; $(SUBMAKE
) install
145 for i in
$(INSTALLSUBDIRS
); do
(cd
$$i && $(MAKE
) install) || exit
1; done
148 for i in
$(DEPENDSUBDIRS
); do
(cd
$$i && $(MAKE
) depend
) || exit
1; done
151 etags
`find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
154 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/man3w
155 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) man
); done
158 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/html
159 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) html
); done
162 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) clean) || exit
1; done
163 for i in
include; do
(cd
$$i; $(RM
) *.o \
#*\# *~ *% *.bak *.orig *.rej *.flc); done
164 $(RM
) wine wine.sym libwine.a libwine.so
.1.0 TAGS
167 $(RM
) config.
* Make.rules
include/config.h
168 $(RM
) `find . \( -name Makefile -o -size 0 \) -print`
170 configure
: configure.in
173 include/config.h.in
: configure.in
include/acconfig.h
174 autoheader
-l
include