comparison complex/assert_21/complex.mak @ 1526:6caf8b7e726a

[Issue 1121] Assertion codegen issue with templated function Jarrett Billingsley <jarrett.billingsley@gmail.com> 2007-04-10 http://d.puremagic.com/issues/show_bug.cgi?id=1121
author thomask
date Fri, 27 Apr 2007 17:30:54 +0000
parents
children
comparison
equal deleted inserted replaced
1525:ce8c04d69094 1526:6caf8b7e726a
1 # GnuMakefile for DStress http://dstress.kuehne.cn/www/dstress.html
2 # Copyright (C) 2006 Thomas Kuehne
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 #
18
19 .PHONY:: \
20 complex/assert_21/warning \
21 complex/assert_21/$(complex_done) \
22 complex/assert_21/clean \
23 complex/assert_21/dest
24
25 complex/assert_21/warning :
26 $(error "don't invoke this file directly, instead use DStress' root Makefile with the target \"complex/assert_21/complex.done\", \"complex\" or \"all\"")
27
28 complex/assert_21/dest = \
29 complex/assert_21/assert_21_A
30
31 # the actual target, will be called by root's "all" / "complex" target
32 complex/assert_21/$(complex_done) : $(complex/assert_21/dest) $(return__) $(ifeq__)
33
34 #
35 # link
36 #
37 complex/assert_21/assert_21_A : complex/assert_21/a.d complex/assert_21/b.d $(return__) $(ifeq__)
38 @$(RM) -f complex/assert_21/*.o
39 $(eval z_name = $@)
40 $(eval z_return = $(shell cd complex/assert_21; $(return__) "$(DMD) $(DFLAGS) a.d b.d -ofassert_21_A $(to_log) && ./assert_21_A $(to_log)"))
41 @if $(ifeq__) $(z_return) 0; then \
42 $(ECHO) "Torture-Sub-1/31-PASS: $(z_name)"; \
43 else \
44 $(ECHO) "Torture-Sub-1/31-FAIL: $(z_name)"; \
45 fi
46
47 #
48 # cleanup
49 #
50 clean ::
51 $(RM) complex/assert_21/*.done $(complex/assert_21/dest) complex/assert_21/*.o
52