diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-29 12:53:35 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-29 12:53:35 -0600 |
| commit | c131d50cbdd8a0c7164de60bf03530c15ded9676 (patch) | |
| tree | a9e80a2b41df0ce58ec7609b211fd37dfe370d9a /src/01/01a | |
| parent | e5f55cfd9dec028d537e6b95c0545ec017ee51a5 (diff) | |
Create Makefile for assignment 1 question 1.a
Diffstat (limited to 'src/01/01a')
| -rw-r--r-- | src/01/01a/Makefile | 27 | ||||
| -rw-r--r-- | src/01/01a/README.md | 0 | ||||
| -rw-r--r-- | src/01/01a/priority_queue.c | 0 | ||||
| -rw-r--r-- | src/01/01a/priority_queue.h | 0 |
4 files changed, 27 insertions, 0 deletions
diff --git a/src/01/01a/Makefile b/src/01/01a/Makefile new file mode 100644 index 0000000..7952e21 --- /dev/null +++ b/src/01/01a/Makefile @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +SHELL=/bin/sh + +CC=gcc +LIBS = -lcgreen + +BUILDDIR := build +OBJS := $(addprefix $(BUILDDIR)/,priority_queue.o priority_queue_test.o) + +$(BUILDDIR)/%.o : %.c + $(COMPILE.c) $(OUTPUT_OPTION) $< + +.PHONY: all +all: $(OBJS) + $(CC) $(OBJS) $(LIBS) -o $(BUILDDIR)/program + +$(OBJS): | $(BUILDDIR) + +$(BUILDDIR): + mkdir $(BUILDDIR) + +.PHONY: clean +clean: + rm -fr build + +test : all + cgreen-runner -c -v $(BUILDDIR)/program diff --git a/src/01/01a/README.md b/src/01/01a/README.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/01/01a/README.md diff --git a/src/01/01a/priority_queue.c b/src/01/01a/priority_queue.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/01/01a/priority_queue.c diff --git a/src/01/01a/priority_queue.h b/src/01/01a/priority_queue.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/01/01a/priority_queue.h |
