Release 950122
[wine/multimedia.git] / Imakefile
blobcd14207ea10bde6bd26347109e0da8bcd4ec4ed9
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
62  * WARNING: if1632.o must be the first object file because its code must be
63  *          linked at the lowest possible addresses.
64  */
65 EMUOBJS = \
66         if1632/if1632.o \
67         debugger/debugger.o \
68         memory/memory.o \
69         miscemu/miscemu.o
71 LIBOBJS = \
72         toolkit/toolkit.o
74 #ifndef WINELIB
75 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
76 OBJS = $(EMUOBJS) $(COMMONOBJS)
77 #else
78 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
79 OBJS = $(LIBOBJS) $(COMMONOBJS)
80 #endif
82 #ifdef i386BsdArchitecture
83 SYSLIBS = -ll -lm -li386 -lgnumalloc
84 #endif
85 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
86 SYSLIBS = -ll -lm -lgnumalloc
87 #endif
88 #ifdef LinuxArchitecture
89 SYSLIBS = -lm -lg
90 #endif
92 #ifdef USE_XPM
93 XPM_LIB = -lXpm
94 #else
95 XPM_LIB =
96 #endif
98 MakeSubdirs($(SUBDIRS))
99 DependSubdirs($(SUBDIRS))
100 AllTarget(wine.sym)
102 #ifndef WINELIB
103 NormalProgramTarget(wine,$(OBJS),$(DEPXLIB),$(XPM_LIB) $(XLIB),$(SYSLIBS))
104 #else
105 NormalLibraryTarget(wine,$(OBJS))
106 #endif
108 wine.sym: wine
109         nm wine|grep -v _compiled|sort >wine.sym
111 clean::
112         $(RM) wine.sym
114 depend::
116 install::
118 etags::
119         etags `find . -name '*.[chS]' -print`
121 distclean: clean
122         echo "/* autoconf.h generated automatically.  Run Configure */" >autoconf.h
123         echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
124         $(RM) `find . -name Makefile -print`