Release 960717
[wine/multimedia.git] / Makefile.in
blob89031f3bb6e29dfa5056076cfa376ec512a03f08
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 ipc \
50 loader \
51 memory \
52 misc \
53 multimedia \
54 objects \
55 resources \
56 win32 \
57 windows
59 EMUSUBDIRS = \
60 tools \
61 debugger \
62 if1632 \
63 miscemu
65 LIBSUBDIRS = library
67 PROGSUBDIRS = libtest programs
69 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS) $(PROGSUBDIRS)
71 COMMONOBJS = \
72 controls/controls.o \
73 files/files.o \
74 ipc/ipc.o \
75 loader/loader.o \
76 memory/memory.o \
77 misc/misc.o \
78 multimedia/multimedia.o \
79 objects/objects.o \
80 resources/resources.o \
81 win32/win32.o \
82 windows/windows.o
84 EMUOBJS = \
85 debugger/debugger.o \
86 if1632/if1632.o \
87 miscemu/miscemu.o
89 LIBOBJS = library/library.o
92 all: $(MAIN_TARGET)
94 install: install_$(MAIN_TARGET)
96 wine wine.sym: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
97 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
98 nm -n wine | grep -v _compiled >wine.sym
100 install_wine: dummy
101 $(INSTALL_PROGRAM) wine $(bindir)/wine
102 $(INSTALL_DATA) wine.man $(mandir)/wine$(manext)
104 libwine.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
105 $(RM) $@
106 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
107 $(RANLIB) $@
109 install_libwine.a: dummy
110 $(INSTALL_DATA) libwine.a $(libdir)
112 libwine.so.1.0: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
113 $(CC) -shared -Wl,-soname,libwine.so.1 -o$@ $(COMMONOBJS) $(LIBOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
115 install_libwine.so.1.0: dummy
116 $(INSTALL_DATA) libwine.so.1.0 $(libdir)
118 $(ALLSUBDIRS): dummy
119 @cd $@; $(SUBMAKE)
121 install_programs: dummy
122 @cd programs; $(SUBMAKE) install
124 depend:
125 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) depend); done
127 etags:
128 etags `find . -name '*.[chS]' -print`
130 clean:
131 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean); done
132 $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc
133 $(RM) wine wine.sym libwine.a libwine.so.1.0 TAGS
134 (cd include; $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc)
136 distclean: clean
137 $(RM) config.* Make.rules include/config.h
138 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
140 dummy: