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 # depend: create the dependencies
7 # etags: Create a TAGS file for Emacs.
9 # Author: Michael Patra <micky@marie.physik.tu-berlin.de>
10 # <patra@itp1.physik.tu-berlin.de>
12 # First some useful definitions
17 DEFS
= @DEFS@
-DWINE_INI_GLOBAL
=\"$(WINE_INI_GLOBAL
)\"
21 DIVINCL
= -I
$(TOPSRC
)/include
23 XLIB
= @X_PRE_LIBS@
-lXext
-lX11 @X_EXTRA_LIBS@
28 SUBMAKE
= $(MAKE
) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'DEFS=$(DEFS)'
34 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
35 INSTALL_DATA
= @INSTALL_DATA@
37 exec_prefix = @
exec_prefix@
40 sysconfdir
= @sysconfdir@
41 mandir = @
mandir@
/man1
43 WINE_INI_GLOBAL
= $(sysconfdir
)/wine.conf
45 # Main target to build
47 MAIN_TARGET
= @MAIN_TARGET@
71 ALLSUBDIRS
= $(COMMONSUBDIRS
) $(EMUSUBDIRS
) $(LIBSUBDIRS
) libtest
78 multimedia
/multimedia.o \
80 resources
/resources.o \
86 debugger
/readline
/readline.o \
91 LIBOBJS
= library
/library.o
96 install: install_
$(MAIN_TARGET
)
98 wine wine.sym
: $(COMMONSUBDIRS
) $(EMUSUBDIRS
) dummy
99 $(CC
) -o wine
$(COMMONOBJS
) $(EMUOBJS
) $(LDOPTIONS
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LDLIBS
)
100 nm
-n wine | grep
-v _compiled
>wine.sym
103 $(INSTALL_PROGRAM
) wine
$(bindir)/wine
104 $(INSTALL_DATA
) wine.man
$(mandir)/wine
$(manext)
106 libwine.a
: $(COMMONSUBDIRS
) $(LIBSUBDIRS
) dummy
108 $(AR
) $@
$(COMMONOBJS
) $(LIBOBJS
)
111 install_libwine.a
: dummy
112 $(INSTALL_DATA
) libwine.a
$(libdir)
118 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) depend
); done
121 etags
`find . -name '*.[chS]' -print`
124 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) clean); done
125 $(RM
) *.o \
#*\# *~ *.bak *.flc wine wine.sym libwine.a TAGS
126 $(RM
) include/\
#*\# include/*~ include/*.bak include/*.flc
129 for i in
$(ALLSUBDIRS
); do
(cd
$$i; $(MAKE
) distclean); done
130 $(RM
) *.o \
#*\# *~ *.bak wine wine.sym libwine.a TAGS
131 $(RM
) include/\
#*\# include/*~ include/*.bak include/*.flc
132 $(RM
) config.
* include/config.h Make.rules Makefile