From 0a599caf862f459e179f3d3841f9764a608381bc Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 16 Oct 2019 22:43:18 +0200 Subject: Added simple hashing function like the one in lecture --- sem1/osc/mm10/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sem1/osc/mm10/Makefile') 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) -- cgit v1.2.3