Release 961201
[wine/multimedia.git] / Makefile.in
blob9a676b1e5d6f1bc91cc1b2e4ca3ed40f65e8bd78
1 # This Makefile understands the following targets:
3 # all (default): build wine
4 # clean: remove all intermediate files
5 # distclean: also remove all files created by configure
6 # depend: create the dependencies
7 # etags: Create a TAGS file for Emacs.
9 # Author: Michael Patra <micky@marie.physik.tu-berlin.de>
10 # <patra@itp1.physik.tu-berlin.de>
12 # First some useful definitions
14 SHELL = /bin/sh
15 CC = @CC@
16 CFLAGS = @CFLAGS@
17 OPTIONS = @OPTIONS@
18 X_LIBS = @X_LIBS@
19 TOPSRC = @top_srcdir@
20 XPM_LIB = -lXpm
21 XLIB = @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@
22 LDLIBS = @LDLIBS@
23 AR = ar rc
24 RANLIB = @RANLIB@
25 RM = rm -f
26 SUBMAKE = $(MAKE) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'OPTIONS=$(OPTIONS)'
27 @SET_MAKE@
29 # Installation infos
31 INSTALL = @INSTALL@
32 INSTALL_PROGRAM = @INSTALL_PROGRAM@
33 INSTALL_DATA = @INSTALL_DATA@
34 prefix = @prefix@
35 exec_prefix = @exec_prefix@
36 bindir = @bindir@
37 libdir = @libdir@
38 mandir = @mandir@/man1
39 manext = .1
41 # Main target to build
43 MAIN_TARGET = @MAIN_TARGET@
45 COMMONSUBDIRS = \
46 rc \
47 controls \
48 files \
49 graphics \
50 graphics/metafiledrv \
51 graphics/x11drv \
52 ipc \
53 loader \
54 memory \
55 misc \
56 multimedia \
57 objects \
58 resources \
59 win32 \
60 windows
62 EMUSUBDIRS = \
63 tools \
64 debugger \
65 graphics/win16drv \
66 if1632 \
67 miscemu
69 LIBSUBDIRS = library
71 PROGSUBDIRS = libtest programs
73 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS) $(PROGSUBDIRS)
75 COMMONOBJS = \
76 controls/controls.o \
77 files/files.o \
78 graphics/graphics.o \
79 graphics/metafiledrv/metafiledrv.o \
80 graphics/x11drv/x11drv.o \
81 ipc/ipc.o \
82 loader/loader.o \
83 memory/memory.o \
84 misc/misc.o \
85 multimedia/multimedia.o \
86 objects/objects.o \
87 resources/resources.o \
88 win32/win32.o \
89 windows/windows.o
91 EMUOBJS = \
92 debugger/debugger.o \
93 graphics/win16drv/win16drv.o \
94 if1632/if1632.o \
95 miscemu/miscemu.o
97 LIBOBJS = library/library.o
100 all: $(MAIN_TARGET)
102 install: install_$(MAIN_TARGET)
104 wine wine.sym: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
105 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
106 nm -n wine | grep -v _compiled >wine.sym
108 install_wine: dummy
109 $(INSTALL_PROGRAM) wine $(bindir)/wine
110 $(INSTALL_DATA) wine.man $(mandir)/wine$(manext)
112 libwine.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
113 $(RM) $@
114 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
115 $(RANLIB) $@
117 install_libwine.a: dummy
118 $(INSTALL_DATA) libwine.a $(libdir)
120 libwine.so.1.0: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
121 $(CC) -shared -Wl,-soname,libwine.so.1 -o$@ $(COMMONOBJS) $(LIBOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
123 install_libwine.so.1.0: dummy
124 $(INSTALL_DATA) libwine.so.1.0 $(libdir)
126 $(ALLSUBDIRS): dummy
127 @cd $@; $(SUBMAKE)
129 install_programs: dummy
130 @cd programs; $(SUBMAKE) install
132 depend: dummy
133 for i in $(COMMONSUBDIRS) $(LIBSUBDIRS) $(EMUSUBDIRS); do \
134 (cd $$i; $(MAKE) depend) || exit 1; \
135 done
137 etags:
138 etags `find . -name '*.[chS]' -print`
140 clean:
141 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean) || exit 1; done
142 $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc
143 $(RM) wine wine.sym libwine.a libwine.so.1.0 TAGS
144 (cd include; $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc)
146 distclean: clean
147 $(RM) config.* Make.rules include/config.h
148 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
150 configure: configure.in
151 autoconf
153 include/config.h.in: configure.in include/acconfig.h
154 autoheader -l include
156 dummy: