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
10 # depend: create the dependencies
12 # Author: Michael Patra <micky@marie.physik.tu-berlin.de>
13 # <patra@itp1.physik.tu-berlin.de>
19 DIVINCL
= -I
$(TOPSRC
)/include
22 XDIR
= -L@x_libraries@
26 LDCOMBINEFLAGS
= @LDCOMBINEFLAGS@
29 COMMONSUBDIRS
= controls rc ipc loader misc multimedia objects windows
31 EMUSUBDIRS
= tools debugger if1632 memory miscemu
35 COMMONOBJS
= controls
/controls.o ipc
/ipc.o loader
/loader.o misc
/misc.o \
36 multimedia
/multimedia.o objects
/objects.o rc
/rc.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
)
51 for i in
$(SUBDIRS
); do \
52 ( cd
$(TOPSRC
)/$$i; $(MAKE
) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'LD=$(LD)' 'LDCOMBINEFLAGS=$(LDCOMBINEFLAGS)' 'LANG=$(LANG)'); \
54 $(CC
) -o wine
$(OBJS
) $(LDOPTIONS
) $(XDIR
) $(XPM_LIB
) $(XLIB
) $(LDLIBS
)
55 nm wine | grep
-v _compiled |
sort >wine.sym
58 for i in
$(SUBDIRS
); do \
59 ( cd
$(TOPSRC
)/$$i; $(MAKE
) depend
); \
63 for i in
$(SUBDIRS
); do \
64 ( cd
$(TOPSRC
)/$$i; $(MAKE
) clean); \
66 rm -f
*.o \
#*\# *~ wine wine.sym
69 for i in
$(SUBDIRS
); do \
70 ( cd
$(TOPSRC
)/$$i; $(MAKE
) distclean); \
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
78 for i in
$(SUBDIRS
); do \
79 ( cd
$(TOPSRC
)/$$i; $(MAKE
) countryclean
); \
84 for i in
$(SUBDIRS
); do \
85 ( cd
$(TOPSRC
)/$$i; $(MAKE
) winelibclean
); \