|
@@ -1,16 +1,29 @@ |
|
|
### Generated by Winemaker |
|
|
|
|
|
|
|
|
#!/usr/bin/make -f |
|
|
|
|
|
# Makefile for WineASIO # |
|
|
|
|
|
# --------------------- # |
|
|
|
|
|
# Created by falkTX |
|
|
|
|
|
# Initially generated by winemaker |
|
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(ARCH),) |
|
|
|
|
|
$(error incorrect use of Makefile, ARCH var is missing) |
|
|
|
|
|
endif |
|
|
|
|
|
ifeq ($(M),) |
|
|
|
|
|
$(error incorrect use of Makefile, M var is missing) |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
PREFIX = /usr |
|
|
PREFIX = /usr |
|
|
SRCDIR = . |
|
|
SRCDIR = . |
|
|
SUBDIRS = |
|
|
|
|
|
DLLS = wineasio.dll |
|
|
DLLS = wineasio.dll |
|
|
EXES = |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Tools |
|
|
|
|
|
|
|
|
|
|
|
CC = gcc |
|
|
|
|
|
WINECC = winegcc |
|
|
|
|
|
|
|
|
### Common settings |
|
|
### Common settings |
|
|
|
|
|
|
|
|
CEXTRA = -m64 -DNATIVE_INT64 -D_REENTRANT -fPIC -Wall -pipe |
|
|
|
|
|
|
|
|
CEXTRA = -m$(M) -D_REENTRANT -fPIC -Wall -pipe |
|
|
CEXTRA += -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith |
|
|
CEXTRA += -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith |
|
|
CEXTRA += -Werror=implicit-function-declaration |
|
|
CEXTRA += -Werror=implicit-function-declaration |
|
|
CEXTRA += $(shell pkg-config --cflags jack) |
|
|
CEXTRA += $(shell pkg-config --cflags jack) |
|
@@ -22,8 +35,14 @@ INCLUDE_PATH += -I$(PREFIX)/include/wine-development |
|
|
INCLUDE_PATH += -I$(PREFIX)/include/wine-development/wine/windows |
|
|
INCLUDE_PATH += -I$(PREFIX)/include/wine-development/wine/windows |
|
|
DLL_PATH = |
|
|
DLL_PATH = |
|
|
LIBRARY_PATH = |
|
|
LIBRARY_PATH = |
|
|
LIBRARIES = -ljack |
|
|
|
|
|
|
|
|
LIBRARIES = $(shell pkg-config --libs jack) |
|
|
|
|
|
|
|
|
|
|
|
# 64bit build needs an extra flag |
|
|
|
|
|
ifeq ($(M),64) |
|
|
|
|
|
CEXTRA += -DNATIVE_INT64 |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# Debug or Release |
|
|
ifeq ($(DEBUG),true) |
|
|
ifeq ($(DEBUG),true) |
|
|
CEXTRA += -O0 -DDEBUG -g -D__WINESRC__ |
|
|
CEXTRA += -O0 -DDEBUG -g -D__WINESRC__ |
|
|
LIBRARIES += |
|
|
LIBRARIES += |
|
@@ -37,16 +56,18 @@ wineasio_dll_MODULE = wineasio.dll |
|
|
wineasio_dll_C_SRCS = asio.c \ |
|
|
wineasio_dll_C_SRCS = asio.c \ |
|
|
main.c \ |
|
|
main.c \ |
|
|
regsvr.c |
|
|
regsvr.c |
|
|
wineasio_dll_RC_SRCS = |
|
|
|
|
|
wineasio_dll_LDFLAGS = -shared \ |
|
|
wineasio_dll_LDFLAGS = -shared \ |
|
|
-m64 \ |
|
|
|
|
|
|
|
|
-m$(M) \ |
|
|
-mnocygwin \ |
|
|
-mnocygwin \ |
|
|
$(wineasio_dll_MODULE:%=%.spec) \ |
|
|
$(wineasio_dll_MODULE:%=%.spec) \ |
|
|
-L/usr/lib64/wine \ |
|
|
|
|
|
-L/usr/lib/x86_64-linux-gnu/wine \ |
|
|
|
|
|
-L/usr/lib/x86_64-linux-gnu/wine-development \ |
|
|
|
|
|
|
|
|
-L/usr/lib/wine \ |
|
|
|
|
|
-L/usr/lib$(M)/wine \ |
|
|
|
|
|
-L/usr/lib/$(ARCH)-linux-gnu/wine \ |
|
|
|
|
|
-L/usr/lib/$(ARCH)-linux-gnu/wine-development \ |
|
|
-L/opt/wine-staging/lib \ |
|
|
-L/opt/wine-staging/lib \ |
|
|
-L/opt/wine-staging/lib/wine |
|
|
|
|
|
|
|
|
-L/opt/wine-staging/lib/wine \ |
|
|
|
|
|
-L/opt/wine-staging/lib$(M) \ |
|
|
|
|
|
-L/opt/wine-staging/lib$(M)/wine |
|
|
wineasio_dll_DLL_PATH = |
|
|
wineasio_dll_DLL_PATH = |
|
|
wineasio_dll_DLLS = odbc32 \ |
|
|
wineasio_dll_DLLS = odbc32 \ |
|
|
ole32 \ |
|
|
ole32 \ |
|
@@ -54,69 +75,30 @@ wineasio_dll_DLLS = odbc32 \ |
|
|
wineasio_dll_LIBRARY_PATH= |
|
|
wineasio_dll_LIBRARY_PATH= |
|
|
wineasio_dll_LIBRARIES= uuid |
|
|
wineasio_dll_LIBRARIES= uuid |
|
|
|
|
|
|
|
|
wineasio_dll_OBJS = $(wineasio_dll_C_SRCS:.c=.o) \ |
|
|
|
|
|
$(wineasio_dll_RC_SRCS:.rc=.res) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wineasio_dll_OBJS = $(wineasio_dll_C_SRCS:%.c=build$(M)/%.c.o) |
|
|
|
|
|
|
|
|
### Global source lists |
|
|
### Global source lists |
|
|
|
|
|
|
|
|
C_SRCS = $(wineasio_dll_C_SRCS) |
|
|
C_SRCS = $(wineasio_dll_C_SRCS) |
|
|
RC_SRCS = $(wineasio_dll_RC_SRCS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Tools |
|
|
|
|
|
|
|
|
|
|
|
CC = gcc |
|
|
|
|
|
WINECC = winegcc |
|
|
|
|
|
RC = wrc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Generic targets |
|
|
### Generic targets |
|
|
|
|
|
|
|
|
all: rtaudio/include/asio.h $(SUBDIRS) $(DLLS:%=%.so) $(EXES:%=%.so) |
|
|
|
|
|
|
|
|
all: rtaudio/include/asio.h $(DLLS:%=build$(M)/%.so) |
|
|
|
|
|
|
|
|
### Build rules |
|
|
### Build rules |
|
|
|
|
|
|
|
|
.PHONY: all clean dummy |
|
|
|
|
|
|
|
|
|
|
|
$(SUBDIRS): dummy |
|
|
|
|
|
@cd $@ && $(MAKE) |
|
|
|
|
|
|
|
|
.PHONY: all |
|
|
|
|
|
|
|
|
# Implicit rules |
|
|
# Implicit rules |
|
|
|
|
|
|
|
|
.SUFFIXES: .cpp .rc .res |
|
|
|
|
|
DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS) |
|
|
DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS) |
|
|
|
|
|
|
|
|
.c.o: |
|
|
|
|
|
|
|
|
build$(M)/%.c.o: %.c |
|
|
|
|
|
@$(shell mkdir -p build$(M)) |
|
|
$(CC) -c $(DEFINCL) $(CFLAGS) $(CEXTRA) -o $@ $< |
|
|
$(CC) -c $(DEFINCL) $(CFLAGS) $(CEXTRA) -o $@ $< |
|
|
|
|
|
|
|
|
.rc.res: |
|
|
|
|
|
$(RC) $(RCFLAGS) $(RCEXTRA) $(DEFINCL) -fo$@ $< |
|
|
|
|
|
|
|
|
|
|
|
# Rules for cleaning |
|
|
|
|
|
|
|
|
|
|
|
CLEAN_FILES = y.tab.c y.tab.h lex.yy.c core *.orig *.rej \ |
|
|
|
|
|
\\\#*\\\# *~ *% .\\\#* |
|
|
|
|
|
|
|
|
|
|
|
clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) |
|
|
|
|
|
$(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(C_SRCS:.c=.o) |
|
|
|
|
|
$(RM) $(DLLS:%=%.so) $(EXES:%=%.so) $(EXES:%.exe=%) |
|
|
|
|
|
|
|
|
|
|
|
$(SUBDIRS:%=%/__clean__): dummy |
|
|
|
|
|
cd `dirname $@` && $(MAKE) clean |
|
|
|
|
|
|
|
|
|
|
|
$(EXTRASUBDIRS:%=%/__clean__): dummy |
|
|
|
|
|
-cd `dirname $@` && $(RM) $(CLEAN_FILES) |
|
|
|
|
|
|
|
|
|
|
|
distclean:: clean |
|
|
|
|
|
$(RM) asio.h |
|
|
|
|
|
|
|
|
|
|
|
### Target specific build rules |
|
|
### Target specific build rules |
|
|
DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH) |
|
|
DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH) |
|
|
|
|
|
|
|
|
$(wineasio_dll_MODULE).so: $(wineasio_dll_OBJS) |
|
|
|
|
|
|
|
|
build$(M)/$(wineasio_dll_MODULE).so: $(wineasio_dll_OBJS) |
|
|
$(WINECC) $(wineasio_dll_LDFLAGS) -o $@ $(wineasio_dll_OBJS) $(wineasio_dll_LIBRARY_PATH) $(DEFLIB) $(wineasio_dll_DLLS:%=-l%) $(wineasio_dll_LIBRARIES:%=-l%) |
|
|
$(WINECC) $(wineasio_dll_LDFLAGS) -o $@ $(wineasio_dll_OBJS) $(wineasio_dll_LIBRARY_PATH) $(DEFLIB) $(wineasio_dll_DLLS:%=-l%) $(wineasio_dll_LIBRARIES:%=-l%) |
|
|
|
|
|
|
|
|
install: |
|
|
|
|
|
if [ -d $(PREFIX)/lib/wine ]; then cp wineasio.dll.so $(DESTDIR)$(PREFIX)/lib/wine; else cp wineasio.dll.so $(DESTDIR)$(PREFIX)/lib/wine; fi |
|
|
|