Copy some basic building scripts from memcache-ada

This commit is contained in:
R. Tyler Croy 2011-04-09 13:15:55 -07:00
parent e14a1c3f1d
commit 1da6a82325
2 changed files with 46 additions and 0 deletions

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
GPRBUILD=gprbuild
GPRCLEAN=gprclean
TESTRUNNER=testrunner
lib: pre
$(GPRBUILD) -p redis.gpr
pre:
mkdir -p build
mkdir -p obj
syntax: pre
gnatmake -gnatc -gnat05 -P redis.gpr
clean: pre
$(GPRCLEAN) redis.gpr
rm -rf build obj
rm -f *.so*

25
redis.gpr Normal file
View File

@ -0,0 +1,25 @@
Library project Redis is
Version := "1.0.0";
type Mode_Type is ("debug", "release");
Mode : Mode_Type := external ("mode", "debug");
for Source_Dirs use ("src");
for Object_Dir use "obj";
for Library_Dir use "build";
for Library_Kind use "dynamic";
for Library_Name use "redisada";
for Library_Version use "libredisada.so." & Version;
package Compiler is
case Mode is
when "debug" =>
for Switches ("Ada") use ("-g", "-gnat05");
when "release" =>
for Switches ("Ada") use ("-O2", "-gnat05");
end case;
end Compiler;
end Redis;