|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #!/usr/bin/make -f
- # Makefile for rtaudio #
- # -------------------- #
- # Created by falkTX
- #
-
- CWD=../..
- MODULENAME=rtaudio
- include ../Makefile.mk
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- BUILD_CXX_FLAGS += $(RTAUDIO_FLAGS) -I$(CWD) -w
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- OBJS = $(OBJDIR)/RtAudio.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"
- @rm -f $@
- @$(AR) crs $@ $^
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/%.cpp.o: %.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
-
- -include $(OBJS:%.o=%.d)
-
- # ----------------------------------------------------------------------------------------------------------------------------
|