From 9fd48df4084314a6800975d193b9dd2b7f9cd901 Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Sun, 20 Oct 2013 14:59:30 +0200
Subject: [PATCH] extended_preprocessor: adding Makefile for test example

---
 others/cpp/tests/Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 others/cpp/tests/Makefile

diff --git a/others/cpp/tests/Makefile b/others/cpp/tests/Makefile
new file mode 100644
index 000000000..39917c249
--- /dev/null
+++ b/others/cpp/tests/Makefile
@@ -0,0 +1,11 @@
+DYNARE=../../../matlab/dynare_m
+all: test1
+test1.o : test1.cc ../dynare_cpp_driver.hh ../dynare_cpp_driver.cc
+	gcc -g -c test1.cc -I.. -I../../../mex/sources -I../../../mex/sources/estimation -I../../../mex/sources/estimation/libmat
+dynare_cpp_driver.o: ../dynare_cpp_driver.cc ../dynare_cpp_driver.hh
+	gcc -g -c ../dynare_cpp_driver.cc -I..
+example1.o: example1.mod
+	$(DYNARE) example1.mod output=first
+	gcc -g -c example1.cc -I..
+test1 : test1.o example1.o dynare_cpp_driver.o
+	gcc -g -o test1 test1.o example1.o dynare_cpp_driver.o -lstdc++
-- 
GitLab