Release 950522
[wine.git] / Imakefile
blob492798d0bf6f606cd5dc9e393427c198f5eafe68
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
10 #ifdef __ELF__
11 LD = /usr/i486-linuxaout/bin/ld -m i386linux
12 CDEBUGFLAGS = -O2 -Wall -b i486-linuxaout
13 ASFLAGS = -b i486-linuxaout
14 #else
15 CDEBUGFLAGS = -O2 -Wall
16 #endif
19  * This is the second try at using Imakefiles. There are probably many
20  * problems and things I haven't even considered. I do not have a fixed
21  * Linux system to test them on, but thanks to Thomas Michlmayr
22  * <tmichl@cosy.sbg.ac.at> for use of one of his boxes. 
23  *
24  * SEE BELOW ABOUT DEBUGGING AND LINUX
25  *
26  * Peter Galbavy, 31st Jan 1994: peter@wonderland.org
27  */
29 #define IHaveSubdirs
30 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'\
31                         'DEFINES=$(DEFINES)' 'LD=$(LD)' 'ASFLAGS=$(ASFLAGS)'
33 COMMONSUBDIRS = \
34         controls \
35         rc \
36         loader \
37         misc \
38         multimedia \
39         objects \
40         windows
42 EMUSUBDIRS = \
43         tools \
44         debugger \
45         if1632 \
46         memory \
47         miscemu
49 LIBSUBDIRS = \
50         toolkit
52 WINEDIR = $(LIBDIR)/wine
54 COMMONOBJS = \
55         controls/controls.o \
56         loader/loader.o \
57         misc/misc.o \
58         multimedia/multimedia.o \
59         objects/objects.o \
60         rc/rc.o \
61         windows/windows.o
63 EMUOBJS = \
64         debugger/debugger.o \
65         if1632/if1632.o \
66         memory/memory.o \
67         miscemu/miscemu.o
69 LIBOBJS = \
70         toolkit/toolkit.o
72 #ifndef WINELIB
73 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
74 OBJS = $(EMUOBJS) $(COMMONOBJS)
75 #else
76 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
77 OBJS = $(LIBOBJS) $(COMMONOBJS)
78 #endif
80 #ifdef i386BsdArchitecture
81 SYSLIBS = -ll -lm -li386 -lgnumalloc
82 #endif
83 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
84 SYSLIBS = -ll -lm -lgnumalloc
85 #endif
86 #ifdef LinuxArchitecture
87 SYSLIBS = -lm -lg
88 #endif
90 /* You may need to add the full path of your libXpm here */
91 XPM_LIB = -lXpm
93 #ifdef MALLOC_DEBUGGING
94 MALLOCLIB = -lmcheck
95 #else
96 MALLOCLIB =
97 #endif
99 MakeSubdirs($(SUBDIRS))
100 DependSubdirs($(SUBDIRS))
102 #ifndef WINELIB
103 NormalProgramTarget(wine,$(OBJS),$(DEPXLIB),$(XPM_LIB) $(XLIB),$(MALLOCLIB) $(SYSLIBS))
104 AllTarget(wine.sym)
105 #else
106 NormalLibraryTarget(wine,$(OBJS))
107 #endif
109 wine.sym: wine
110         nm wine|grep -v _compiled|sort >wine.sym
112 clean::
113         $(RM) wine.sym
115 depend::
117 install::
119 etags::
120         etags `find . -name '*.[chS]' -print`
122 distclean: clean
123         echo "/* autoconf.h generated automatically.  Run Configure */" >autoconf.h
124         echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
125         $(RM) `find . -name Makefile -print`