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@
32 graphics
/metafiledrv \
57 PROGSUBDIRS
= libtest programs
59 DOCSUBDIRS
= documentation
68 # Sub-directories to run make depend into
69 DEPENDSUBDIRS
= $(LIBSUBDIRS
) $(EMUSUBDIRS
) $(DOCSUBDIRS
)
71 # Sub-directories to run make install into
72 INSTALLSUBDIRS
= $(DOCSUBDIRS
)
78 graphics
/metafiledrv
/metafiledrv.o \
79 graphics
/x11drv
/x11drv.o \
86 multimedia
/multimedia.o \
90 resources
/resources.o \
91 scheduler
/scheduler.o \
98 graphics
/win16drv
/win16drv.o \
106 install:: install_
$(MAIN_TARGET
)
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
)
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 $(INSTALL_PROGRAM
) wine
$(bindir)/wine
126 $(INSTALL_DATA
) wine.sym
$(libdir)/wine.sym
128 install_lib
: install_includes
129 $(INSTALL_DATA
) $(LIB_TARGET
) $(libdir)
131 install_includes
: dummy
132 if
[ -d
$(includedir) ]; then
: ; else $(MKDIR
) $(includedir); fi
133 cd
$(TOPSRCDIR
)/include; $(INSTALL_DATA
) windows.h wintypes.h
$(includedir)
138 install_programs
: dummy
139 @cd programs
; $(SUBMAKE
) install
142 for i in
$(INSTALLSUBDIRS
); do
(cd
$$i && $(MAKE
) install) || exit
1; done
145 for i in
$(DEPENDSUBDIRS
); do
(cd
$$i && $(MAKE
) depend
) || exit
1; done
148 etags
`find $(TOPSRCDIR) -name '*.[chS]' -print | grep -v dbgmain`
151 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/man3w
152 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) man
); done
155 -$(MKDIR
) $(TOPOBJDIR
)/documentation
/html
156 for i in
$(LIBSUBDIRS
); do
(cd
$$i && $(MAKE
) html
); done
159 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) clean) || exit
1; done
160 for i in
include; do
(cd
$$i; $(RM
) *.o \
#*\# *~ *.bak *.orig *.rej *.flc); done
161 $(RM
) wine wine.sym libwine.a libwine.so
.1.0 TAGS
164 $(RM
) config.
* Make.rules
include/config.h
165 $(RM
) `find . \( -name Makefile -o -size 0 \) -print`
167 configure
: configure.in
170 include/config.h.in
: configure.in
include/acconfig.h
171 autoheader
-l
include