Release 951003
[wine/hacks.git] / Makefile.in
blob130f12fc024812d5192dafaea974e493869f53ba
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
10 # Author: Michael Patra <micky@marie.physik.tu-berlin.de>
11 # <patra@itp1.physik.tu-berlin.de>
13 CC = @CC@
14 CFLAGS = @CFLAGS@
15 DEFS = @DEFS@
16 LANG = @LANG@
17 X_CFLAGS = @X_CFLAGS@
18 X_LIBS = @X_LIBS@
19 TOPSRC = @top_srcdir@
20 DIVINCL = -I$(TOPSRC)/include
21 XPM_LIB = -lXpm
22 XLIB = @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@
23 LDLIBS = -lm
24 AR = ar rc
25 RANLIB = @RANLIB@
26 RM = rm -f
27 @SET_MAKE@
29 MAIN_TARGET = @MAIN_TARGET@
31 COMMONSUBDIRS = rc controls ipc loader misc multimedia objects win32 windows
33 EMUSUBDIRS = tools debugger debugger/readline if1632 memory miscemu
35 LIBSUBDIRS = toolkit
37 ALLSUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS) $(LIBSUBDIRS)
39 COMMONOBJS = \
40 controls/controls.o \
41 ipc/ipc.o \
42 loader/loader.o \
43 misc/misc.o \
44 multimedia/multimedia.o \
45 objects/objects.o \
46 rc/rc.o \
47 win32/win32.o \
48 windows/windows.o
50 EMUOBJS = \
51 debugger/debugger.o \
52 debugger/readline/readline.o \
53 if1632/if1632.o \
54 memory/memory.o \
55 miscemu/miscemu.o
57 LIBOBJS = toolkit/toolkit.o
60 all: $(MAIN_TARGET)
62 wine: $(COMMONSUBDIRS) $(EMUSUBDIRS) dummy
63 $(CC) -o wine $(COMMONOBJS) $(EMUOBJS) $(LDOPTIONS) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
64 nm wine | grep -v _compiled | sort >wine.sym
66 winelib.a: $(COMMONSUBDIRS) $(LIBSUBDIRS) dummy
67 $(RM) $@
68 $(AR) $@ $(COMMONOBJS) $(LIBOBJS)
69 $(RANLIB) $@
71 $(ALLSUBDIRS): dummy
72 @cd $@; $(MAKE) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'DEFS=$(DEFS)' 'LANG=$(LANG)'
74 depend:
75 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) depend); done
77 etags:
78 etags `find . -name '*.[chS]' -print`
80 clean:
81 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) clean); done
82 $(RM) *.o \#*\# *~ *.bak wine wine.sym winelib.a TAGS
84 distclean:
85 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) distclean); done
86 echo "/* autoconf.h generated automatically. Run Configure */" >autoconf.h
87 echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
88 $(RM) *.o \#*\# *~ *.bak wine wine.sym winelib.a TAGS
89 $(RM) config.* include/config.h Make.rules Makefile
91 langclean:
92 for i in $(ALLSUBDIRS); do (cd $$i; $(MAKE) langclean); done
93 $(RM) wine wine.sym winelib.a
95 dummy: