Skip to content

Commit 5d91a58

Browse files
vargazshana
authored andcommitted
Add hello example to the build process.
1 parent f24e572 commit 5d91a58

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ src/generator2/Makefile
6868
src/qt/Makefile
6969
src/Makefile
7070
tests2/Makefile
71+
examples/Makefile
72+
examples/Hello/Makefile
7173
Makefile
7274
])
7375

examples/Hello/Makefile renamed to examples/Hello/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
top_srcdir=../..
33

4-
default: libhello.so Hello.xml Hello.exe
4+
all: libhello.so Hello.xml Hello.exe
55

66
libhello.so: Hello.cpp Hello.h
77
$(CXX) -fPIC --shared -o $@ Hello.cpp
@@ -11,7 +11,7 @@ Hello.xml: Hello.h
1111

1212
output gen:
1313
$(RM) -r output
14-
mono $(top_srcdir)/src/generator/bin/Debug/generator.exe -f=Hello.xml -ns=Hello -lib=hello
14+
mono $(top_srcdir)/src/generator2/bin/Debug/generator.exe -ns=Hello -lib=hello Hello.xml
1515

1616
INTEROP_DLL = \
1717
$(top_srcdir)/src/Mono.VisualC.Interop/bin/Debug/Mono.VisualC.Interop.dll

examples/Makefile.am

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
if ENABLE_DEBUG
3+
SUBDIRS = Hello
4+
endif
5+
if ENABLE_RELEASE
6+
SUBDIRS = Hello
7+
endif

0 commit comments

Comments
 (0)