Release 941227
[wine/multimedia.git] / Imakefile
blobea60138f845d005d671c79a7fad42979b42e2a03
1 #include "autoconf.h"
2 #include "Wine.tmpl"
4 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
5 MAKE = gmake
6 CC = gcc -D__FreeBSD__
7 #endif
9 DEFINES = AutoDefines -DUSE_READLINE -DWINESTAT
12  * This is the second try at using Imakefiles. There are probably many
13  * problems and things I haven't even considered. I do not have a fixed
14  * Linux system to test them on, but thanks to Thomas Michlmayr
15  * <tmichl@cosy.sbg.ac.at> for use of one of his boxes. 
16  *
17  * SEE BELOW ABOUT DEBUGGING AND LINUX
18  *
19  * Peter Galbavy, 31st Jan 1994: peter@wonderland.org
20  */
22 #define IHaveSubdirs
23 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'\
24                         'DEFINES=$(DEFINES)' 'LD=$(LD)'
26 COMMONSUBDIRS = \
27         controls \
28         rc \
29         loader \
30         misc \
31         multimedia \
32         objects \
33         windows
35 EMUSUBDIRS = \
36         tools \
37         debugger \
38         if1632 \
39         memory \
40         miscemu
42 LIBSUBDIRS = \
43         toolkit
45 WINEDIR = $(LIBDIR)/wine
47 COMMONOBJS = \
48         controls/controls.o \
49         loader/loader.o \
50         misc/misc.o \
51         multimedia/multimedia.o \
52         objects/objects.o \
53         rc/rc.o \
54         windows/windows.o
57  * WARNING: if1632.o must be the first object file because its code must be
58  *          linked at the lowest possible addresses.
59  */
60 EMUOBJS = \
61         if1632/if1632.o \
62         debugger/debugger.o \
63         memory/memory.o \
64         miscemu/miscemu.o
66 LIBOBJS = \
67         toolkit/toolkit.o
69 #ifndef WINELIB
70 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
71 OBJS = $(EMUOBJS) $(COMMONOBJS)
72 #else
73 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
74 OBJS = $(LIBOBJS) $(COMMONOBJS)
75 #endif
77 #ifdef i386BsdArchitecture
78 SYSLIBS = -ll -lm -li386 -lgnumalloc
79 #endif
80 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
81 SYSLIBS = -ll -lm -lgnumalloc
82 #endif
83 #ifdef LinuxArchitecture
84 SYSLIBS = -lm -lg
85 #endif
87 #ifdef USE_XPM
88 XPM_LIB = -lXpm
89 #else
90 XPM_LIB =
91 #endif
93 MakeSubdirs($(SUBDIRS))
94 DependSubdirs($(SUBDIRS))
95 AllTarget(wine.sym)
97 #ifndef WINELIB
98 NormalProgramTarget(wine,$(OBJS),$(DEPXLIB),$(XPM_LIB) $(XLIB),$(SYSLIBS))
99 #else
100 NormalLibraryTarget(wine,$(OBJS))
101 #endif
103 wine.sym: wine
104         nm wine|grep -v _compiled|sort >wine.sym
106 clean::
107         $(RM) wine.sym
109 depend::
111 install::
113 etags::
114         etags `find . -name '*.[chS]' -print`
116 distclean: clean
117         echo "/* autoconf.h generated automatically.  Run Configure */" >autoconf.h
118         echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
119         $(RM) `find . -name Makefile -print`