Release 950901
[wine/multimedia.git] / Imakefile
blob47ffac606e4f176e45d3c0d129c893bc980dbfaf
1 #include "autoconf.h"
2 #include "Wine.tmpl"
4 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
5 MAKE = gmake
6 #endif
8 DEFINES = AutoDefines -DUSE_READLINE
11  * This is the second try at using Imakefiles. There are probably many
12  * problems and things I haven't even considered. I do not have a fixed
13  * Linux system to test them on, but thanks to Thomas Michlmayr
14  * <tmichl@cosy.sbg.ac.at> for use of one of his boxes. 
15  *
16  * SEE BELOW ABOUT DEBUGGING AND LINUX
17  *
18  * Peter Galbavy, 31st Jan 1994: peter@wonderland.org
19  */
21 #define IHaveSubdirs
22 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'\
23                         'DEFINES=$(DEFINES)' 'LD=$(LD)' 'ASFLAGS=$(ASFLAGS)'
25 COMMONSUBDIRS = \
26         controls \
27         rc \
28         ipc \
29         loader \
30         misc \
31         multimedia \
32         objects \
33         windows
35 EMUSUBDIRS = \
36         tools \
37         debugger \
38         if1632 \
39         memory \
40         miscemu
42 LIBSUBDIRS = \
43         toolkit
45 WINEDIR = $(LIBDIR)/wine
47 COMMONOBJS = \
48         controls/controls.o \
49         ipc/ipc.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
57 EMUOBJS = \
58         debugger/debugger.o \
59         if1632/if1632.o \
60         memory/memory.o \
61         miscemu/miscemu.o
63 LIBOBJS = \
64         toolkit/toolkit.o
66 #ifndef WINELIB
67 SUBDIRS = $(COMMONSUBDIRS) $(EMUSUBDIRS)
68 OBJS = $(EMUOBJS) $(COMMONOBJS)
69 #else
70 SUBDIRS = $(COMMONSUBDIRS) $(LIBSUBDIRS)
71 OBJS = $(LIBOBJS) $(COMMONOBJS)
72 #endif
74 #ifdef i386BsdArchitecture
75 SYSLIBS = -ll -lm -li386 -lgnumalloc
76 #endif
77 #if defined(i386FreeBsd) || defined(FreeBSDArchitecture)
78 SYSLIBS = -ll -lm -lgnumalloc
79 #endif
80 #ifdef LinuxArchitecture
81 SYSLIBS = -lm -lg
82 #endif
84 /* You may need to add the full path of your libXpm here */
85 XPM_LIB = -lXpm
87 #ifdef MALLOC_DEBUGGING
88 MALLOCLIB = -lmcheck
89 #else
90 MALLOCLIB =
91 #endif
93 MakeSubdirs($(SUBDIRS))
94 DependSubdirs($(SUBDIRS))
96 #ifndef WINELIB
97 NormalProgramTarget(wine,$(OBJS),$(DEPXLIB),$(XPM_LIB) $(XLIB),$(MALLOCLIB) $(SYSLIBS))
98 AllTarget(wine.sym)
99 #else
100 NormalLibraryTarget(wine,$(OBJS))
101 #endif
103 wine.sym: wine
104         nm wine|grep -v _compiled|sort >wine.sym
106 clean::
107         $(RM) wine.sym
109 depend::
111 install::
113 etags::
114         etags `find . -name '*.[chS]' -print`
116 distclean: clean
117         echo "/* autoconf.h generated automatically.  Run Configure */" >autoconf.h
118         echo "#error You must run Configure before you can build the makefiles." >>autoconf.h
119         $(RM) config.* `find . -name Makefile -print`