File: iids.awk

package info (click to toggle)
oskit 0.97.20000202-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 58,008 kB
  • ctags: 172,612
  • sloc: ansic: 832,827; asm: 7,640; sh: 3,920; yacc: 3,664; perl: 1,457; lex: 427; makefile: 337; csh: 141; awk: 78
file content (14 lines) | stat: -rw-r--r-- 230 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
BEGIN {
	printf "OBJFILES +=";
}

{
	printf " %s.o", $2;

	filename = $2 ".c";
	iidmacro = toupper($2);
	printf "#include <%s>\n", $1 >filename;
	printf "const oskit_iid_t %s = %s;\n", $2, iidmacro >filename;
	close(filename);
}