summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)