-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
4,468 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# GNU Make workspace makefile autogenerated by Premake | ||
|
||
.NOTPARALLEL: | ||
|
||
ifndef config | ||
config=release_x64 | ||
endif | ||
|
||
ifndef verbose | ||
SILENT = @ | ||
endif | ||
|
||
ifeq ($(config),release_x64) | ||
nfd_config = release_x64 | ||
test_opendialog_config = release_x64 | ||
test_opendialogmultiple_config = release_x64 | ||
test_savedialog_config = release_x64 | ||
endif | ||
ifeq ($(config),release_x86) | ||
nfd_config = release_x86 | ||
test_opendialog_config = release_x86 | ||
test_opendialogmultiple_config = release_x86 | ||
test_savedialog_config = release_x86 | ||
endif | ||
ifeq ($(config),debug_x64) | ||
nfd_config = debug_x64 | ||
test_opendialog_config = debug_x64 | ||
test_opendialogmultiple_config = debug_x64 | ||
test_savedialog_config = debug_x64 | ||
endif | ||
ifeq ($(config),debug_x86) | ||
nfd_config = debug_x86 | ||
test_opendialog_config = debug_x86 | ||
test_opendialogmultiple_config = debug_x86 | ||
test_savedialog_config = debug_x86 | ||
endif | ||
|
||
PROJECTS := nfd test_opendialog test_opendialogmultiple test_savedialog | ||
|
||
.PHONY: all clean help $(PROJECTS) | ||
|
||
all: $(PROJECTS) | ||
|
||
nfd: | ||
ifneq (,$(nfd_config)) | ||
@echo "==== Building nfd ($(nfd_config)) ====" | ||
@${MAKE} --no-print-directory -C . -f nfd.make config=$(nfd_config) | ||
endif | ||
|
||
test_opendialog: nfd | ||
ifneq (,$(test_opendialog_config)) | ||
@echo "==== Building test_opendialog ($(test_opendialog_config)) ====" | ||
@${MAKE} --no-print-directory -C . -f test_opendialog.make config=$(test_opendialog_config) | ||
endif | ||
|
||
test_opendialogmultiple: nfd | ||
ifneq (,$(test_opendialogmultiple_config)) | ||
@echo "==== Building test_opendialogmultiple ($(test_opendialogmultiple_config)) ====" | ||
@${MAKE} --no-print-directory -C . -f test_opendialogmultiple.make config=$(test_opendialogmultiple_config) | ||
endif | ||
|
||
test_savedialog: nfd | ||
ifneq (,$(test_savedialog_config)) | ||
@echo "==== Building test_savedialog ($(test_savedialog_config)) ====" | ||
@${MAKE} --no-print-directory -C . -f test_savedialog.make config=$(test_savedialog_config) | ||
endif | ||
|
||
clean: | ||
@${MAKE} --no-print-directory -C . -f nfd.make clean | ||
@${MAKE} --no-print-directory -C . -f test_opendialog.make clean | ||
@${MAKE} --no-print-directory -C . -f test_opendialogmultiple.make clean | ||
@${MAKE} --no-print-directory -C . -f test_savedialog.make clean | ||
|
||
help: | ||
@echo "Usage: make [config=name] [target]" | ||
@echo "" | ||
@echo "CONFIGURATIONS:" | ||
@echo " release_x64" | ||
@echo " release_x86" | ||
@echo " debug_x64" | ||
@echo " debug_x86" | ||
@echo "" | ||
@echo "TARGETS:" | ||
@echo " all (default)" | ||
@echo " clean" | ||
@echo " nfd" | ||
@echo " test_opendialog" | ||
@echo " test_opendialogmultiple" | ||
@echo " test_savedialog" | ||
@echo "" | ||
@echo "For more information, see http://industriousone.com/premake/quick-start" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
# 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) | ||
RESCOMP = windres | ||
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 `pkg-config --cflags gtk+-3.0` | ||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) | ||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||
LIBS += | ||
LDDEPS += | ||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 -s | ||
LINKCMD = $(AR) -rcs "$@" $(OBJECTS) | ||
define PREBUILDCMDS | ||
endef | ||
define PRELINKCMDS | ||
endef | ||
define POSTBUILDCMDS | ||
endef | ||
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) | ||
@: | ||
|
||
endif | ||
|
||
ifeq ($(config),release_x86) | ||
RESCOMP = windres | ||
TARGETDIR = ../lib/Release/x86 | ||
TARGET = $(TARGETDIR)/libnfd.a | ||
OBJDIR = ../obj/x86/Release/nfd | ||
DEFINES += -DNDEBUG | ||
INCLUDES += -I../../src/include | ||
FORCE_INCLUDE += | ||
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -O2 `pkg-config --cflags gtk+-3.0` | ||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) | ||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||
LIBS += | ||
LDDEPS += | ||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -m32 -s | ||
LINKCMD = $(AR) -rcs "$@" $(OBJECTS) | ||
define PREBUILDCMDS | ||
endef | ||
define PRELINKCMDS | ||
endef | ||
define POSTBUILDCMDS | ||
endef | ||
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) | ||
@: | ||
|
||
endif | ||
|
||
ifeq ($(config),debug_x64) | ||
RESCOMP = windres | ||
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 `pkg-config --cflags gtk+-3.0` | ||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) | ||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||
LIBS += | ||
LDDEPS += | ||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 | ||
LINKCMD = $(AR) -rcs "$@" $(OBJECTS) | ||
define PREBUILDCMDS | ||
endef | ||
define PRELINKCMDS | ||
endef | ||
define POSTBUILDCMDS | ||
endef | ||
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) | ||
@: | ||
|
||
endif | ||
|
||
ifeq ($(config),debug_x86) | ||
RESCOMP = windres | ||
TARGETDIR = ../lib/Debug/x86 | ||
TARGET = $(TARGETDIR)/libnfd_d.a | ||
OBJDIR = ../obj/x86/Debug/nfd | ||
DEFINES += -DDEBUG | ||
INCLUDES += -I../../src/include | ||
FORCE_INCLUDE += | ||
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) | ||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g `pkg-config --cflags gtk+-3.0` | ||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) | ||
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) | ||
LIBS += | ||
LDDEPS += | ||
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -m32 | ||
LINKCMD = $(AR) -rcs "$@" $(OBJECTS) | ||
define PREBUILDCMDS | ||
endef | ||
define PRELINKCMDS | ||
endef | ||
define POSTBUILDCMDS | ||
endef | ||
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) | ||
@: | ||
|
||
endif | ||
|
||
OBJECTS := \ | ||
$(OBJDIR)/nfd_common.o \ | ||
$(OBJDIR)/nfd_gtk.o \ | ||
|
||
RESOURCES := \ | ||
|
||
CUSTOMFILES := \ | ||
|
||
SHELLTYPE := msdos | ||
ifeq (,$(ComSpec)$(COMSPEC)) | ||
SHELLTYPE := posix | ||
endif | ||
ifeq (/bin,$(findstring /bin,$(SHELL))) | ||
SHELLTYPE := posix | ||
endif | ||
|
||
$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | ||
@echo Linking nfd | ||
$(SILENT) $(LINKCMD) | ||
$(POSTBUILDCMDS) | ||
|
||
$(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) | ||
$(GCH): $(PCH) | ||
@echo $(notdir $<) | ||
$(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<" | ||
endif | ||
|
||
$(OBJDIR)/nfd_common.o: ../../src/nfd_common.c | ||
@echo $(notdir $<) | ||
$(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" | ||
$(OBJDIR)/nfd_gtk.o: ../../src/nfd_gtk.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 |
Oops, something went wrong.