Release 950109
[wine.git] / Imakefile
blobf5e2fad4ead15ea7d176e05e465dd8a48d076b54
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
10 CDEBUGFLAGS = -O2 -Wall
13  * This is the second try at using Imakefiles. There are probably many
14  * problems and things I haven't even considered. I do not have a fixed
15  * Linux system to test them on, but thanks to Thomas Michlmayr
16  * <tmichl@cosy.sbg.ac.at> for use of one of his boxes. 
17  *
18  * SEE BELOW ABOUT DEBUGGING AND LINUX
19  *
20  * Peter Galbavy, 31st Jan 1994: peter@wonderland.org
21  */
23 #define IHaveSubdirs
24 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'\
25                         'DEFINES=$(DEFINES)' 'LD=$(LD)'
27 COMMONSUBDIRS = \
28         controls \
29         rc \
30         loader \
31         misc \
32         multimedia \
33         objects \
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/controls.o \
50         loader/loader.o \
51         misc/misc.o \
52         multimedia/multimedia.o \
53         objects/objects.o \
54         rc/rc.o \
55         windows/windows.o
58  * WARNING: if1632.o must be the first object file because its code must be
59  *          linked at the lowest possible addresses.
60  */
61 EMUOBJS = \
62         if1632/if1632.o \
63         debugger/debugger.o \
64         memory/memory.o \
65         miscemu/miscemu.o
67 LIBOBJS = \
68         toolkit/toolkit.o
70 #ifndef WINELIB
71 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
72 OBJS = $(EMUOBJS) $(COMMONOBJS)
73 #else
74 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
75 OBJS = $(LIBOBJS) $(COMMONOBJS)
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 #ifdef USE_XPM
89 XPM_LIB = -lXpm
90 #else
91 XPM_LIB =
92 #endif
94 MakeSubdirs($(SUBDIRS))
95 DependSubdirs($(SUBDIRS))
96 AllTarget(wine.sym)
98 #ifndef WINELIB
99 NormalProgramTarget(wine,$(OBJS),$(DEPXLIB),$(XPM_LIB) $(XLIB),$(SYSLIBS))
100 #else
101 NormalLibraryTarget(wine,$(OBJS))
102 #endif
104 wine.sym: wine
105         nm wine|grep -v _compiled|sort >wine.sym
107 clean::
108         $(RM) wine.sym
110 depend::
112 install::
114 etags::
115         etags `find . -name '*.[chS]' -print`
117 distclean: clean
118         echo "/* autoconf.h generated automatically.  Run Configure */" >autoconf.h
119         echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
120         $(RM) `find . -name Makefile -print`