Makefile for OpenRa.FileFormats

This commit is contained in:
Matthew Bowra-Dean
2010-02-17 17:48:30 +13:00
parent 680f2a1bc7
commit b7c49c0218
2 changed files with 21 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
* This file is part of OpenRA.
@@ -59,7 +59,7 @@ namespace OpenRa.FileFormats
Flags == Dune2ImageFlags.L16_F80_F2_2 ||
Flags == Dune2ImageFlags.Ln_F80_F2)
{
int n = Flags == Dune2ImageFlags.Ln_F80_F2 ? reader.ReadByte() : 16;
int n = Flags == Dune2ImageFlags.Ln_F80_F2 ? reader.ReadByte() : (byte)16;
LookupTable = new byte[n];
for (int i = 0; i < n; i++)
LookupTable[i] = reader.ReadByte();

View File

@@ -0,0 +1,19 @@
CSC = gmcs
CFLAGS = -nologo -warn:4 -debug:+ -debug:full -optimize- -codepage:utf8 -unsafe
DEFINE = DEBUG;TRACE
PROGRAM = OpenRa.FileFormats.dll
LIBS = System.dll \
System.Core.dll \
System.Drawing.dll \
System.Xml.dll
TYPE = library
DIRS = . \
Support \
Collections \
Properties
refs := $(foreach ref, $(LIBS),-r:$(ref))
files := $(foreach dir, $(DIRS),$(wildcard $(dir)/*.cs))
$(PROGRAM) :
$(CSC) $(refs) "-out:$(PROGRAM)" $(CFLAGS) "-define:$(DEFINE)" -t:$(TYPE) $(files)