Makefile for OpenRa.FileFormats
This commit is contained in:
@@ -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();
|
||||
|
||||
19
OpenRa.FileFormats/Makefile
Normal file
19
OpenRa.FileFormats/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user