Release 950430
[wine/hacks.git] / Imakefile
blob33ee8876824a66eee0b6e7160fb20b37f00fb535
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 #ifdef __ELF__
11 CDEBUGFLAGS = -O2 -Wall -static
12 #else
13 CDEBUGFLAGS = -O2 -Wall
14 #endif
17  * This is the second try at using Imakefiles. There are probably many
18  * problems and things I haven't even considered. I do not have a fixed
19  * Linux system to test them on, but thanks to Thomas Michlmayr
20  * <tmichl@cosy.sbg.ac.at> for use of one of his boxes. 
21  *
22  * SEE BELOW ABOUT DEBUGGING AND LINUX
23  *
24  * Peter Galbavy, 31st Jan 1994: peter@wonderland.org
25  */
27 #define IHaveSubdirs
28 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'\
29                         'DEFINES=$(DEFINES)' 'LD=$(LD)'
31 COMMONSUBDIRS = \
32         controls \
33         rc \
34         loader \
35         misc \
36         multimedia \
37         objects \
38         windows
40 EMUSUBDIRS = \
41         tools \
42         debugger \
43         if1632 \
44         memory \
45         miscemu
47 LIBSUBDIRS = \
48         toolkit
50 WINEDIR = $(LIBDIR)/wine
52 COMMONOBJS = \
53         controls/controls.o \
54         loader/loader.o \
55         misc/misc.o \
56         multimedia/multimedia.o \
57         objects/objects.o \
58         rc/rc.o \
59         windows/windows.o
61 EMUOBJS = \
62         debugger/debugger.o \
63         if1632/if1632.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 /* You may need to add the full path of your libXpm here */
89 XPM_LIB = -lXpm
91 #ifdef MALLOC_DEBUGGING
92 MALLOCLIB = -lmcheck
93 #else
94 MALLOCLIB =
95 #endif
97 MakeSubdirs($(SUBDIRS))
98 DependSubdirs($(SUBDIRS))
100 #ifndef WINELIB
101 NormalProgramTarget(wine,$(OBJS),$(DEPXLIB),$(XPM_LIB) $(XLIB),$(MALLOCLIB) $(SYSLIBS))
102 AllTarget(wine.sym)
103 #else
104 NormalLibraryTarget(wine,$(OBJS))
105 #endif
107 wine.sym: wine
108         nm wine|grep -v _compiled|sort >wine.sym
110 clean::
111         $(RM) wine.sym
113 depend::
115 install::
117 etags::
118         etags `find . -name '*.[chS]' -print`
120 distclean: clean
121         echo "/* autoconf.h generated automatically.  Run Configure */" >autoconf.h
122         echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
123         $(RM) `find . -name Makefile -print`