Release 950727
[wine/multimedia.git] / Makefile.in
blobbec1f10eecef52844617650bd5c37b3a44d1e816
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 # countryclean: remove all files which have to be remade if
7 # a different LANGuage is selected
8 # winelibclean: remove all files which differ for the emulator
9 # and the library
10 # depend: create the dependencies
12 # Author: Michael Patra <micky@marie.physik.tu-berlin.de>
13 # <patra@itp1.physik.tu-berlin.de>
15 CC = @CC@
16 CFLAGS = @CFLAGS@
17 XINCL = @x_includes@
18 TOPSRC = @top_srcdir@
19 DIVINCL = -I$(TOPSRC)/include
20 XPM_LIB = -lXpm
21 XLIB = -lXext -lX11
22 XDIR = -L@x_libraries@
23 LDLIBS = -lm
24 LD = @LD@
25 LANG = @LANG@
26 LDCOMBINEFLAGS = @LDCOMBINEFLAGS@
29 COMMONSUBDIRS = controls rc ipc loader misc multimedia objects windows
31 EMUSUBDIRS = tools debugger if1632 memory miscemu
33 LIBSUBDIRS = toolkit
35 COMMONOBJS = controls/controls.o ipc/ipc.o loader/loader.o misc/misc.o \
36 multimedia/multimedia.o objects/objects.o rc/rc.o \
37 windows/windows.o
39 EMUOBJS = debugger/debugger.o if1632/if1632.o memory/memory.o miscemu/miscemu.o
41 LIBOBJS = toolkit/toolkit.o
45 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
47 OBJS = $(COMMONOBJS) $(EMUOBJS)
50 all:
51 for i in $(SUBDIRS); do \
52 ( cd $(TOPSRC)/$$i; $(MAKE) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'LD=$(LD)' 'LDCOMBINEFLAGS=$(LDCOMBINEFLAGS)' 'LANG=$(LANG)'); \
53 done
54 $(CC) -o wine $(OBJS) $(LDOPTIONS) $(XDIR) $(XPM_LIB) $(XLIB) $(LDLIBS)
55 nm wine | grep -v _compiled | sort >wine.sym
57 depend:
58 for i in $(SUBDIRS); do \
59 ( cd $(TOPSRC)/$$i; $(MAKE) depend); \
60 done
62 clean:
63 for i in $(SUBDIRS); do \
64 ( cd $(TOPSRC)/$$i; $(MAKE) clean); \
65 done
66 rm -f *.o \#*\# *~ wine wine.sym
68 distclean:
69 for i in $(SUBDIRS); do \
70 ( cd $(TOPSRC)/$$i; $(MAKE) distclean); \
71 done
72 echo "/* autoconf.h generated automatically. Run Configure */" >autoconf.h
73 echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
74 rm -f *.o \#*\# *~ wine wine.sym
75 rm -f stamp-config config.* include/config.h Makefile
77 countryclean:
78 for i in $(SUBDIRS); do \
79 ( cd $(TOPSRC)/$$i; $(MAKE) countryclean); \
80 done
81 rm -f wine wine.sym
83 winelibclean:
84 for i in $(SUBDIRS); do \
85 ( cd $(TOPSRC)/$$i; $(MAKE) winelibclean); \
86 done