File: 2004_03_16_recscan.test

package info (click to toggle)
makepp 2.0.98.5-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,744 kB
  • sloc: perl: 15,893; makefile: 38; javascript: 25; sh: 1
file content (40 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
###	SPAR <http://www.cpan.org/scripts/>
###	16	644	1079481382	1311623828	Makeppfile
register_command_parser ./nop skip_word
CC := .$/nop $(CC)

$(phony default): main.o
	perl { Mpp::Cmds::c_cp 'answers/x' unless -e 'x' }

$(phony main.o): main.c
	: smartscan
	- $(CC) $(CFLAGS) $(CPPFLAGS) -c $(input) -o $(output) && echo "NOK" > x

perl_begin
  use Mpp::Scanner::Verilog;
  my $s = new Mpp::Scanner::Verilog( Mpp::File::file_info('main.o')->get_rule, '.' );
  $s->continue_scanning;
  $s->get_context;
perl_end
###	2	755	1079480259	1079480254	nop
#!/bin/sh
exec "$@"
###	1	755	1079480259	1208539324	nop.bat
@%1 %2 %3 %4 %5 %6 %7 %8 %9
###	4	644	1079480259	1079480254	a.h
#if 1
# include "a.h"
#endif
#define A 1
###	8	644	1079480259	1079140626	main.c
#include "a.h"

int main() {
#if A
	return 0;
#endif
	return 1;
}
###	D	755	1079481394	1079144618	answers
###	1	644	1079144793	1079144618	answers/x
OK