Commit 9e8bb9f0 authored by willem's avatar willem
Browse files

Cleaned up makefile

parent cbebc0ed
CONTRIB_DIR = .. CONTRIB_DIR = ..
HASHMAP_DIR = $(CONTRIB_DIR)/CHashMapViaLinkedList
BITSTREAM_DIR = $(CONTRIB_DIR)/CBitstream
LLQUEUE_DIR = $(CONTRIB_DIR)/CLinkedListQueue LLQUEUE_DIR = $(CONTRIB_DIR)/CLinkedListQueue
GCOV_OUTPUT = *.gcda *.gcno *.gcov GCOV_OUTPUT = *.gcda *.gcno *.gcov
GCOV_CCFLAGS = -fprofile-arcs -ftest-coverage GCOV_CCFLAGS = -fprofile-arcs -ftest-coverage
SHELL = /bin/bash SHELL = /bin/bash
CC = gcc CC = gcc
CCFLAGS = -g -O2 -Werror -Werror=return-type -Werror=uninitialized -Wcast-align -fno-omit-frame-pointer -fno-common -fsigned-char $(GCOV_CCFLAGS) -I$(HASHMAP_DIR) -I$(BITSTREAM_DIR) -I$(LLQUEUE_DIR) CCFLAGS = -g -O2 -Werror -Werror=return-type -Werror=uninitialized -Wcast-align -fno-omit-frame-pointer -fno-common -fsigned-char $(GCOV_CCFLAGS) -I$(LLQUEUE_DIR)
all: tests_main all: tests_main
...@@ -16,10 +14,10 @@ clinkedlistqueue: ...@@ -16,10 +14,10 @@ clinkedlistqueue:
git --git-dir=$(LLQUEUE_DIR)/.git init git --git-dir=$(LLQUEUE_DIR)/.git init
pushd $(LLQUEUE_DIR); git pull git@github.com:willemt/CLinkedListQueue.git; popd pushd $(LLQUEUE_DIR); git pull git@github.com:willemt/CLinkedListQueue.git; popd
download-contrib: cbitstream download-contrib: clinkedlistqueue
main_test.c: main_test.c:
if test -d $(HASHMAP_DIR); \ if test -d $(LLQUEUE_DIR); \
then echo have contribs; \ then echo have contribs; \
else make download-contrib; \ else make download-contrib; \
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment