aboutsummaryrefslogtreecommitdiff
path: root/sem1/osc/mm10/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sem1/osc/mm10/Makefile')
-rw-r--r--sem1/osc/mm10/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/sem1/osc/mm10/Makefile b/sem1/osc/mm10/Makefile
index 3d4089e..99bd635 100644
--- a/sem1/osc/mm10/Makefile
+++ b/sem1/osc/mm10/Makefile
@@ -1,4 +1,4 @@
-opgaver=opg1 opg3
+opgaver=opg1 opg3 opg4
LEX=flex
CC=gcc
@@ -8,12 +8,18 @@ DEFAULT_TARGET=all
%: %.yy.c
$(CC) -o $@ $^ $(LINKFLAG)
+%.o: %.c
+ $(CC) -c -o $@ $^
+
%.yy.c: %.l
$(LEX) -o $@ $^
all: $(opgaver)
-phony: all clean
+phony: all clean run
+
+run: $(BIN)
+ ./$(BIN)
clean:
- rm $(opgaver)
+ rm -f $(opgaver)