diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-09-30 10:55:55 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-09-30 10:55:55 +0200 |
commit | a06ff64534815cbf702a3847a19443612d307b80 (patch) | |
tree | 0b2023643f0d9d86296d4e4cbd9a683995d26230 /blossom5-v2.05.src/Makefile | |
parent | fc1f46cd4870476d77b5ab28799f47de242e3617 (diff) | |
download | code-a06ff64534815cbf702a3847a19443612d307b80.tar.gz code-a06ff64534815cbf702a3847a19443612d307b80.tar.bz2 code-a06ff64534815cbf702a3847a19443612d307b80.zip |
Changed rbmp to use blossom algorithm.
Diffstat (limited to 'blossom5-v2.05.src/Makefile')
-rw-r--r-- | blossom5-v2.05.src/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/blossom5-v2.05.src/Makefile b/blossom5-v2.05.src/Makefile new file mode 100644 index 0000000..da30258 --- /dev/null +++ b/blossom5-v2.05.src/Makefile @@ -0,0 +1,26 @@ +DIRS := . MinCost GEOM
+
+SOURCES := $(foreach dir, $(DIRS), $(wildcard $(dir)/*.cpp))
+OBJS := $(patsubst %.cpp, %.o, $(SOURCES))
+
+CFLAGS := -O3 -D_NDEBUG
+CXX ?= c++
+LIBS :=
+INCLUDES :=
+LIBDIR :=
+
+# Add librt if the target platform is not Darwin (OS X)
+ifneq ($(shell uname -s),Darwin)
+ LIBS += -lrt
+endif
+
+all: blossom5
+
+blossom5: ${OBJS}
+ $(CXX) $(CFLAGS) ${LIBDIR} -o $@ ${OBJS} ${LIBS}
+
+.cpp.o:
+ $(CXX) $(CFLAGS) ${INCLUDES} $< -c -o $@
+
+clean:
+ rm -f ${OBJS} blossom5
|