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.

Makefile 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/usr/bin/make -f
  2. # Makefile for hylia #
  3. # ------------------ #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=hylia
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_CXX_FLAGS += $(HYLIA_FLAGS) -I$(CWD) -I$(CWD)/modules -Ilink
  11. BUILD_CXX_FLAGS += -Wno-missing-field-initializers -Wno-multichar -Wno-uninitialized -Wno-unknown-pragmas
  12. # -Wno-unused-parameter
  13. # -Wno-unused-variable
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. OBJS = $(OBJDIR)/hylia.cpp.o
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. all: $(MODULEDIR)/$(MODULENAME).a
  18. # ---------------------------------------------------------------------------------------------------------------------
  19. clean:
  20. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  21. debug:
  22. $(MAKE) DEBUG=true
  23. # ---------------------------------------------------------------------------------------------------------------------
  24. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  25. -@mkdir -p $(MODULEDIR)
  26. @echo "Creating $(MODULENAME).a"
  27. @rm -f $@
  28. @$(AR) crs $@ $^
  29. # ---------------------------------------------------------------------------------------------------------------------
  30. $(OBJDIR)/%.cpp.o: %.cpp
  31. -@mkdir -p $(OBJDIR)
  32. @echo "Compiling $<"
  33. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  34. -include $(OBJS:%.o=%.d)
  35. # ---------------------------------------------------------------------------------------------------------------------