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>
21 DIVINCL
= -I
$(TOPSRC
)/include
23 XLIB
= @X_PRE_LIBS@
-lXext
-lX11 @X_EXTRA_LIBS@
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
38 ALLSUBDIRS
= $(COMMONSUBDIRS
) $(EMUSUBDIRS
) $(LIBSUBDIRS
)
45 multimedia
/multimedia.o \
53 debugger
/readline
/readline.o \
58 LIBOBJS
= toolkit
/toolkit.o
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
69 $(AR
) $@
$(COMMONOBJS
) $(LIBOBJS
)
73 @cd
$@
; $(MAKE
) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'DEFS=$(DEFS)' 'LANG=$(LANG)'
76 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) depend
); done
79 etags
`find . -name '*.[chS]' -print`
82 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) clean); done
83 $(RM
) *.o \
#*\# *~ *.bak *.flc wine wine.sym winelib.a TAGS
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
93 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) langclean
); done
94 $(RM
) wine wine.sym winelib.a