summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-12-04 06:52:03 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-12-04 06:52:03 -0800
commitb6ef994047130968f5b335715d6773983464d98f (patch)
tree6fae0e77bc6f08736b3eee5af5fd95edfb78be04 /Makefile
parent5553ed5afc4298bde27b47841542b6774e2acc81 (diff)
downloadtxr-b6ef994047130968f5b335715d6773983464d98f.tar.gz
txr-b6ef994047130968f5b335715d6773983464d98f.tar.bz2
txr-b6ef994047130968f5b335715d6773983464d98f.zip
* Makefile: Adding empty .SUFFIXES: to disable built-in suffixes.
Also set MAKEFLAGS to disable all built-in rules. The only one rule we used is .c to .o, so we provide it ourselves.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c3b1dd50..affa566b 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,12 @@ OBJS += $(MPI_OBJS)
PROG := txr
+.SUFFIXES:
+MAKEFLAGS += --no-builtin-rules
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
$(PROG): $(OBJS) $(OBJS-y)
$(CC) $(CFLAGS) -o $@ $^ -lm