ASIO to JACK driver for WINE
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
2.9KB

  1. ### Generated by Winemaker
  2. PREFIX = /usr
  3. SRCDIR = .
  4. SUBDIRS =
  5. DLLS = wineasio.dll
  6. EXES =
  7. ### Common settings
  8. CEXTRA = -m32 -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
  9. CXXEXTRA = -m32 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
  10. RCEXTRA =
  11. INCLUDE_PATH = -I. -I/usr/include -I$(PREFIX)/include -I$(PREFIX)/include/wine -I$(PREFIX)/include/wine/windows
  12. DLL_PATH =
  13. LIBRARY_PATH =
  14. LIBRARIES = -ljack
  15. ### wineasio.dll sources and settings
  16. wineasio_dll_MODULE = wineasio.dll
  17. wineasio_dll_C_SRCS = asio.c \
  18. main.c \
  19. regsvr.c
  20. wineasio_dll_CXX_SRCS =
  21. wineasio_dll_RC_SRCS =
  22. wineasio_dll_LDFLAGS = -shared \
  23. -m32 \
  24. $(wineasio_dll_MODULE:%=%.spec) \
  25. -mnocygwin \
  26. -L/usr/lib32/wine \
  27. -L/usr/lib32
  28. wineasio_dll_DLL_PATH =
  29. wineasio_dll_DLLS = odbc32 \
  30. ole32 \
  31. winmm
  32. wineasio_dll_LIBRARY_PATH=
  33. wineasio_dll_LIBRARIES= uuid
  34. wineasio_dll_OBJS = $(wineasio_dll_C_SRCS:.c=.o) \
  35. $(wineasio_dll_CXX_SRCS:.cpp=.o) \
  36. $(wineasio_dll_RC_SRCS:.rc=.res)
  37. ### Global source lists
  38. C_SRCS = $(wineasio_dll_C_SRCS)
  39. CXX_SRCS = $(wineasio_dll_CXX_SRCS)
  40. RC_SRCS = $(wineasio_dll_RC_SRCS)
  41. ### Tools
  42. CC = gcc
  43. CXX = g++
  44. WINECC = winegcc
  45. RC = wrc
  46. ### Generic targets
  47. all: asio.h $(SUBDIRS) $(DLLS:%=%.so) $(EXES:%=%.so)
  48. ### Build rules
  49. .PHONY: all clean dummy
  50. $(SUBDIRS): dummy
  51. @cd $@ && $(MAKE)
  52. # Implicit rules
  53. .SUFFIXES: .cpp .rc .res
  54. DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS)
  55. .c.o:
  56. $(CC) -c $(DEFINCL) $(CFLAGS) $(CEXTRA) -o $@ $<
  57. .cpp.o:
  58. $(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
  59. .cxx.o:
  60. $(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
  61. .rc.res:
  62. $(RC) $(RCFLAGS) $(RCEXTRA) $(DEFINCL) -fo$@ $<
  63. # Rules for cleaning
  64. CLEAN_FILES = y.tab.c y.tab.h lex.yy.c core *.orig *.rej \
  65. \\\#*\\\# *~ *% .\\\#*
  66. clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
  67. $(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(C_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o)
  68. $(RM) $(DLLS:%=%.so) $(EXES:%=%.so) $(EXES:%.exe=%)
  69. $(SUBDIRS:%=%/__clean__): dummy
  70. cd `dirname $@` && $(MAKE) clean
  71. $(EXTRASUBDIRS:%=%/__clean__): dummy
  72. -cd `dirname $@` && $(RM) $(CLEAN_FILES)
  73. distclean:: clean
  74. $(RM) asio.h
  75. ### Target specific build rules
  76. DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH)
  77. $(wineasio_dll_MODULE).so: $(wineasio_dll_OBJS)
  78. $(WINECC) $(wineasio_dll_LDFLAGS) -o $@ $(wineasio_dll_OBJS) $(wineasio_dll_LIBRARY_PATH) $(DEFLIB) $(wineasio_dll_DLLS:%=-l%) $(wineasio_dll_LIBRARIES:%=-l%)
  79. install:
  80. if [ -d $(PREFIX)/lib32/wine ]; then cp wineasio.dll.so $(DESTDIR)$(PREFIX)/lib32/wine; else cp wineasio.dll.so $(DESTDIR)$(PREFIX)/lib/wine; fi