Release 951105
[wine/testsucceed.git] / Makefile.in
blob19f8a124a139b798e081c13b3399bef50eba67aa
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 # langclean: remove all files which have to be remade if
7 # a different LANGuage is selected
8 # depend: create the dependencies
9 # etags: Create a TAGS file for Emacs.
11 # Author: Michael Patra <micky@marie.physik.tu-berlin.de>
12 # <patra@itp1.physik.tu-berlin.de>
14 CC = @CC@
15 CFLAGS = @CFLAGS@
16 DEFS = @DEFS@
17 LANG = @LANG@
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 @SET_MAKE@
30 MAIN_TARGET = @MAIN_TARGET@
32 COMMONSUBDIRS = rc controls ipc loader misc multimedia objects win32 windows
34 EMUSUBDIRS = tools debugger debugger/readline if1632 memory miscemu
36 LIBSUBDIRS = toolkit
38 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS)
40 COMMONOBJS = \
41 controls/controls.o \
42 ipc/ipc.o \
43 loader/loader.o \
44 misc/misc.o \
45 multimedia/multimedia.o \
46 objects/objects.o \
47 rc/rc.o \
48 win32/win32.o \
49 windows/windows.o
51 EMUOBJS = \
52 debugger/debugger.o \
53 debugger/readline/readline.o \
54 if1632/if1632.o \
55 memory/memory.o \
56 miscemu/miscemu.o
58 LIBOBJS = toolkit/toolkit.o
61 all: $(MAIN_TARGET)
63 wine wine.sym: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
64 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
65 nm -n wine | grep -v _compiled >wine.sym
67 winelib.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
68 $(RM) $@
69 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
70 $(RANLIB) $@
72 $(ALLSUBDIRS): dummy
73 @cd $@; $(MAKE) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'DEFS=$(DEFS)' 'LANG=$(LANG)'
75 depend:
76 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) depend); done
78 etags:
79 etags `find . -name '*.[chS]' -print`
81 clean:
82 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean); done
83 $(RM) *.o \#*\# *~ *.bak *.flc wine wine.sym winelib.a TAGS
85 distclean:
86 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) distclean); done
87 echo "/* autoconf.h generated automatically. Run Configure */" >autoconf.h
88 echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
89 $(RM) *.o \#*\# *~ *.bak wine wine.sym winelib.a TAGS
90 $(RM) config.* include/config.h Make.rules Makefile
92 langclean:
93 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) langclean); done
94 $(RM) wine wine.sym winelib.a
96 dummy: