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.

56 lines
1.3KB

  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. EXTRAFLAGS+=-I"$(VST2_SDK_DIR)" -I"$(VSVR_BASE_DIR)/dep/lglw/"
  7. EXTRAFLAGS+= -march=haswell
  8. EXTRAFLAGS+= `pkg-config gtk+-2.0 --cflags`
  9. EXTRALIBS+= -march=haswell
  10. EXTRALIBS+= `pkg-config gtk+-2.0 --libs`
  11. EXTRALIBS+= -lGL -ldl
  12. #.cpp.o:
  13. ##-fPIC
  14. # $(CPP) $(CPPFLAGS) $(OPTFLAGS_PLUGIN) -I"$(VSVR_BASE_DIR)/dep/yac/" -I"$(VST2_SDK_DIR)" -I"$(VSVR_BASE_DIR)/dep/lglw/" -shared -c "$<" -o"$@"
  15. #.c.o:
  16. ##-fPIC
  17. # $(CC) $(CFLAGS) $(OPTFLAGS_PLUGIN) -I"$(VSVR_BASE_DIR)/dep/yac/" -I"$(VST2_SDK_DIR)" -I"$(VSVR_BASE_DIR)/dep/lglw/" -shared -c "$<" -o"$@"
  18. #.PHONY: bin
  19. #bin: $(ALL_OBJ)
  20. # $(CPP) -shared -o $(TARGET) -Wl,-soname,$(TARGET) $(ALL_OBJ) -ldl -lGL -L/usr/lib -lm -lpthread
  21. #-mtls-dialect=gnu2
  22. # $(STRIP) $(TARGET)
  23. .PHONY: clean
  24. clean:
  25. rm -f $(TARGET) $(ALL_OBJ)
  26. .PHONY: all
  27. all:
  28. make -f makefile.linux clean
  29. make -f makefile.linux bin
  30. make -f makefile.linux install
  31. .PHONY: install
  32. install:
  33. ifeq ($(USER),cameron)
  34. cp $(TARGET) /home/cameron/.local/share/VST/
  35. endif
  36. ifeq ($(USER),bsp)
  37. # copy to Qtractor VST search path
  38. #cp $(TARGET) /usr/local/lib/vst/
  39. cp $(TARGET) ../../vst2_bin/
  40. endif
  41. # (todo) include ../../dep/yac/sharedlib_linux.mk
  42. include ../../dep/yac/sharedlib_linux.mk