Release 960114
[wine.git] / Makefile.in
blob0e3459b91120989d35e7bdb8c6c6abd16e91473e
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 files \
53 ipc \
54 loader \
55 misc \
56 multimedia \
57 objects \
58 resources \
59 win32 \
60 windows
62 EMUSUBDIRS = \
63 tools \
64 debugger \
65 debugger/readline \
66 if1632 \
67 memory \
68 miscemu
70 LIBSUBDIRS = library
72 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS) libtest
74 COMMONOBJS = \
75 controls/controls.o \
76 files/files.o \
77 ipc/ipc.o \
78 loader/loader.o \
79 misc/misc.o \
80 multimedia/multimedia.o \
81 objects/objects.o \
82 resources/resources.o \
83 win32/win32.o \
84 windows/windows.o
86 EMUOBJS = \
87 debugger/debugger.o \
88 debugger/readline/readline.o \
89 if1632/if1632.o \
90 memory/memory.o \
91 miscemu/miscemu.o
93 LIBOBJS = library/library.o
96 all: $(MAIN_TARGET)
98 install: install_$(MAIN_TARGET)
100 wine wine.sym: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
101 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
102 nm -n wine | grep -v _compiled >wine.sym
104 install_wine: dummy
105 $(INSTALL_PROGRAM) wine $(bindir)/wine
106 $(INSTALL_DATA) wine.man $(mandir)/wine$(manext)
108 libwine.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
109 $(RM) $@
110 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
111 $(RANLIB) $@
113 install_libwine.a: dummy
114 $(INSTALL_DATA) libwine.a $(libdir)
116 $(ALLSUBDIRS): dummy
117 @cd $@; $(SUBMAKE)
119 depend:
120 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) depend); done
122 etags:
123 etags `find . -name '*.[chS]' -print`
125 clean:
126 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean); done
127 $(RM) *.o \#*\# *~ *.bak *.flc wine wine.sym libwine.a TAGS
128 $(RM) include/\#*\# include/*~ include/*.bak include/*.flc
130 distclean:
131 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) distclean); done
132 $(RM) *.o \#*\# *~ *.bak wine wine.sym libwine.a TAGS
133 $(RM) include/\#*\# include/*~ include/*.bak include/*.flc
134 $(RM) config.* include/config.h Make.rules Makefile
136 dummy: