summaryrefslogtreecommitdiff
path: root/src/01
diff options
context:
space:
mode:
Diffstat (limited to 'src/01')
-rw-r--r--src/01/01a/Makefile27
-rw-r--r--src/01/01a/README.md0
-rw-r--r--src/01/01a/priority_queue.c0
-rw-r--r--src/01/01a/priority_queue.h0
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