aboutsummaryrefslogtreecommitdiff
path: root/Practical2/c/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Practical2/c/Makefile')
-rw-r--r--Practical2/c/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Practical2/c/Makefile b/Practical2/c/Makefile
index 270a693..e64a1f7 100644
--- a/Practical2/c/Makefile
+++ b/Practical2/c/Makefile
@@ -1,15 +1,13 @@
CC=gcc
+OBJS=checkout
.PHONY: all run clean
-all: checkout
+all: $(OBJS)
-checkout:
- $(CC) -o checkout checkout.c
-
-run:
- ./checkout
+$(OBJS): % : %.c
+ $(CC) -o $@ $<
clean:
- rm checkout
+ rm $(OBJS)