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>
20 DIVINCL
= -I
$(TOPSRC
)/include
22 XLIB
= @X_PRE_LIBS@
-lXext
-lX11 @X_EXTRA_LIBS@
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
37 ALLSUBDIRS
= $(COMMONSUBDIRS
) $(EMUSUBDIRS
) $(LIBSUBDIRS
)
44 multimedia
/multimedia.o \
52 debugger
/readline
/readline.o \
57 LIBOBJS
= toolkit
/toolkit.o
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
68 $(AR
) $@
$(COMMONOBJS
) $(LIBOBJS
)
72 @cd
$@
; $(MAKE
) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'DEFS=$(DEFS)' 'LANG=$(LANG)'
75 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) depend
); done
78 etags
`find . -name '*.[chS]' -print`
81 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) clean); done
82 $(RM
) *.o \
#*\# *~ *.bak wine wine.sym winelib.a TAGS
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
92 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) langclean
); done
93 $(RM
) wine wine.sym winelib.a