Release 960824
[wine/multimedia.git] / Makefile.in
bloba50864f6c9944063b347191a1f655f7713722230
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/x11drv \
51 ipc \
52 loader \
53 memory \
54 misc \
55 multimedia \
56 objects \
57 resources \
58 win32 \
59 windows
61 EMUSUBDIRS = \
62 tools \
63 debugger \
64 graphics/win16drv \
65 if1632 \
66 miscemu
68 LIBSUBDIRS = library
70 PROGSUBDIRS = libtest programs
72 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS) $(PROGSUBDIRS)
74 COMMONOBJS = \
75 controls/controls.o \
76 files/files.o \
77 graphics/graphics.o \
78 graphics/x11drv/x11drv.o \
79 ipc/ipc.o \
80 loader/loader.o \
81 memory/memory.o \
82 misc/misc.o \
83 multimedia/multimedia.o \
84 objects/objects.o \
85 resources/resources.o \
86 win32/win32.o \
87 windows/windows.o
89 EMUOBJS = \
90 debugger/debugger.o \
91 graphics/win16drv/win16drv.o \
92 if1632/if1632.o \
93 miscemu/miscemu.o
95 LIBOBJS = library/library.o
98 all: $(MAIN_TARGET)
100 install: install_$(MAIN_TARGET)
102 wine wine.sym: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
103 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
104 nm -n wine | grep -v _compiled >wine.sym
106 install_wine: dummy
107 $(INSTALL_PROGRAM) wine $(bindir)/wine
108 $(INSTALL_DATA) wine.man $(mandir)/wine$(manext)
110 libwine.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
111 $(RM) $@
112 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
113 $(RANLIB) $@
115 install_libwine.a: dummy
116 $(INSTALL_DATA) libwine.a $(libdir)
118 libwine.so.1.0: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
119 $(CC) -shared -Wl,-soname,libwine.so.1 -o$@ $(COMMONOBJS) $(LIBOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
121 install_libwine.so.1.0: dummy
122 $(INSTALL_DATA) libwine.so.1.0 $(libdir)
124 $(ALLSUBDIRS): dummy
125 @cd $@; $(SUBMAKE)
127 install_programs: dummy
128 @cd programs; $(SUBMAKE) install
130 depend: libdepend emudepend
132 libdepend: dummy
133 for i in $(COMMONSUBDIRS) $(LIBSUBDIRS); do (cd $$i; $(MAKE) depend); done
135 emudepend: dummy
136 for i in $(EMUSUBDIRS); do (cd $$i; $(MAKE) depend); done
138 etags:
139 etags `find . -name '*.[chS]' -print`
141 clean:
142 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean); done
143 $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc
144 $(RM) wine wine.sym libwine.a libwine.so.1.0 TAGS
145 (cd include; $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc)
147 distclean: clean
148 $(RM) config.* Make.rules include/config.h
149 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
151 configure: configure.in
152 autoconf
154 include/config.h.in: configure.in include/acconfig.h
155 autoheader -l include
157 dummy: