1 ### Generated by Winemaker
13 CEXTRA
= -m32
-g
-O2
-D__WINESRC__
-D_REENTRANT
-fPIC
-Wall
-pipe
-fno-strict-aliasing
-Wdeclaration-after-statement
-Wwrite-strings
-Wpointer-arith
14 CXXEXTRA
= -m32
-D__WINESRC__
-D_REENTRANT
-fPIC
-Wall
-pipe
-fno-strict-aliasing
-Wdeclaration-after-statement
-Wwrite-strings
-Wpointer-arith
16 INCLUDE_PATH
= -I.
-I
/usr
/include -I
$(PREFIX
)/include -I
$(PREFIX
)/include/wine
-I
$(PREFIX
)/include/wine
/windows
22 ### wineasio.dll sources and settings
24 wineasio_dll_MODULE
= wineasio.dll
25 wineasio_dll_C_SRCS
= asio.c \
28 wineasio_dll_CXX_SRCS
=
29 wineasio_dll_RC_SRCS
=
30 wineasio_dll_LDFLAGS
= -shared \
32 $(wineasio_dll_MODULE
:%=%.spec
) \
36 wineasio_dll_DLL_PATH
=
37 wineasio_dll_DLLS
= odbc32 \
40 wineasio_dll_LIBRARY_PATH
=
41 wineasio_dll_LIBRARIES
= uuid
43 wineasio_dll_OBJS
= $(wineasio_dll_C_SRCS
:.c
=.o
) \
44 $(wineasio_dll_CXX_SRCS
:.
cpp=.o
) \
45 $(wineasio_dll_RC_SRCS
:.rc
=.res
)
49 ### Global source lists
51 C_SRCS
= $(wineasio_dll_C_SRCS
)
52 CXX_SRCS
= $(wineasio_dll_CXX_SRCS
)
53 RC_SRCS
= $(wineasio_dll_RC_SRCS
)
66 all: asio.h
$(SUBDIRS
) $(DLLS
:%=%.so
) $(EXES
:%=%.so
)
70 .PHONY
: all clean dummy
77 .SUFFIXES
: .
cpp .rc .res
78 DEFINCL
= $(INCLUDE_PATH
) $(DEFINES
) $(OPTIONS
)
81 $(CC
) -c
$(DEFINCL
) $(CFLAGS
) $(CEXTRA
) -o
$@
$<
84 $(CXX
) -c
$(CXXFLAGS
) $(CXXEXTRA
) $(DEFINCL
) -o
$@
$<
87 $(CXX
) -c
$(CXXFLAGS
) $(CXXEXTRA
) $(DEFINCL
) -o
$@
$<
90 $(RC
) $(RCFLAGS
) $(RCEXTRA
) $(DEFINCL
) -fo
$@
$<
94 CLEAN_FILES
= y.tab.c y.tab.h
lex.yy.c core
*.orig
*.rej \
95 \\\
#*\\\# *~ *% .\\\#*
97 clean:: $(SUBDIRS
:%=%/__clean__
) $(EXTRASUBDIRS
:%=%/__clean__
)
98 $(RM
) $(CLEAN_FILES
) $(RC_SRCS
:.rc
=.res
) $(C_SRCS
:.c
=.o
) $(CXX_SRCS
:.
cpp=.o
)
99 $(RM
) $(DLLS
:%=%.so
) $(EXES
:%=%.so
) $(EXES
:%.exe
=%)
101 $(SUBDIRS
:%=%/__clean__
): dummy
102 cd
`dirname $@` && $(MAKE
) clean
104 $(EXTRASUBDIRS
:%=%/__clean__
): dummy
105 -cd
`dirname $@` && $(RM
) $(CLEAN_FILES
)
110 ### Target specific build rules
111 DEFLIB
= $(LIBRARY_PATH
) $(LIBRARIES
) $(DLL_PATH
)
113 $(wineasio_dll_MODULE
).so
: $(wineasio_dll_OBJS
)
114 $(WINECC
) $(wineasio_dll_LDFLAGS
) -o
$@
$(wineasio_dll_OBJS
) $(wineasio_dll_LIBRARY_PATH
) $(DEFLIB
) $(wineasio_dll_DLLS
:%=-l
%) $(wineasio_dll_LIBRARIES
:%=-l
%)
117 if
[ -d
/usr
/lib32
/wine
]; then cp wineasio.dll.so
/usr
/lib32
/wine
; else cp wineasio.dll.so
/usr
/lib
/wine
; fi