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