Release 950727
[wine/multimedia.git] / Imakefile
blob5488945df884a06f733e832ad00069611d373681
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
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)' 'LD=$(LD)' 'ASFLAGS=$(ASFLAGS)'
26 COMMONSUBDIRS = \
27         controls \
28         rc \
29         ipc \
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         ipc/ipc.o \
51         loader/loader.o \
52         misc/misc.o \
53         multimedia/multimedia.o \
54         objects/objects.o \
55         rc/rc.o \
56         windows/windows.o
58 EMUOBJS = \
59         debugger/debugger.o \
60         if1632/if1632.o \
61         memory/memory.o \
62         miscemu/miscemu.o
64 LIBOBJS = \
65         toolkit/toolkit.o
67 #ifndef WINELIB
68 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
69 OBJS = $(EMUOBJS) $(COMMONOBJS)
70 #else
71 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
72 OBJS = $(LIBOBJS) $(COMMONOBJS)
73 #endif
75 #ifdef i386BsdArchitecture
76 SYSLIBS = -ll -lm -li386 -lgnumalloc
77 #endif
78 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
79 SYSLIBS = -ll -lm -lgnumalloc
80 #endif
81 #ifdef LinuxArchitecture
82 SYSLIBS = -lm -lg
83 #endif
85 /* You may need to add the full path of your libXpm here */
86 XPM_LIB = -lXpm
88 #ifdef MALLOC_DEBUGGING
89 MALLOCLIB = -lmcheck
90 #else
91 MALLOCLIB =
92 #endif
94 MakeSubdirs($(SUBDIRS))
95 DependSubdirs($(SUBDIRS))
97 #ifndef WINELIB
98 NormalProgramTarget(wine,$(OBJS),$(DEPXLIB),$(XPM_LIB) $(XLIB),$(MALLOCLIB) $(SYSLIBS))
99 AllTarget(wine.sym)
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) config.* `find . -name Makefile -print`