Release 940301
[wine/dcerpc.git] / Imakefile
blobe0662aab8ab6affd93ce7acf2f4b0137e51c122b
1 #include "autoconf.h"
2 #include "Wine.tmpl"
4 #if defined(i386FreeBsd)
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         misc \
31         objects \
32         test \
33         windows
35 EMUSUBDIRS = \
36         tools \
37         debugger \
38         if1632 \
39         loader \
40         memory \
41         miscemu
43 LIBSUBDIRS = \
44         toolkit
46 WINEDIR = $(LIBDIR)/wine
48 COMMONOBJS = \
49         controls.o \
50         misc.o \
51         objects.o \
52         windows.o
55  * WARNING: if1632.o must be the first object file because its code must be
56  *          linked at the lowest possible addresses.
57  */
58 EMUOBJS = \
59         if1632.o \
60         debugger.o \
61         loader.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 #if defined(i386BsdArchitecture)
78 SYSLIBS = -ll -lm -li386 -lgnumalloc
79 #elif defined(i386FreeBsd)
80 SYSLIBS = -ll -lm -lgnumalloc
81 #elif defined(LinuxArchitecture)
82 SYSLIBS = -lm -lg
83 #endif
85 MakeSubdirs($(SUBDIRS))
86 DependSubdirs($(SUBDIRS))
87 AllTarget(wine)
89 #ifndef WINELIB
90 NormalProgramTarget(wine,$(EMUOBJS) $(COMMONOBJS),$(DEPXLIB),$(XLIB),$(SYSLIBS))
91 #else
92 NormalLibraryTarget(wine,$(LIBOBJS) $(COMMONOBJS))
93 #endif
95 depend::
97 install::