Commit ffc723e7 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

silence imake compilation

Suppress printing the rm and the cc call for every file. Only print the compiler call in case of error.
parent a93f64e4
/*
our own rules to have a much cleaner compilation output
derived from Imake.rules
*/
#define RemoveFileQuiet(file) @$(RM) -f file \&>/dev/null
#define ObjectCompile(options) RemoveFileQuiet($@) @@\
ClearmakeOSName \
@echo \ \ CC $*.c @@\
@$(CC) -c $(CFLAGS) options $*.c || { echo \ \ CC failed: $(CC)·-c·$(CFLAGS)·options·$*.c; exit 1; }
#define RunPrintIfFailed(cmd) @cmd || { echo failed command: cmd; exit 1; }
#define NormalLibraryTarget(libname,objlist) @@\
AllTarget(LibraryTargetName(libname)) @@\
@@\
LibraryTargetName(libname): objlist $(EXTRALIBRARYDEPS) @@\
@echo \ \ Creating lib: $@ @@\
RemoveFileQuiet($@) @@\
RunPrintIfFailed(MakeLibrary($@,objlist)) @@\
RunPrintIfFailed(RanLibrary($@)) @@\
RunPrintIfFailed(_LinkBuildLibrary($@))
......@@ -53,7 +53,7 @@ RELEASE_VERSION = ReleaseVersion
#if NXAgentServer
#include "nxconfig.def"
#include "nxcompile.def"
#include "nxversion.def"
#if !defined(nxVersionString) && \
......
Markdown is supported
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