2018-11-10 21:31:31 +11:00
|
|
|
|
|
|
|
#############################################
|
2018-11-27 01:11:23 +11:00
|
|
|
#
|
2018-11-10 21:31:31 +11:00
|
|
|
# making the bubulles library
|
2018-11-27 01:11:23 +11:00
|
|
|
#
|
|
|
|
# for compiling on FreeBSD :
|
|
|
|
# $ gmake CC=clang tbb
|
|
|
|
#
|
2018-11-10 21:31:31 +11:00
|
|
|
#############################################
|
|
|
|
|
2018-11-17 01:31:33 +11:00
|
|
|
CC = gcc
|
|
|
|
|
2020-06-05 19:49:38 +11:00
|
|
|
OPT = -Wall -g -DDEBUG_LEVEL=0 -DMUST_ABORT=0
|
2018-11-10 21:31:31 +11:00
|
|
|
|
2020-06-05 09:17:17 +11:00
|
|
|
libbubulles.a: bubulles.o importobj.o
|
2019-09-18 03:37:39 +11:00
|
|
|
ar r $@ $?
|
|
|
|
|
2018-11-10 21:31:31 +11:00
|
|
|
bubulles.o: bubulles.c bubulles.h Makefile
|
2018-11-16 22:52:33 +11:00
|
|
|
$(CC) $(OPT) -c $<
|
2018-11-10 22:22:28 +11:00
|
|
|
|
2020-06-05 09:17:17 +11:00
|
|
|
importobj.o: importobj.c bubulles.h Makefile
|
|
|
|
$(CC) $(OPT) -c $<
|
|
|
|
|
2020-05-10 06:44:10 +11:00
|
|
|
# ------------------------------------------------
|
2018-11-16 22:52:33 +11:00
|
|
|
# --- build some tests and tools
|
2018-11-10 22:22:28 +11:00
|
|
|
|
2018-11-10 21:31:31 +11:00
|
|
|
tbb: tbb.c bubulles.h bubulles.o Makefile
|
2018-11-16 22:52:33 +11:00
|
|
|
$(CC) $(OPT) $< bubulles.o -o tbb
|
2018-11-10 21:31:31 +11:00
|
|
|
|
|
|
|
#############################################
|