summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2021-12-05 22:55:51 +0100
committerVincent Douillet <vincent@vdouillet.fr>2021-12-05 22:55:51 +0100
commit7d65acce058a99a8b33d6d2870ac8bbb939827d8 (patch)
tree66e76f0b77ea25fe3abababba0c3333b4acf2234 /Makefile
parent8a8417207729cb92ae4f3038a3a8bd5e6a0c0ce7 (diff)
fix make -j4
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a58a9cf..9f34f8a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@ EXEC=01 02 03 04 05
all: $(EXEC)
+.c.o:
+ $(CC) -o $@ -c $< $(CFLAGS)
+
01: input.o 01.o
$(CC) -o $@ $> $(LDFLAGS)
@@ -20,8 +23,5 @@ all: $(EXEC)
05: input.o 05.o
$(CC) -o $@ $> $(LDFLAGS)
-.c.o:
- $(CC) -o $@ -c $< $(CFLAGS)
-
clean:
rm -rf *.o $(EXEC)