Makefile baby fuck building on windows
@ -1,201 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<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">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{8A067FEB-7D3A-45FB-BED3-77A1965E41D8}</ProjectGuid>
|
||||
<RootNamespace>Assignment3Project</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<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|Win32'">
|
||||
<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)'=='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|Win32'">
|
||||
<Allegro_AddonImage>true</Allegro_AddonImage>
|
||||
<Allegro_AddonTTF>true</Allegro_AddonTTF>
|
||||
<Allegro_AddonPrimitives>true</Allegro_AddonPrimitives>
|
||||
<Allegro_AddonAudio>true</Allegro_AddonAudio>
|
||||
<Allegro_AddonAcodec>true</Allegro_AddonAcodec>
|
||||
<Allegro_AddonFont>true</Allegro_AddonFont>
|
||||
<Allegro_AddonColor>true</Allegro_AddonColor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Allegro_AddonImage>true</Allegro_AddonImage>
|
||||
<Allegro_AddonTTF>true</Allegro_AddonTTF>
|
||||
<Allegro_AddonPrimitives>true</Allegro_AddonPrimitives>
|
||||
<Allegro_AddonAudio>true</Allegro_AddonAudio>
|
||||
<Allegro_AddonAcodec>true</Allegro_AddonAcodec>
|
||||
<Allegro_AddonFont>true</Allegro_AddonFont>
|
||||
<Allegro_AddonColor>true</Allegro_AddonColor>
|
||||
<Allegro_AddonPhysfs>true</Allegro_AddonPhysfs>
|
||||
<Allegro_AddonDialog>true</Allegro_AddonDialog>
|
||||
<Allegro_AddonMemfile>true</Allegro_AddonMemfile>
|
||||
<Allegro_AddonVideo>true</Allegro_AddonVideo>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Allegro_AddonImage>true</Allegro_AddonImage>
|
||||
<Allegro_AddonTTF>true</Allegro_AddonTTF>
|
||||
<Allegro_AddonPrimitives>true</Allegro_AddonPrimitives>
|
||||
<Allegro_AddonAudio>true</Allegro_AddonAudio>
|
||||
<Allegro_AddonAcodec>true</Allegro_AddonAcodec>
|
||||
<Allegro_AddonPhysfs>true</Allegro_AddonPhysfs>
|
||||
<Allegro_AddonDialog>true</Allegro_AddonDialog>
|
||||
<Allegro_AddonMemfile>true</Allegro_AddonMemfile>
|
||||
<Allegro_AddonFont>true</Allegro_AddonFont>
|
||||
<Allegro_AddonColor>true</Allegro_AddonColor>
|
||||
<Allegro_AddonVideo>true</Allegro_AddonVideo>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="bullet.h" />
|
||||
<ClInclude Include="cursor.h" />
|
||||
<ClInclude Include="enums.h" />
|
||||
<ClInclude Include="game.h" />
|
||||
<ClInclude Include="game_element.h" />
|
||||
<ClInclude Include="game_screen.h" />
|
||||
<ClInclude Include="help_screen.h" />
|
||||
<ClInclude Include="object_manager.h" />
|
||||
<ClInclude Include="result_screen.h" />
|
||||
<ClInclude Include="screen.h" />
|
||||
<ClInclude Include="ship.h" />
|
||||
<ClInclude Include="star.h" />
|
||||
<ClInclude Include="start_screen.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="bullet.cpp" />
|
||||
<ClCompile Include="cursor.cpp" />
|
||||
<ClCompile Include="game.cpp" />
|
||||
<ClCompile Include="game_screen.cpp" />
|
||||
<ClCompile Include="help_screen.cpp" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="object_manager.cpp" />
|
||||
<ClCompile Include="result_screen.cpp" />
|
||||
<ClCompile Include="ship.cpp" />
|
||||
<ClCompile Include="star.cpp" />
|
||||
<ClCompile Include="start_screen.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="enemies.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="..\packages\AllegroDeps.1.7.0.0\build\native\AllegroDeps.targets" Condition="Exists('..\packages\AllegroDeps.1.7.0.0\build\native\AllegroDeps.targets')" />
|
||||
<Import Project="..\packages\Allegro.5.2.4.0\build\native\Allegro.targets" Condition="Exists('..\packages\Allegro.5.2.4.0\build\native\Allegro.targets')" />
|
||||
</ImportGroup>
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\AllegroDeps.1.7.0.0\build\native\AllegroDeps.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\AllegroDeps.1.7.0.0\build\native\AllegroDeps.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\Allegro.5.2.4.0\build\native\Allegro.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Allegro.5.2.4.0\build\native\Allegro.targets'))" />
|
||||
</Target>
|
||||
</Project>
|
@ -1,119 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files\Engine">
|
||||
<UniqueIdentifier>{b3cfe90b-396f-4928-8b95-6b453c9cdee6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Header Files\Screens">
|
||||
<UniqueIdentifier>{079f6f25-ed43-4671-bb66-1a1c580b5f6b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Header Files\Assignment3">
|
||||
<UniqueIdentifier>{e9904f71-fa80-4ab4-a0ee-7fc1c8c3f92e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files\EngineImplement">
|
||||
<UniqueIdentifier>{60b0cc02-34f3-4b2f-a55d-aae1f622f730}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files\ScreensImplement">
|
||||
<UniqueIdentifier>{df34ca78-eaef-42da-84e1-e081ee065499}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files\Assignment3Implement">
|
||||
<UniqueIdentifier>{d177d104-1e60-4cd4-81d4-232c379ac302}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="cursor.h">
|
||||
<Filter>Header Files\Engine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="game.h">
|
||||
<Filter>Header Files\Engine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="game_screen.h">
|
||||
<Filter>Header Files\Screens</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="screen.h">
|
||||
<Filter>Header Files\Engine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="enums.h">
|
||||
<Filter>Header Files\Assignment3</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="start_screen.h">
|
||||
<Filter>Header Files\Screens</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="ship.h">
|
||||
<Filter>Header Files\Assignment3</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="game_element.h">
|
||||
<Filter>Header Files\Engine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="bullet.h">
|
||||
<Filter>Header Files\Assignment3</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="object_manager.h">
|
||||
<Filter>Header Files\Engine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="result_screen.h">
|
||||
<Filter>Header Files\Screens</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="star.h">
|
||||
<Filter>Header Files\Assignment3</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="help_screen.h">
|
||||
<Filter>Header Files\Screens</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="game_screen.cpp">
|
||||
<Filter>Source Files\ScreensImplement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="cursor.cpp">
|
||||
<Filter>Source Files\EngineImplement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="game.cpp">
|
||||
<Filter>Source Files\EngineImplement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="start_screen.cpp">
|
||||
<Filter>Source Files\ScreensImplement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="bullet.cpp">
|
||||
<Filter>Source Files\Assignment3Implement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ship.cpp">
|
||||
<Filter>Source Files\Assignment3Implement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="object_manager.cpp">
|
||||
<Filter>Source Files\EngineImplement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="result_screen.cpp">
|
||||
<Filter>Source Files\ScreensImplement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="help_screen.cpp">
|
||||
<Filter>Source Files\ScreensImplement</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="star.cpp">
|
||||
<Filter>Source Files\Assignment3Implement</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="enemies.txt">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Text>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Allegro" version="5.2.4.0" targetFramework="native" />
|
||||
<package id="AllegroDeps" version="1.7.0.0" targetFramework="native" />
|
||||
</packages>
|
@ -0,0 +1,56 @@
|
||||
C=g++
|
||||
CFLAGS=
|
||||
LDFLAGS=-L/usr/lib -lallegro -lallegro_font -lallegro_image -lallegro_acodec -lallegro_audio -lallegro_primitives
|
||||
INCLUDE=-I. -I/usr/include/allegro5
|
||||
|
||||
OBJS=main.o
|
||||
SCREEN_OBJS=start_screen.o game_screen.o help_screen.o result_screen.o
|
||||
G_OBJS=game.o cursor.o ship.o object_manager.o star.o bullet.o
|
||||
OUT=main
|
||||
|
||||
all: main_game
|
||||
|
||||
clean:
|
||||
rm -rf *.o $(OUT)
|
||||
|
||||
main_game: $(OBJS) $(G_OBJS) $(SCREEN_OBJS)
|
||||
$(C) $(OBJS) $(G_OBJS) $(SCREEN_OBJS) -o $(OUT) $(INCLUDE) $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
main.o: main.cpp
|
||||
$(C) -c main.cpp
|
||||
|
||||
#################
|
||||
# Game Objects
|
||||
#################
|
||||
game.o: game.cpp game.h
|
||||
$(C) -c game.cpp game.h
|
||||
|
||||
cursor.o: cursor.cpp cursor.h
|
||||
$(C) -c cursor.cpp cursor.h
|
||||
|
||||
ship.o: ship.cpp ship.h
|
||||
$(C) -c ship.cpp ship.h
|
||||
|
||||
object_manager.o: object_manager.cpp object_manager.h
|
||||
$(C) -c object_manager.cpp object_manager.h
|
||||
|
||||
star.o: star.cpp star.h
|
||||
$(C) -c star.cpp star.h
|
||||
|
||||
bullet.o: bullet.cpp bullet.h
|
||||
$(C) -c bullet.cpp bullet.h
|
||||
|
||||
#################
|
||||
# Screen Objects
|
||||
#################
|
||||
start_screen.o: start_screen.cpp start_screen.h screen.h
|
||||
$(C) -c start_screen.cpp start_screen.h
|
||||
|
||||
game_screen.o: game_screen.cpp game_screen.h screen.h
|
||||
$(C) -c game_screen.cpp game_screen.h
|
||||
|
||||
help_screen.o: help_screen.cpp help_screen.h screen.h
|
||||
$(C) -c help_screen.cpp help_screen.h
|
||||
|
||||
result_screen.o: result_screen.cpp result_screen.h screen.h
|
||||
$(C) -c result_screen.cpp result_screen.h
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |