aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/config/cf/nxcompile.def13
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))