Release 951226
[wine/gsoc-2012-control.git] / Makefile.in
blobfaea81911fe7c358da408d199c359bde583c5656
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 CC = @CC@
15 CPP = @CPP@
16 CFLAGS = @CFLAGS@
17 DEFS = @DEFS@ -DWINE_INI_GLOBAL=\"$(WINE_INI_GLOBAL)\"
18 X_CFLAGS = @X_CFLAGS@
19 X_LIBS = @X_LIBS@
20 TOPSRC = @top_srcdir@
21 DIVINCL = -I$(TOPSRC)/include
22 XPM_LIB = -lXpm
23 XLIB = @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@
24 LDLIBS = @LDLIBS@
25 AR = ar rc
26 RANLIB = @RANLIB@
27 RM = rm -f
28 SUBMAKE = $(MAKE) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'DEFS=$(DEFS)'
29 @SET_MAKE@
31 # Installation infos
33 INSTALL = @INSTALL@
34 INSTALL_PROGRAM = @INSTALL_PROGRAM@
35 INSTALL_DATA = @INSTALL_DATA@
36 prefix = @prefix@
37 exec_prefix = @exec_prefix@
38 bindir = @bindir@
39 libdir = @libdir@
40 sysconfdir = @sysconfdir@
41 mandir = @mandir@/man1
42 manext = .1
43 WINE_INI_GLOBAL = $(sysconfdir)/wine.conf
45 # Main target to build
47 MAIN_TARGET = @MAIN_TARGET@
49 COMMONSUBDIRS = \
50 rc \
51 controls \
52 ipc \
53 loader \
54 misc \
55 multimedia \
56 objects \
57 resources \
58 win32 \
59 windows
61 EMUSUBDIRS = \
62 tools \
63 debugger \
64 debugger/readline \
65 if1632 \
66 memory \
67 miscemu
69 LIBSUBDIRS = library
71 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS) libtest
73 COMMONOBJS = \
74 controls/controls.o \
75 ipc/ipc.o \
76 loader/loader.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 debugger/readline/readline.o \
87 if1632/if1632.o \
88 memory/memory.o \
89 miscemu/miscemu.o
91 LIBOBJS = library/library.o
94 all: $(MAIN_TARGET)
96 install: install_$(MAIN_TARGET)
98 wine wine.sym: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
99 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
100 nm -n wine | grep -v _compiled >wine.sym
102 install_wine: dummy
103 $(INSTALL_PROGRAM) wine $(bindir)/wine
104 $(INSTALL_DATA) wine.man $(mandir)/wine$(manext)
106 libwine.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
107 $(RM) $@
108 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
109 $(RANLIB) $@
111 install_libwine.a: dummy
112 $(INSTALL_DATA) libwine.a $(libdir)
114 $(ALLSUBDIRS): dummy
115 @cd $@; $(SUBMAKE)
117 depend:
118 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) depend); done
120 etags:
121 etags `find . -name '*.[chS]' -print`
123 clean:
124 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean); done
125 $(RM) *.o \#*\# *~ *.bak *.flc wine wine.sym libwine.a TAGS
126 $(RM) include/\#*\# include/*~ include/*.bak include/*.flc
128 distclean:
129 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) distclean); done
130 $(RM) *.o \#*\# *~ *.bak wine wine.sym libwine.a TAGS
131 $(RM) include/\#*\# include/*~ include/*.bak include/*.flc
132 $(RM) config.* include/config.h Make.rules Makefile
134 dummy: