add CC=gcc for linux compilation. I hate autotools
This commit is contained in:
7
Makefile
7
Makefile
@@ -5,13 +5,14 @@
|
|||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
OPT = -Wall -g -DDEBUG_LEVEL=1 -DMUST_ABORT
|
OPT = -Wall -g -DDEBUG_LEVEL=1 -DMUST_ABORT
|
||||||
|
CC = gcc
|
||||||
|
|
||||||
bubulles.o: bubulles.c bubulles.h Makefile
|
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
|
tbb: tbb.c bubulles.h bubulles.o Makefile
|
||||||
clang $(OPT) $< bubulles.o -o tbb
|
$(CC) $(OPT) $< bubulles.o -o tbb
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
|
|||||||
2
tbb.c
2
tbb.c
@@ -116,7 +116,7 @@ int foo;
|
|||||||
|
|
||||||
printf("*** Bubulles Testing -- %s %s\n\n", __DATE__, __TIME__);
|
printf("*** Bubulles Testing -- %s %s\n\n", __DATE__, __TIME__);
|
||||||
|
|
||||||
bubulles_version(0);
|
bubulles_version(1);
|
||||||
|
|
||||||
test_alloc_free(5);
|
test_alloc_free(5);
|
||||||
test_push_pop(2000);
|
test_push_pop(2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user