From 77efd0bab3517efe3b9a28561aad2a58cd1452fa Mon Sep 17 00:00:00 2001 From: Sami Kankaristo Date: Thu, 1 Oct 2015 05:34:46 +0300 Subject: [PATCH] Add basic support for the 'Utility' kind in gmake --- src/actions/make/_make.lua | 2 +- src/actions/make/make_cpp.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/actions/make/_make.lua b/src/actions/make/_make.lua index e538148d..2cb50c05 100644 --- a/src/actions/make/_make.lua +++ b/src/actions/make/_make.lua @@ -20,7 +20,7 @@ shortname = "GNU Make", description = "Generate GNU makefiles for POSIX, MinGW, and Cygwin", - valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib" }, + valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Utility" }, valid_languages = { "C", "C++", "C#" }, diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua index 1610789c..8549239c 100644 --- a/src/actions/make/make_cpp.lua +++ b/src/actions/make/make_cpp.lua @@ -434,6 +434,9 @@ else _p(' LINKCMD = $(AR) -rcs "$@" $(OBJECTS)') end + elseif cfg.kind == premake.UTILITY then + -- Empty LINKCMD for Utility (only custom build rules) + _p(' LINKCMD =') else -- this was $(TARGET) $(LDFLAGS) $(OBJECTS) -- but had trouble linking to certain static libs; $(OBJECTS) moved up