Advertisement
Guest User

Makefile for WineASIO Ubuntu 13.04 amd64

a guest
May 18th, 2013
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 2.88 KB | None | 0 0
  1. ### Generated by Winemaker
  2.  
  3. PREFIX                = /usr
  4. SRCDIR                = .
  5. SUBDIRS               =
  6. DLLS                  = wineasio.dll
  7. EXES                  =
  8.  
  9.  
  10.  
  11. ### Common settings
  12.  
  13. CEXTRA                = -m64 -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
  14. CXXEXTRA              = -m64 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
  15. RCEXTRA               =
  16. INCLUDE_PATH          = -I. -I/usr/include -I$(PREFIX)/include -I$(PREFIX)/include/wine -I$(PREFIX)/include/wine/windows
  17. DLL_PATH              =
  18. LIBRARY_PATH          =
  19. LIBRARIES             = -ljack
  20.  
  21.  
  22. ### wineasio.dll sources and settings
  23.  
  24. wineasio_dll_MODULE   = wineasio.dll
  25. wineasio_dll_C_SRCS   = asio.c \
  26.             main.c \
  27.             regsvr.c
  28. wineasio_dll_CXX_SRCS =
  29. wineasio_dll_RC_SRCS  =
  30. wineasio_dll_LDFLAGS  = -shared \
  31.             -m64 \
  32.             $(wineasio_dll_MODULE:%=%.spec) \
  33.             -mnocygwin \
  34.             -L/usr/lib/x86_64-linux-gnu/wine \
  35.             -L/usr/lib/x86_64-linux-gnu
  36. wineasio_dll_DLL_PATH =
  37. wineasio_dll_DLLS     = odbc32 \
  38.             ole32 \
  39.             winmm
  40. wineasio_dll_LIBRARY_PATH=
  41. wineasio_dll_LIBRARIES= uuid
  42.  
  43. wineasio_dll_OBJS     = $(wineasio_dll_C_SRCS:.c=.o) \
  44.             $(wineasio_dll_CXX_SRCS:.cpp=.o) \
  45.             $(wineasio_dll_RC_SRCS:.rc=.res)
  46.  
  47.  
  48.  
  49. ### Global source lists
  50.  
  51. C_SRCS                = $(wineasio_dll_C_SRCS)
  52. CXX_SRCS              = $(wineasio_dll_CXX_SRCS)
  53. RC_SRCS               = $(wineasio_dll_RC_SRCS)
  54.  
  55.  
  56. ### Tools
  57.  
  58. CC = gcc
  59. CXX = g++
  60. WINECC = winegcc
  61. RC = wrc
  62.  
  63.  
  64. ### Generic targets
  65.  
  66. all: asio.h $(SUBDIRS) $(DLLS:%=%.so) $(EXES:%=%.so)
  67.  
  68. ### Build rules
  69.  
  70. .PHONY: all clean dummy
  71.  
  72. $(SUBDIRS): dummy
  73.     @cd $@ && $(MAKE)
  74.  
  75. # Implicit rules
  76.  
  77. .SUFFIXES: .cpp .rc .res
  78. DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS)
  79.  
  80. .c.o:
  81.     $(CC) -c $(DEFINCL) $(CFLAGS) $(CEXTRA) -o $@ $<
  82.  
  83. .cpp.o:
  84.     $(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
  85.  
  86. .cxx.o:
  87.     $(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
  88.  
  89. .rc.res:
  90.     $(RC) $(RCFLAGS) $(RCEXTRA) $(DEFINCL) -fo$@ $<
  91.  
  92. # Rules for cleaning
  93.  
  94. CLEAN_FILES     = y.tab.c y.tab.h lex.yy.c core *.orig *.rej \
  95.                   \\\#*\\\# *~ *% .\\\#*
  96.  
  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=%)
  100.  
  101. $(SUBDIRS:%=%/__clean__): dummy
  102.     cd `dirname $@` && $(MAKE) clean
  103.  
  104. $(EXTRASUBDIRS:%=%/__clean__): dummy
  105.     -cd `dirname $@` && $(RM) $(CLEAN_FILES)
  106.  
  107. ### Target specific build rules
  108. DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH)
  109.  
  110. $(wineasio_dll_MODULE).so: $(wineasio_dll_OBJS)
  111.     $(WINECC) $(wineasio_dll_LDFLAGS) -o $@ $(wineasio_dll_OBJS) $(wineasio_dll_LIBRARY_PATH) $(DEFLIB) $(wineasio_dll_DLLS:%=-l%) $(wineasio_dll_LIBRARIES:%=-l%)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement