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.

74 lines
1.7KB

  1. #!/usr/bin/make -f
  2. # Makefile for MOD Desktop ASIO #
  3. # ----------------------------- #
  4. # Created by falkTX
  5. #
  6. ### Tools
  7. CC ?= gcc
  8. ### Common settings
  9. CFLAGS += $(shell pkg-config --cflags jack)
  10. CFLAGS += -std=gnu11
  11. CFLAGS += -D_REENTRANT -DNATIVE_INT64
  12. CFLAGS += -fPIC
  13. CFLAGS += -Wall
  14. CFLAGS += -pipe
  15. CFLAGS += -fno-strict-aliasing -Wwrite-strings -Wpointer-arith
  16. CFLAGS += -Werror=implicit-function-declaration
  17. CFLAGS += -I. -Irtaudio/include
  18. # Debug or Release
  19. ifeq ($(DEBUG),true)
  20. CFLAGS += -O0 -DDEBUG -g -D__WINESRC__
  21. else
  22. CFLAGS += -O2 -DNDEBUG -fvisibility=hidden
  23. endif
  24. # CFLAGS += -fdata-sections -ffunction-sections
  25. # CFLAGS += -fno-common
  26. # CFLAGS += -fvisibility=hidden
  27. # CFLAGS += -fno-stack-protector -U_FORTIFY_SOURCE -Wp,-U_FORTIFY_SOURCE
  28. # CFLAGS += -fno-gnu-unique
  29. # CFLAGS += -ffast-math -fno-finite-math-only
  30. # CFLAGS += -Os -DNDEBUG=1 -fomit-frame-pointer
  31. # CFLAGS += -mtune=generic -msse -msse2 -mfpmath=sse
  32. # CFLAGS += -D__STDC_FORMAT_MACROS=1
  33. # CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
  34. # CFLAGS += -mstackrealign
  35. # CFLAGS += -posix
  36. # LDFLAGS += -Wl,--gc-sections,--no-undefined
  37. # LDFLAGS += -Wl,-O1
  38. # LDFLAGS += -Wl,--as-needed,--strip-all
  39. # LDFLAGS += -static -static-libgcc -static-libstdc++ -Wl,-Bstatic
  40. ### Global source lists
  41. SRCS = asio.c main.c regsvr.c JackBridge.c
  42. OBJS = $(SRCS:%.c=build/%.c.o)
  43. ### Generic targets
  44. all: mod-desktop-asio.dll
  45. clean:
  46. rm -f $(OBJS) mod-desktop-asio.dll
  47. rm -rf build
  48. ### Build rules
  49. .PHONY: all
  50. # Implicit rules
  51. build/%.c.o: %.c
  52. @$(shell mkdir -p build)
  53. $(CC) -c $(INCLUDE_PATH) $(CFLAGS) $(CEXTRA) -o $@ $<
  54. ### Target specific build rules
  55. mod-desktop-asio.dll: $(OBJS)
  56. $(CC) $^ $(CFLAGS) $(LDFLAGS) -shared mod-desktop-asio.dll.def -lodbc32 -lole32 -luuid -lwinmm -o $@