diff options
author | Julian T <julian@jtle.dk> | 2019-10-16 22:43:18 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2019-10-16 22:46:25 +0200 |
commit | 0a599caf862f459e179f3d3841f9764a608381bc (patch) | |
tree | 5c38eec875bc7145da1caed2276b7ceba0e474ec /sem1/osc/mm10/Makefile | |
parent | 05c1fcd85ab196df585fa2b680ff1aed4f6d2996 (diff) |
Added simple hashing function like the one in lecture
Diffstat (limited to 'sem1/osc/mm10/Makefile')
-rw-r--r-- | sem1/osc/mm10/Makefile | 12 |
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) |