# GNU Make project makefile autogenerated by Premake ifndef config config=release_x64 endif ifndef verbose SILENT = @ endif .PHONY: clean prebuild prelink ifeq ($(config),release_x64) ifeq ($(origin CC), default) CC = clang endif ifeq ($(origin CXX), default) CXX = clang++ endif ifeq ($(origin AR), default) AR = ar endif TARGETDIR = ../lib/Release/x64 TARGET = $(TARGETDIR)/libnfd.a OBJDIR = obj/x64/Release/nfd DEFINES += -DNDEBUG INCLUDES += -I../../src/include FORCE_INCLUDE += ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -Wall -Wextra -fno-exceptions ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -Wall -Wextra -fno-exceptions ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) LIBS += LDDEPS += ALL_LDFLAGS += $(LDFLAGS) -m64 LINKCMD = $(AR) -rcs "$@" $(OBJECTS) define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef all: prebuild prelink $(TARGET) @: endif ifeq ($(config),debug_x64) ifeq ($(origin CC), default) CC = clang endif ifeq ($(origin CXX), default) CXX = clang++ endif ifeq ($(origin AR), default) AR = ar endif TARGETDIR = ../lib/Debug/x64 TARGET = $(TARGETDIR)/libnfd_d.a OBJDIR = obj/x64/Debug/nfd DEFINES += -DDEBUG INCLUDES += -I../../src/include FORCE_INCLUDE += ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g -Wall -Wextra -fno-exceptions ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g -Wall -Wextra -fno-exceptions ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) LIBS += LDDEPS += ALL_LDFLAGS += $(LDFLAGS) -m64 LINKCMD = $(AR) -rcs "$@" $(OBJECTS) define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef all: prebuild prelink $(TARGET) @: endif OBJECTS := \ $(OBJDIR)/nfd_cocoa.o \ $(OBJDIR)/nfd_common.o \ RESOURCES := \ CUSTOMFILES := \ SHELLTYPE := posix ifeq (.exe,$(findstring .exe,$(ComSpec))) SHELLTYPE := msdos endif $(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR) @echo Linking nfd $(SILENT) $(LINKCMD) $(POSTBUILDCMDS) $(CUSTOMFILES): | $(OBJDIR) $(TARGETDIR): @echo Creating $(TARGETDIR) ifeq (posix,$(SHELLTYPE)) $(SILENT) mkdir -p $(TARGETDIR) else $(SILENT) mkdir $(subst /,\\,$(TARGETDIR)) endif $(OBJDIR): @echo Creating $(OBJDIR) ifeq (posix,$(SHELLTYPE)) $(SILENT) mkdir -p $(OBJDIR) else $(SILENT) mkdir $(subst /,\\,$(OBJDIR)) endif clean: @echo Cleaning nfd ifeq (posix,$(SHELLTYPE)) $(SILENT) rm -f $(TARGET) $(SILENT) rm -rf $(OBJDIR) else $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) endif prebuild: $(PREBUILDCMDS) prelink: $(PRELINKCMDS) ifneq (,$(PCH)) $(OBJECTS): $(GCH) $(PCH) | $(OBJDIR) $(GCH): $(PCH) | $(OBJDIR) @echo $(notdir $<) $(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<" else $(OBJECTS): | $(OBJDIR) endif $(OBJDIR)/nfd_cocoa.o: ../../src/nfd_cocoa.m @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/nfd_common.o: ../../src/nfd_common.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" -include $(OBJECTS:%.o=%.d) ifneq (,$(PCH)) -include $(OBJDIR)/$(notdir $(PCH)).d endif