Release 960428
[wine/multimedia.git] / Makefile.in
blobc333861c6667d40c3662218661c4a8d44a71b1df
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 CPP = @CPP@
17 CFLAGS = @CFLAGS@
18 DEFS = @DEFS@ -DWINE_INI_GLOBAL=\"$(WINE_INI_GLOBAL)\"
19 X_CFLAGS = @X_CFLAGS@
20 X_LIBS = @X_LIBS@
21 TOPSRC = @top_srcdir@
22 DIVINCL = -I$(TOPSRC)/include
23 XPM_LIB = -lXpm
24 XLIB = @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@
25 LDLIBS = @LDLIBS@
26 AR = ar rc
27 RANLIB = @RANLIB@
28 RM = rm -f
29 SUBMAKE = $(MAKE) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'DEFS=$(DEFS)'
30 @SET_MAKE@
32 # Installation infos
34 INSTALL = @INSTALL@
35 INSTALL_PROGRAM = @INSTALL_PROGRAM@
36 INSTALL_DATA = @INSTALL_DATA@
37 prefix = @prefix@
38 exec_prefix = @exec_prefix@
39 bindir = @bindir@
40 libdir = @libdir@
41 sysconfdir = @sysconfdir@
42 mandir = @mandir@/man1
43 manext = .1
44 WINE_INI_GLOBAL = $(sysconfdir)/wine.conf
46 # Main target to build
48 MAIN_TARGET = @MAIN_TARGET@
50 COMMONSUBDIRS = \
51 rc \
52 controls \
53 files \
54 ipc \
55 loader \
56 memory \
57 misc \
58 multimedia \
59 objects \
60 resources \
61 win32 \
62 windows
64 EMUSUBDIRS = \
65 tools \
66 debugger \
67 debugger/readline \
68 if1632 \
69 miscemu
71 LIBSUBDIRS = library
73 PROGSUBDIRS = libtest programs
75 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS) $(PROGSUBDIRS)
77 COMMONOBJS = \
78 controls/controls.o \
79 files/files.o \
80 ipc/ipc.o \
81 loader/loader.o \
82 memory/memory.o \
83 misc/misc.o \
84 multimedia/multimedia.o \
85 objects/objects.o \
86 resources/resources.o \
87 win32/win32.o \
88 windows/windows.o
90 EMUOBJS = \
91 debugger/debugger.o \
92 debugger/readline/readline.o \
93 if1632/if1632.o \
94 miscemu/miscemu.o
96 LIBOBJS = library/library.o
99 all: $(MAIN_TARGET)
101 install: install_$(MAIN_TARGET)
103 wine wine.sym: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
104 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
105 nm -n wine | grep -v _compiled >wine.sym
107 install_wine: dummy
108 $(INSTALL_PROGRAM) wine $(bindir)/wine
109 $(INSTALL_DATA) wine.man $(mandir)/wine$(manext)
111 libwine.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
112 $(RM) $@
113 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
114 $(RANLIB) $@
116 install_libwine.a: dummy
117 $(INSTALL_DATA) libwine.a $(libdir)
119 libwine.so.1.0: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
120 $(CC) -shared -Wl,-soname,libwine.so.1 -o$@ $(COMMONOBJS) $(LIBOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
122 install_libwine.so.1.0: dummy
123 $(INSTALL_DATA) libwine.so.1.0 $(libdir)
125 $(ALLSUBDIRS): dummy
126 @cd $@; $(SUBMAKE)
128 depend:
129 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) depend); done
131 etags:
132 etags `find . -name '*.[chS]' -print`
134 clean:
135 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean); done
136 $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc
137 $(RM) wine wine.sym libwine.a libwine.so.1.0 TAGS
138 (cd include; $(RM) *.o \#*\# *~ *.bak *.orig *.rej *.flc)
140 distclean: clean
141 $(RM) config.* Make.rules
142 $(RM) `find . \( -name Makefile -o -size 0 \) -print`
144 dummy: