From d6fde6312f61c1bf46218df49e5e89d57c38f2c4 Mon Sep 17 00:00:00 2001 From: tTh Date: Fri, 16 Nov 2018 12:52:33 +0100 Subject: [PATCH] add CC=gcc for linux compilation. I hate autotools --- Makefile | 7 ++++--- tbb.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6a162f3..552818f 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,14 @@ ############################################# OPT = -Wall -g -DDEBUG_LEVEL=1 -DMUST_ABORT +CC = gcc bubulles.o: bubulles.c bubulles.h Makefile - clang $(OPT) -c $< + $(CC) $(OPT) -c $< -# +# --- build some tests and tools tbb: tbb.c bubulles.h bubulles.o Makefile - clang $(OPT) $< bubulles.o -o tbb + $(CC) $(OPT) $< bubulles.o -o tbb ############################################# diff --git a/tbb.c b/tbb.c index 9fee20c..bda1c8e 100644 --- a/tbb.c +++ b/tbb.c @@ -116,7 +116,7 @@ int foo; printf("*** Bubulles Testing -- %s %s\n\n", __DATE__, __TIME__); -bubulles_version(0); +bubulles_version(1); test_alloc_free(5); test_push_pop(2000);