|
- #!/usr/bin/make -f
- # Makefile for sfzero #
- # ------------------- #
- # Created by falkTX
- #
-
- CWD=../..
- MODULENAME=sfzero
- include ../Makefile.mk
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- BUILD_CXX_FLAGS += -I$(CWD)/modules
-
- ifneq ($(HAIKU),true)
- ifneq ($(WASM),true)
- BUILD_CXX_FLAGS += -pthread
- endif
- endif
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- OBJS = $(OBJDIR)/SFZero.cpp.o
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- all: $(MODULEDIR)/$(MODULENAME).a
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- clean:
- rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
-
- debug:
- $(MAKE) DEBUG=true
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).a"
- $(SILENT)rm -f $@
- $(SILENT)$(AR) crs $@ $^
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/%.cpp.o: %.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
-
- -include $(OBJS:%.o=%.d)
-
- # ---------------------------------------------------------------------------------------------------------------------
|