Release 940510
[wine/multimedia.git] / Imakefile
blob5f1266503709c4800910d9491f14f18c0fccc93f
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         readline.o
66 LIBOBJS = \
67         toolkit.o
69 #ifndef WINELIB
70 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
71 OBJS = $(COMMONOBJS) $(EMUOBJS)
72 #else
73 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
74 OBJS = $(COMMONOBJS) $(LIBOBJS)
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 MakeSubdirs($(SUBDIRS))
88 DependSubdirs($(SUBDIRS))
89 AllTarget(wine)
91 #ifndef WINELIB
92 NormalProgramTarget(wine,$(EMUOBJS) $(COMMONOBJS),$(DEPXLIB),$(XLIB),$(SYSLIBS))
93 #else
94 NormalLibraryTarget(wine,$(LIBOBJS) $(COMMONOBJS))
95 #endif
97 depend::
99 install::