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.

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