Release 940518
[wine/multimedia.git] / Imakefile
blobf87fc8fe710cebdf1326ac75efd87c9dc8e0ca98
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)'
26 COMMONSUBDIRS = \
27         controls \
28         etc \
29         include \
30         loader \
31         misc \
32         objects \
33         test \
34         windows
36 EMUSUBDIRS = \
37         tools \
38         debugger \
39         if1632 \
40         memory \
41         miscemu
43 LIBSUBDIRS = \
44         toolkit
46 WINEDIR = $(LIBDIR)/wine
48 COMMONOBJS = \
49         controls.o \
50         loader.o \
51         misc.o \
52         objects.o \
53         windows.o
56  * WARNING: if1632.o must be the first object file because its code must be
57  *          linked at the lowest possible addresses.
58  */
59 EMUOBJS = \
60         if1632.o \
61         debugger.o \
62         memory.o \
63         miscemu.o \
64         opcodes.o \
65         readline.o
67 LIBOBJS = \
68         toolkit.o
70 #ifndef WINELIB
71 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
72 OBJS = $(COMMONOBJS) $(EMUOBJS)
73 #else
74 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
75 OBJS = $(COMMONOBJS) $(LIBOBJS)
76 #endif
78 #ifdef i386BsdArchitecture
79 SYSLIBS = -ll -lm -li386 -lgnumalloc
80 #endif
81 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
82 SYSLIBS = -ll -lm -lgnumalloc
83 #endif
84 #ifdef LinuxArchitecture
85 SYSLIBS = -lm -lg
86 #endif
88 MakeSubdirs($(SUBDIRS))
89 DependSubdirs($(SUBDIRS))
90 AllTarget(wine)
92 #ifndef WINELIB
93 NormalProgramTarget(wine,$(EMUOBJS) $(COMMONOBJS),$(DEPXLIB),$(XLIB),$(SYSLIBS))
94 #else
95 NormalLibraryTarget(wine,$(LIBOBJS) $(COMMONOBJS))
96 #endif
98 depend::
100 install::
102 etags::
103         etags `find . -name '*.[chS]'`