summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
Diffstat (limited to 'Rules')
-rw-r--r--Rules10
1 files changed, 8 insertions, 2 deletions
diff --git a/Rules b/Rules
index 2d9c0a8a..d038f803 100644
--- a/Rules
+++ b/Rules
@@ -9,11 +9,17 @@ ifndef SRCS
SRCS=$(subst .o,.c,$(OBJS))
endif
+.PHONY: all this dep
+
+all:
+ @echo "Please run the top-level Makefile instead."
+ @exit 1
+
ifdef OBJS
ifdef LIB
-all: $(LIB)
+this: $(LIB)
$(LIB): $(OBJS)
rm -f $(LIB)
@@ -22,7 +28,7 @@ $(LIB): $(OBJS)
else
-all: $(ONAME)
+this: $(ONAME)
$(ONAME): $(OBJS)
$(LD) -r -o $(ONAME) $(OBJS)