Audio plugin host https://kx.studio/carla
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.

50 lines
952B

  1. #!/usr/bin/make -f
  2. # Makefile for dgl #
  3. # ---------------- #
  4. # Created by falkTX
  5. #
  6. include ../../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -fvisibility=hidden -fPIC
  9. BUILD_CXX_FLAGS += -I.
  10. OBJS = \
  11. src/App.cpp.o \
  12. src/Image.cpp.o \
  13. src/ImageAboutWindow.cpp.o \
  14. src/ImageButton.cpp.o \
  15. src/ImageKnob.cpp.o \
  16. src/ImageSlider.cpp.o \
  17. src/Geometry.cpp.o \
  18. src/Widget.cpp.o \
  19. src/Window.cpp.o
  20. STATIC = ../../dgl.a
  21. # --------------------------------------------------------------
  22. all: $(STATIC)
  23. clean:
  24. rm -f $(OBJS) $(SHARED) $(STATIC)
  25. debug:
  26. $(MAKE) DEBUG=true
  27. # --------------------------------------------------------------
  28. %.cpp.o: %.cpp
  29. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  30. $(STATIC): $(OBJS)
  31. $(AR) rs $@ $^
  32. ../../dgl.dll: $(OBJS)
  33. $(CXX) $^ -shared $(LINK_FLAGS) -lopengl32 -lgdi32 -o $@
  34. ../../dgl.so: $(OBJS)
  35. $(CXX) $^ -shared $(LINK_FLAGS) -lX11 -lGL -lGLU -o $@