|
|
@@ -1,24 +1,31 @@ |
|
|
|
# $Id: $ |
|
|
|
|
|
|
|
cuculdir = $(libdir)/cucul-sharp |
|
|
|
cacadir = $(libdir)/caca-sharp |
|
|
|
|
|
|
|
cucul_sources = AssemblyInfo.cs Cucul.cs |
|
|
|
caca_sources = AssemblyInfo.cs Caca.cs |
|
|
|
|
|
|
|
if USE_CSHARP |
|
|
|
noinst_DATA = cucul-sharp.dll caca-sharp.dll test.exe |
|
|
|
cucul_DATA = cucul-sharp.dll cucul-sharp.dll.config |
|
|
|
caca_DATA = caca-sharp.dll caca-sharp.dll.config |
|
|
|
noinst_DATA = test.exe |
|
|
|
endif |
|
|
|
|
|
|
|
EXTRA_DIST = AssemblyInfo.cs \ |
|
|
|
Cucul.cs \ |
|
|
|
Caca.cs \ |
|
|
|
cucul-sharp.dll.config \ |
|
|
|
caca-sharp.dll.config \ |
|
|
|
EXTRA_DIST = $(cucul_sources) cucul-sharp.dll.config \ |
|
|
|
$(caca_sources) caca-sharp.dll.config \ |
|
|
|
test.cs |
|
|
|
|
|
|
|
cucul-sharp.dll: AssemblyInfo.cs Cucul.cs |
|
|
|
gmcs $^ -out:$@ -target:library -unsafe |
|
|
|
cucul-sharp.dll: $(cucul_sources) |
|
|
|
gmcs $(cucul_sources) -out:$@ -target:library -unsafe |
|
|
|
|
|
|
|
caca-sharp.dll: AssemblyInfo.cs Caca.cs |
|
|
|
gmcs $^ -out:$@ -target:library -r:./cucul-sharp.dll -lib:./ -unsafe |
|
|
|
caca-sharp.dll: $(caca_sources) cucul-sharp.dll |
|
|
|
gmcs $(caca_sources) -out:$@ -target:library \ |
|
|
|
-r:./cucul-sharp.dll -lib:./ -unsafe |
|
|
|
|
|
|
|
test.exe: test.cs caca-sharp.dll cucul-sharp.dll |
|
|
|
gmcs test.cs -out:$@ -r:./cucul-sharp.dll -r:./caca-sharp.dll -lib:./ -unsafe |
|
|
|
gmcs test.cs -out:$@ \ |
|
|
|
-r:./cucul-sharp.dll -r:./caca-sharp.dll -lib:./ -unsafe |
|
|
|
|
|
|
|
clean-local: |
|
|
|
rm -f *.exe *.dll |
|
|
|