Search for the Wine install directory earlier
[wine/multimedia.git] / Makefile-mingw
blob394c10bbaf60396b43d78649ba0e2a3ecb26e9f2
1 CC      = gcc
2 CFLAGS  = -g -O2 -D_WIN32 -DWINELESS -DDEBUG_INFO=0xF -ID:/Libs/OpenAL-1.1/include -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wwrite-strings -Wpointer-arith
3 DLLWRAP = dllwrap
5 MODULE = dsound.dll
6 LIBS   = -lOpenAL32 -ldxerr8 -luuid -lwinmm -lole32
8 C_SRCS = \
9         debug.c \
10         buffer.c \
11         capture.c \
12         dsound8.c \
13         dsound_main.c \
14         duplex.c \
15         primary.c \
16         propset.c \
17         regsvr.c
19 OBJS = $(C_SRCS:.c=.o)
21 DEF = dsound-mingw.def
23 .PHONY: all
25 .c.o:
26         $(CC) -c $(CFLAGS) -o $@ $<
28 all: $(MODULE)
30 $(MODULE): $(OBJS)
31         $(DLLWRAP) --def $(DEF) --dllname DSOUND.dll -L. -o $@ $(OBJS) $(LIBS)