#!/usr/bin/make -f # Makefile for hylia # # ------------------ # # Created by falkTX # CWD=../.. MODULENAME=hylia include ../Makefile.mk # ---------------------------------------------------------------------------------------------------------------------------- BUILD_CXX_FLAGS += $(HYLIA_FLAGS) -I$(CWD) -Ilink BUILD_CXX_FLAGS += -Wno-multichar -Wno-unused-parameter -Wno-unused-variable -Wno-uninitialized BUILD_CXX_FLAGS += -Wno-missing-field-initializers # ---------------------------------------------------------------------------------------------------------------------------- OBJS = $(OBJDIR)/hylia.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) # ----------------------------------------------------------------------------------------------------------------------------