diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-11-11 12:30:54 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-11-11 15:49:51 +0100 |
commit | c4656c5e9052779aa395693d3ca52dde940ab027 (patch) | |
tree | ef1da5abe3c3f8e514a0b4cdb8d7b1df7fc35898 /nx-X11 | |
parent | ffc723e730b06ca50202ea769fa81bcf3ec00ec8 (diff) | |
download | nx-libs-c4656c5e9052779aa395693d3ca52dde940ab027.tar.gz nx-libs-c4656c5e9052779aa395693d3ca52dde940ab027.tar.bz2 nx-libs-c4656c5e9052779aa395693d3ca52dde940ab027.zip |
imake: also silence makedepend
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/config/cf/nxcompile.def | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/nx-X11/config/cf/nxcompile.def b/nx-X11/config/cf/nxcompile.def index 9fe0ab7b6..82192b60b 100644 --- a/nx-X11/config/cf/nxcompile.def +++ b/nx-X11/config/cf/nxcompile.def @@ -6,12 +6,12 @@ #define RemoveFileQuiet(file) @$(RM) -f file \&>/dev/null -#define ObjectCompile(options) RemoveFileQuiet($@) @@\ +#define RunPrintIfFailed(cmd) @cmd || { echo failed command: cmd; exit 1; } + +#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; } + RunPrintIfFailed($(CC) -c $(CFLAGS) options $*.c) #define NormalLibraryTarget(libname,objlist) @@\ AllTarget(LibraryTargetName(libname)) @@\ @@ -23,3 +23,8 @@ LibraryTargetName(libname): objlist $(EXTRALIBRARYDEPS) @@\ RunPrintIfFailed(RanLibrary($@)) @@\ RunPrintIfFailed(_LinkBuildLibrary($@)) +#define DependTarget() @@\ +DependDependency() @@\ + @@\ +depend:: @@\ + RunPrintIfFailed($(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)) |