-
Notifications
You must be signed in to change notification settings - Fork 172
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
9 changed files
with
774 additions
and
7 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
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
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,137 @@ | ||
# Alternative GNU Make project makefile autogenerated by Premake | ||
|
||
ifndef config | ||
config=debug | ||
endif | ||
|
||
ifndef verbose | ||
SILENT = @ | ||
endif | ||
|
||
.PHONY: clean prebuild | ||
|
||
SHELLTYPE := posix | ||
ifeq (.exe,$(findstring .exe,$(ComSpec))) | ||
SHELLTYPE := msdos | ||
endif | ||
|
||
# Configurations | ||
# ############################################# | ||
|
||
RESCOMP = windres | ||
INCLUDES += -I../../.. -I../../../third -I../../../third/lua | ||
FORCE_INCLUDE += | ||
ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES) | ||
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 | ||
|
||
ifeq ($(config),debug) | ||
TARGETDIR = ../../bin/Debug | ||
TARGET = $(TARGETDIR)/liblfmt.a | ||
OBJDIR = ../../obj/lfmt/Debug | ||
DEFINES += -DDEBUG -DSOL_ALL_SAFETIES_ON | ||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g -Wall | ||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g -Wall -std=c++17 | ||
|
||
else ifeq ($(config),release) | ||
TARGETDIR = ../../bin/Release | ||
TARGET = $(TARGETDIR)/liblfmt.a | ||
OBJDIR = ../../obj/lfmt/Release | ||
DEFINES += -DNDEBUG -DSOL_ALL_SAFETIES_ON | ||
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -g -Wall | ||
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -g -Wall -std=c++17 | ||
|
||
endif | ||
|
||
# Per File Configurations | ||
# ############################################# | ||
|
||
|
||
# File sets | ||
# ############################################# | ||
|
||
GENERATED := | ||
OBJECTS := | ||
|
||
GENERATED += $(OBJDIR)/lfmt.o | ||
OBJECTS += $(OBJDIR)/lfmt.o | ||
|
||
# Rules | ||
# ############################################# | ||
|
||
all: $(TARGET) | ||
@: | ||
|
||
$(TARGET): $(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR) | ||
$(PRELINKCMDS) | ||
@echo Linking lfmt | ||
$(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 lfmt | ||
ifeq (posix,$(SHELLTYPE)) | ||
$(SILENT) rm -f $(TARGET) | ||
$(SILENT) rm -rf $(GENERATED) | ||
$(SILENT) rm -rf $(OBJDIR) | ||
else | ||
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) | ||
$(SILENT) if exist $(subst /,\\,$(GENERATED)) del /s /q $(subst /,\\,$(GENERATED)) | ||
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) | ||
endif | ||
|
||
prebuild: | $(OBJDIR) | ||
$(PREBUILDCMDS) | ||
|
||
ifneq (,$(PCH)) | ||
$(OBJECTS): $(GCH) | $(PCH_PLACEHOLDER) | ||
$(GCH): $(PCH) | prebuild | ||
@echo $(notdir $<) | ||
$(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<" | ||
$(PCH_PLACEHOLDER): $(GCH) | $(OBJDIR) | ||
ifeq (posix,$(SHELLTYPE)) | ||
$(SILENT) touch "$@" | ||
else | ||
$(SILENT) echo $null >> "$@" | ||
endif | ||
else | ||
$(OBJECTS): | prebuild | ||
endif | ||
|
||
|
||
# File Rules | ||
# ############################################# | ||
|
||
$(OBJDIR)/lfmt.o: ../../../third/lfmt/lfmt.c | ||
@echo "$(notdir $<)" | ||
$(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" | ||
|
||
-include $(OBJECTS:%.o=%.d) | ||
ifneq (,$(PCH)) | ||
-include $(PCH_PLACEHOLDER).d | ||
endif |
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,105 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>{D8089A7C-C43F-9B0D-6D2C-81105942170F}</ProjectGuid> | ||
<IgnoreWarnCompileDuplicatedFilename>true</IgnoreWarnCompileDuplicatedFilename> | ||
<Keyword>Win32Proj</Keyword> | ||
<RootNamespace>lfmt</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>StaticLibrary</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
<PlatformToolset>v143</PlatformToolset> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>StaticLibrary</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
<PlatformToolset>v143</PlatformToolset> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<OutDir>..\..\bin\Debug\</OutDir> | ||
<IntDir>..\..\obj\lfmt\Debug\</IntDir> | ||
<TargetName>lfmt</TargetName> | ||
<TargetExt>.lib</TargetExt> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<OutDir>..\..\bin\Release\</OutDir> | ||
<IntDir>..\..\obj\lfmt\Release\</IntDir> | ||
<TargetName>lfmt</TargetName> | ||
<TargetExt>.lib</TargetExt> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<PrecompiledHeader>NotUsing</PrecompiledHeader> | ||
<WarningLevel>Level4</WarningLevel> | ||
<PreprocessorDefinitions>DEBUG;SOL_ALL_SAFETIES_ON;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>..\..\..;..\..\..\third;..\..\..\third\lua;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||
<Optimization>Disabled</Optimization> | ||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | ||
<AdditionalOptions>/experimental:c11atomics %(AdditionalOptions)</AdditionalOptions> | ||
<LanguageStandard>stdcpp17</LanguageStandard> | ||
<LanguageStandard_C>stdc11</LanguageStandard_C> | ||
<ExternalWarningLevel>Level3</ExternalWarningLevel> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<PrecompiledHeader>NotUsing</PrecompiledHeader> | ||
<WarningLevel>Level4</WarningLevel> | ||
<PreprocessorDefinitions>NDEBUG;SOL_ALL_SAFETIES_ON;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>..\..\..;..\..\..\third;..\..\..\third\lua;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | ||
<Optimization>Full</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<MinimalRebuild>false</MinimalRebuild> | ||
<StringPooling>true</StringPooling> | ||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | ||
<AdditionalOptions>/experimental:c11atomics %(AdditionalOptions)</AdditionalOptions> | ||
<LanguageStandard>stdcpp17</LanguageStandard> | ||
<LanguageStandard_C>stdc11</LanguageStandard_C> | ||
<ExternalWarningLevel>Level3</ExternalWarningLevel> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="..\..\..\third\lfmt\lfmt.c" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
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
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
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
Oops, something went wrong.