Debian Codegraph @

booster/Makefile

raw symbols SCIP
1 # Version of booster
2 GIT_VERSION := $(shell git describe --abbrev=10 --dirty --always --tags)
3
4 UNAME := $(shell uname)
5
6 CFLAGS = -Wall -g -O3 -DVERSION=\"$(GIT_VERSION)\"
7 CFLAGS_OMP = -Wall -g -fopenmp
8
9 # Compiler: gcc
10 ifeq ($(cross),win32)
11 CC = i686-w64-mingw32-gcc
12 else
13 ifeq ($(cross),win64)
14 CC = x86_64-w64-mingw32-gcc
15 else
16 ifeq ($(cross),linux32)
17 CFLAGS_OMP += -m32
18 CFLAGS += -m32
19 else
20 CC = gcc
21 endif
22 endif
23 endif
24
25 ifeq ($(UNAME),Darwin)
26 CFLAGS_OMP += -static-libgcc
27 #else
28 # CFLAGS_OMP += -static
29 endif
30
31 LIBS = -lm
32 OBJS = hashtables_bfields.o tree.o stats.o prng.o hashmap.o version.o sort.o io.o tree_utils.o bitset_index.o
33
34 # default target
35 ALL = booster
36
37 INSTALL_PATH=$$HOME/bin/
38
39 all : $(ALL)
40
41 %.o: %.c %.h
42 $(CC) $(CFLAGS) -c $<
43
44 # ****
45 # the "booster" supports. Needs ref tree and bt trees.
46 # ****
47 booster: $(OBJS) booster.c
48 $(CC) $(CFLAGS_OMP) -o $@ $^ $(LIBS)
49
50
51 # ****
52 # TESTS
53 # ****
54 tests: $(OBJS) test.c
55 $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
56
57 test : tests
58 ./tests
59
60 .PHONY: clean
61
62 clean:
63 rm -f *~ *.o $(ALL) tests
64 rm -rf *.dSYM
65
66 install: all
67 mkdir -p $(INSTALL_PATH)
68 cp $(ALL) $(INSTALL_PATH)
69
70 uninstall:
71 rm $(addprefix $(INSTALL_PATH),$(ALL))