[COMMON]
[ia32]
-CFLAGS=-ffreestanding -I/home/tpg/Projects/GitClones/acess2/UDI/include/ -Wall -Wextra -Wno-unused-parameter -Wswitch-default
+CFLAGS=-ffreestanding -I/home/tpg/Projects/GitClones/acess2/UDI/include/ -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic
+# -Wc++-compat
CC=i586-elf-gcc
LD=i586-elf-ld
srcfile->CompileOpts ? srcfile->CompileOpts : "",
srcfile->Filename, objfile);
printf("--- Compiling: %s\n", srcfile->Filename);
+ if( gbTraceEnabled ) {
+ printf(">> %s\n", cmd);
+ }
int rv = system(cmd);
free(cmd);
free(objfile);
abi, udiprops->ModuleName, objfiles_str, udiprops_c
);
printf("--- Linking: bin/%s/%s\n", abi, udiprops->ModuleName);
- printf("%s\n", cmd);
+ if( gbTraceEnabled ) {
+ printf(">> %s\n", cmd);
+ }
int rv = system(cmd);
free(cmd);
free(udiprops_c);
#define _COMMON_H_
#include <stdarg.h>
+#include <stdbool.h>
#ifndef __GNUC__
# define __attribute__(...)
extern char *mkstr(const char *fmt, ...) __attribute__((format(printf,1,2)));
+extern bool gbTraceEnabled;
+
#endif
void Usage(const char *progname);
// === GLOBALS ===
+bool gbTraceEnabled = false;
const char *gsRuntimeDir = RUNTIME_DIR;
const char *gsOpt_ConfigFile;
const char *gsOpt_WorkingDir;