|
- #!/usr/bin/make -f
- # Makefile for juce_audio_formats #
- # ------------------------------- #
- # Created by falkTX
- #
-
- CWD=../..
- MODULENAME=juce_audio_formats
- include ../Makefile.mk
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- BUILD_CXX_FLAGS += $(JUCE_AUDIO_FORMATS_FLAGS) -w
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- ifeq ($(MACOS),true)
- OBJS = $(OBJDIR)/$(MODULENAME).mm.o
- OBJS_posix32 = $(OBJDIR)/$(MODULENAME).mm.posix32.o
- OBJS_posix64 = $(OBJDIR)/$(MODULENAME).mm.posix64.o
- else
- OBJS = $(OBJDIR)/$(MODULENAME).cpp.o
- OBJS_posix32 = $(OBJDIR)/$(MODULENAME).cpp.posix32.o
- OBJS_posix64 = $(OBJDIR)/$(MODULENAME).cpp.posix64.o
- endif
- OBJS_win32 = $(OBJDIR)/$(MODULENAME).cpp.win32.o
- OBJS_win64 = $(OBJDIR)/$(MODULENAME).cpp.win64.o
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- all: $(MODULEDIR)/$(MODULENAME).a
- posix32: $(MODULEDIR)/$(MODULENAME).posix32.a
- posix64: $(MODULEDIR)/$(MODULENAME).posix64.a
- win32: $(MODULEDIR)/$(MODULENAME).win32.a
- win64: $(MODULEDIR)/$(MODULENAME).win64.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 $@ $^
-
- $(MODULEDIR)/$(MODULENAME).posix32.a: $(OBJS_posix32)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).posix32.a"
- @rm -f $@
- @$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).posix64.a: $(OBJS_posix64)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).posix64.a"
- @rm -f $@
- @$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).win32.a: $(OBJS_win32)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).win32.a"
- @rm -f $@
- @$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).win64.a: $(OBJS_win64)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).win64.a"
- @rm -f $@
- @$(AR) crs $@ $^
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/$(MODULENAME).cpp.o: $(MODULENAME).cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -MMD -c -o $@
-
- $(OBJDIR)/$(MODULENAME).cpp.%32.o: $(MODULENAME).cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (32bit)"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -MMD -c -o $@
-
- $(OBJDIR)/$(MODULENAME).cpp.%64.o: $(MODULENAME).cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (64bit)"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -MMD -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -MMD -ObjC++ -c -o $@
-
- $(OBJDIR)/$(MODULENAME).mm.%32.o: $(MODULENAME).cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (32bit)"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -MMD -ObjC++ -c -o $@
-
- $(OBJDIR)/$(MODULENAME).mm.%64.o: $(MODULENAME).cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (64bit)"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -MMD -ObjC++ -c -o $@
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- ifeq ($(MACOS),true)
- -include $(OBJDIR)/$(MODULENAME).mm.d
- -include $(OBJDIR)/$(MODULENAME).mm.posix32.d
- -include $(OBJDIR)/$(MODULENAME).mm.posix64.d
- else
- -include $(OBJDIR)/$(MODULENAME).cpp.d
- -include $(OBJDIR)/$(MODULENAME).cpp.posix32.d
- -include $(OBJDIR)/$(MODULENAME).cpp.posix64.d
- endif
- -include $(OBJDIR)/$(MODULENAME).cpp.win32.d
- -include $(OBJDIR)/$(MODULENAME).cpp.win64.d
-
- # ----------------------------------------------------------------------------------------------------------------------------
|