From da68305e2c9f2cafd4627d7d2e8006ce1714be72 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 19 Apr 2008 22:51:20 +0000 Subject: [PATCH] * Get the project to build in an alternate directory. --- csharp/Makefile.am | 10 +++++----- cucul/cucul_types.h.in | 13 +++++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/csharp/Makefile.am b/csharp/Makefile.am index 9733b0e..565ed60 100644 --- a/csharp/Makefile.am +++ b/csharp/Makefile.am @@ -3,8 +3,8 @@ cuculdir = $(libdir)/cucul-sharp cacadir = $(libdir)/caca-sharp -cucul_sources = AssemblyInfo.cs Cucul.cs -caca_sources = AssemblyInfo.cs Caca.cs +cucul_sources = $(srcdir)/AssemblyInfo.cs $(srcdir)/Cucul.cs +caca_sources = $(srcdir)/AssemblyInfo.cs $(srcdir)/Caca.cs if USE_CSHARP cucul_DATA = cucul-sharp.dll cucul-sharp.dll.config @@ -14,7 +14,7 @@ endif EXTRA_DIST = $(cucul_sources) cucul-sharp.dll.config.in \ $(caca_sources) caca-sharp.dll.config.in \ - test.cs + $(srcdir)/test.cs cucul-sharp.dll: $(cucul_sources) gmcs -unsafe $(cucul_sources) -out:$@ -target:library \ @@ -24,8 +24,8 @@ caca-sharp.dll: $(caca_sources) cucul-sharp.dll gmcs -unsafe $(caca_sources) -out:$@ -target:library -lib:./ \ -r:System.Drawing.dll -r:./cucul-sharp.dll -test.exe: test.cs caca-sharp.dll cucul-sharp.dll - gmcs test.cs -out:$@ -lib:./ \ +test.exe: $(srcdir)/test.cs caca-sharp.dll cucul-sharp.dll + gmcs $(srcdir)/test.cs -out:$@ -lib:./ \ -r:System.Drawing.dll -r:./cucul-sharp.dll -r:./caca-sharp.dll clean-local: diff --git a/cucul/cucul_types.h.in b/cucul/cucul_types.h.in index ad25f3a..0db36f6 100644 --- a/cucul/cucul_types.h.in +++ b/cucul/cucul_types.h.in @@ -23,13 +23,15 @@ # define CUCUL_TYPES @CUCUL_TYPES@ #endif -/* mode 1: standard header is present, just include it */ +/* mode 1: standard header is present, just include it */ #if CUCUL_TYPES == 1 -# include +# include +# include -/* mode 2: standard header is present, just include it */ +/* mode 2: standard header is present, just include it */ #elif CUCUL_TYPES == 2 -# include +# include +# include /* fallback: nothing is available, we assume the platform is 32-bit and * sizeof(long) == sizeof(void *) */ @@ -47,6 +49,9 @@ typedef unsigned long long int uint64_t; typedef long int intptr_t; typedef unsigned long int uintptr_t; +typedef int ssize_t; +typedef unsigned int size_t; + #endif #endif /* __CUCUL_TYPES_H__ */