Commit 5f878531 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Do not build unneeded header files

Remove some old (generated) header files from the archive.
parent 623e3103
/* Automaticly generated block 'and2' */
#ifndef _INCLUDE_and2_H_
#define _INCLUDE_and2_H_
struct controller_block * block_and2_create(char *name);
#endif /* _INCLUDE_and2_H_ */
/* Automaticly generated block 'not' */
#ifndef _INCLUDE_not_H_
#define _INCLUDE_not_H_
struct controller_block * block_not_create(char *name);
#endif /* _INCLUDE_not_H_ */
/* Automaticly generated block 'or2' */
#ifndef _INCLUDE_or2_H_
#define _INCLUDE_or2_H_
struct controller_block * block_or2_create(char *name);
#endif /* _INCLUDE_or2_H_ */
/* Automaticly generated block 'or3' */
#ifndef _INCLUDE_or3_H_
#define _INCLUDE_or3_H_
struct controller_block * block_or3_create(char *name);
#endif /* _INCLUDE_or3_H_ */
/* Automaticly generated block 'or4' */
#ifndef _INCLUDE_or4_H_
#define _INCLUDE_or4_H_
struct controller_block * block_or4_create(char *name);
#endif /* _INCLUDE_or4_H_ */
/* Automaticly generated block 'register' */
#ifndef _INCLUDE_register_H_
#define _INCLUDE_register_H_
struct controller_block * block_register_create(char *name);
#endif /* _INCLUDE_register_H_ */
/* Automaticly generated block 'setreset' */
#ifndef _INCLUDE_setreset_H_
#define _INCLUDE_setreset_H_
struct controller_block * block_setreset_create(char *name);
#endif /* _INCLUDE_setreset_H_ */
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#define IL2C_ACCU_REAL "_il2c_acc_double" #define IL2C_ACCU_REAL "_il2c_acc_double"
#define IL2C_ACCU_REAL_TYPE REAL64SYM #define IL2C_ACCU_REAL_TYPE REAL64SYM
#undef IL2C_GEN_HEADER
char *il2c_blockname = "il2c"; char *il2c_blockname = "il2c";
char *il2c_logname; char *il2c_logname;
...@@ -38,7 +40,9 @@ extern FILE *yyin; ...@@ -38,7 +40,9 @@ extern FILE *yyin;
int yyget_lineno(void); int yyget_lineno(void);
FILE *il2c_cout; FILE *il2c_cout;
#ifdef IL2C_GEN_HEADER
FILE *il2c_hout; FILE *il2c_hout;
#endif
void yyerror(char const *s) void yyerror(char const *s)
...@@ -832,6 +836,7 @@ void il2c_block_body(void) ...@@ -832,6 +836,7 @@ void il2c_block_body(void)
fprintf(il2c_cout, "}\n"); fprintf(il2c_cout, "}\n");
} }
#ifdef IL2C_GEN_HEADER
void il2c_block_header(void) void il2c_block_header(void)
{ {
fprintf(il2c_hout, "/* Automaticly generated block '%s' */\n", il2c_blockname); fprintf(il2c_hout, "/* Automaticly generated block '%s' */\n", il2c_blockname);
...@@ -846,6 +851,7 @@ void il2c_block_header(void) ...@@ -846,6 +851,7 @@ void il2c_block_header(void)
fprintf(il2c_hout, "#endif /* _INCLUDE_%s_H_ */\n", il2c_blockname); fprintf(il2c_hout, "#endif /* _INCLUDE_%s_H_ */\n", il2c_blockname);
} }
#endif
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
...@@ -873,13 +879,17 @@ int main(int argc, char **argv) ...@@ -873,13 +879,17 @@ int main(int argc, char **argv)
outname[strlen(outname) - 1] = 'h'; outname[strlen(outname) - 1] = 'h';
#ifdef IL2C_GEN_HEADER
il2c_hout = fopen(outname, "w"); il2c_hout = fopen(outname, "w");
#endif
il2c_logname = argv[1]; il2c_logname = argv[1];
} else { } else {
yyin = stdin; yyin = stdin;
il2c_cout = stdout; il2c_cout = stdout;
#ifdef IL2C_GEN_HEADER
il2c_hout = stdout; il2c_hout = stdout;
#endif
il2c_logname = "stdin"; il2c_logname = "stdin";
} }
...@@ -887,7 +897,9 @@ int main(int argc, char **argv) ...@@ -887,7 +897,9 @@ int main(int argc, char **argv)
il2c_sample_footer(); il2c_sample_footer();
il2c_block_body(); il2c_block_body();
#ifdef IL2C_GEN_HEADER
il2c_block_header(); il2c_block_header();
#endif
return ret; return ret;
} }
...@@ -53,7 +53,7 @@ endif ...@@ -53,7 +53,7 @@ endif
@$(FLEX) --header-file=$*.yy.h -o $*.yy.c $< @$(FLEX) --header-file=$*.yy.h -o $*.yy.c $<
# il2c: instruction list 2 c 'compiler' # il2c: instruction list 2 c 'compiler'
%.c %.h: %.il %.c: %.il
@echo " IL2C $<" @echo " IL2C $<"
@$(IL2C) $< @$(IL2C) $<
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment