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.

42 lines
992B

  1. include ../../dep/yac/install_linux.mk
  2. TARGET=debug_lglw.so
  3. ALL_OBJ= \
  4. plugin.o \
  5. $(VSVR_BASE_DIR)/dep/lglw/lglw_linux.o
  6. .cpp.o:
  7. $(CPP) $(CPPFLAGS) $(OPTFLAGS_PLUGIN) -I"$(VSVR_BASE_DIR)/dep/yac/" -I"$(VST2_SDK_DIR)" -I"$(VSVR_BASE_DIR)/dep/lglw/" -shared -fPIC -c "$<" -o"$@"
  8. .c.o:
  9. $(CC) $(CFLAGS) $(OPTFLAGS_PLUGIN) -I"$(VSVR_BASE_DIR)/dep/yac/" -I"$(VST2_SDK_DIR)" -I"$(VSVR_BASE_DIR)/dep/lglw/" -shared -fPIC -c "$<" -o"$@"
  10. .PHONY: bin
  11. bin: $(ALL_OBJ)
  12. $(CPP) -shared -o $(TARGET) -Wl,-soname,$(TARGET) -mtls-dialect=gnu2 $(ALL_OBJ) -ldl -lGL -L/usr/lib -lm -lpthread
  13. .PHONY: clean
  14. clean:
  15. rm -f $(TARGET) $(ALL_OBJ)
  16. .PHONY: all
  17. all:
  18. make -f makefile.linux clean
  19. make -f makefile.linux bin
  20. make -f makefile.linux install
  21. .PHONY: install
  22. install:
  23. ifeq ($(USER),cameron)
  24. cp $(TARGET) /home/cameron/.local/share/VST/
  25. endif
  26. ifeq ($(USER),bsp)
  27. # copy to Qtractor VST search path
  28. cp $(TARGET) /usr/local/lib/vst/
  29. endif
  30. # (todo) include ../../dep/yac/sharedlib_linux.mk