#!/usr/bin/make -f # Makefile for juce_gui_basics # # ---------------------------- # # Created by falkTX # include ../../Makefile.mk # -------------------------------------------------------------- BUILD_CXX_FLAGS += $(JUCE_GUI_BASICS_FLAGS) -I. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS) -L.. -ljuce_data_structures -ljuce_graphics -ljuce_events -ljuce_core ifeq ($(MACOS),true) BUILD_CXX_FLAGS += -objc++ OBJS = juce_gui_basics.mm.o OBJS_posix32 = juce_gui_basics.mm.posix32.o OBJS_posix64 = juce_gui_basics.mm.posix64.o else OBJS = juce_gui_basics.cpp.o OBJS_posix32 = juce_gui_basics.cpp.posix32.o OBJS_posix64 = juce_gui_basics.cpp.posix64.o endif OBJS_win32 = juce_gui_basics.cpp.win32.o OBJS_win64 = juce_gui_basics.cpp.win64.o # -------------------------------------------------------------- all: ../juce_gui_basics.a posix32: ../juce_gui_basics.posix32.a posix64: ../juce_gui_basics.posix64.a win32: ../juce_gui_basics.win32.a win64: ../juce_gui_basics.win64.a # -------------------------------------------------------------- ../juce_gui_basics.a: $(OBJS) $(RM) $@ $(AR) crs $@ $^ ../juce_gui_basics.posix32.a: $(OBJS_posix32) $(RM) $@ $(AR) crs $@ $^ ../juce_gui_basics.posix64.a: $(OBJS_posix64) $(RM) $@ $(AR) crs $@ $^ ../juce_gui_basics.win32.a: $(OBJS_win32) $(RM) $@ $(AR) crs $@ $^ ../juce_gui_basics.win64.a: $(OBJS_win64) $(RM) $@ $(AR) crs $@ $^ ../libjuce_gui_basics.dll: $(OBJS) $(CXX) $^ -shared $(LINK_FLAGS) -o $@ ../libjuce_gui_basics.dylib: $(OBJS) $(CXX) $^ -dynamiclib $(LINK_FLAGS) -o $@ ../libjuce_gui_basics.so: $(OBJS) $(CXX) $^ -shared $(LINK_FLAGS) -o $@ # -------------------------------------------------------------- %.cpp.o: %.cpp $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ %.mm.o: %.mm $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ %.posix32.o: % $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@ %.posix64.o: % $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@ %.win32.o: % $(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@ %.win64.o: % $(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@ # -------------------------------------------------------------- clean: $(RM) *.o ../juce_gui_basics*.a ../libjuce_gui_basics.* debug: $(MAKE) DEBUG=true # --------------------------------------------------------------