summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-28 17:19:29 -0600
committermo khan <mo.khan@gmail.com>2020-06-28 17:19:29 -0600
commit06dde3865c34cc1b8357e332ac5af127d53072c2 (patch)
treeb0dc7e6b678ad9ad0dcb89830193654181506c0e /Makefile
parent95137a63a75dc2aa51a695ed2f80e9ad73bf8f48 (diff)
Rename main.c to test.c
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 17f2cfd..4c359b5 100755
--- a/Makefile
+++ b/Makefile
@@ -5,23 +5,20 @@ CC=gcc
LIBS = -lcgreen
BUILDDIR := build
-OBJS := $(addprefix $(BUILDDIR)/,priority_queue_test.o stack_test.o min_stack_test.o swap_singly_linked_list_test.o swap_doubly_linked_list_test.o main.o)
-
-#doc : doc/
-#doxygen Doxyfile
+OBJS := $(addprefix $(BUILDDIR)/,priority_queue_test.o stack_test.o min_stack_test.o swap_singly_linked_list_test.o swap_doubly_linked_list_test.o test.o)
$(BUILDDIR)/%.o : src/01/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
test : all
- cgreen-runner -c $(BUILDDIR)/main
+ cgreen-runner -c $(BUILDDIR)/program
ci : all
- cgreen-runner -c --xml=$(BUILDDIR)/ $(BUILDDIR)/main
+ cgreen-runner -c --xml=$(BUILDDIR)/ $(BUILDDIR)/program
.PHONY: all
all: $(OBJS) $(BUILDDIR)/html
- $(CC) $(OBJS) $(LIBS) -o $(BUILDDIR)/main
+ $(CC) $(OBJS) $(LIBS) -o $(BUILDDIR)/program
$(OBJS): | $(BUILDDIR)