]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/makefile.b32
* Fixes
[wxWidgets.git] / utils / wxMMedia / makefile.b32
1 #
2 # File: makefile.b32
3 # Author: Patrick Halke, modified by Guilhem Lavaux
4 # Created: 1997
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds 32bit wxstring library for Windows 3.1
11 # and Borland C++ 4.x
12
13 WXDIR = $(WXWIN)
14
15 !include $(WXDIR)\src\makeb32.env
16
17 WXLIBDIR = $(WXDIR)\lib
18 WXLIB = $(WXDIR)\lib\wx32.lib
19 WXINC = $(WXDIR)\include\msw
20 WXBASESRC = $(WXDIR)\src\base
21 WXBASEINC = $(WXDIR)\include\base
22 LIBS=$(WXLIB) cw32 import32 ole2w32
23
24 !ifndef DEBUG
25 DEBUG=0
26 !endif
27
28 !if "$(FINAL)" == "0"
29 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
30 OPT = -Od
31 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
32 !else
33 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
34 OPT = -O2
35 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
36 !endif
37
38 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
39
40 LIBTARGET= $(WXLIBDIR)\wxmmedia.lib
41
42 .c.obj:
43 bcc32 $(CPPFLAGS) -P- -c {$< }
44
45 OBJECTS = sndsnd.$(OBJSUFF) sndwav.$(OBJSUFF) vidbdrv.$(OBJSUFF) \
46 sndfile.$(OBJSUFF) sndwin.$(OBJSUFF) mmdata.$(OBJSUFF) \
47 mmfile.$(OBJSUFF) mmsolve.$(OBJSUFF) sndfrag.$(OBJSUFF) \
48 cdbase.$(OBJSUFF) cdwin.$(OBJSUFF) vidwin.$(OBJSUFF) \
49 mmriff.$(OBJSUFF)
50
51 all: $(LIBTARGET)
52
53 $(LIBTARGET): $(OBJECTS)
54 erase $(LIBTARGET)
55 tlib $(LIBTARGET) /P32 @&&!
56 +$(OBJECTS:.obj =.obj +)
57 !
58
59 sndsnd.$(OBJSUFF): sndsnd.$(SRCSUFF) sndsnd.h
60
61 sndwin.$(OBJSUFF): sndwin.$(SRCSUFF) sndwin.h
62
63 sndfile.$(OBJSUFF): sndfile.$(SRCSUFF) sndfile.h
64
65 sndwav.$(OBJSUFF): sndwav.$(SRCSUFF) sndwav.h
66
67 sndfrag.$(OBJSUFF): sndfrag.$(SRCSUFF) sndfrag.h
68
69 mmdata.$(OBJSUFF): mmdata.$(SRCSUFF)
70
71 mmfile.$(OBJSUFF): mmfile.$(SRCSUFF) mmfile.h
72
73 mmsolve.$(OBJSUFF): mmsolve.$(SRCSUFF) mmsolve.h
74
75 vidbdrv.$(OBJSUFF): vidbdrv.$(SRCSUFF) vidbdrv.h
76
77 cdbase.$(OBJSUFF): cdbase.$(SRCSUFF) cdbase.h
78
79 cdwin.$(OBJSUFF): cdwin.$(SRCSUFF) cdwin.h
80
81 vidwin.$(OBJSUFF): vidwin.$(SRCSUFF) vidwin.h
82
83 mmriff.$(OBJSUFF): mmriff.$(SRCSUFF) mmriff.h
84
85 clean:
86 -erase *.obj
87 -erase $(LIBTARGET)
88 -erase *.exe
89 -erase *.res
90 -erase *.map
91 -erase *.rws