File: Makefile

package info (click to toggle)
colpack 1.0.10-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,700 kB
  • sloc: cpp: 49,807; ansic: 1,231; makefile: 419; sh: 13
file content (38 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# make file for using installed library
# author xin cheng
# usage: chage the following two variable accordingly
COLPACK_INSTALL_PATH = ../../libs/libColPack.so
COLPACK_ROOT = ../..

SRC = $(wildcard *.cpp)
OBJ = $(SRC:%.cpp=%.o)
EXE = ColPack

# compiler
COMPILE = g++      # gnu

# compile flags
CCFLAGS = -Wall -fopenmp -O3 -std=c++11

# link flags
LDFLAGS = -Wall -fopenmp -O3 -std=c++11 -ldl ${COLPACK_INSTALL_PATH}

INCLUDES = -I./
INCLUDES+= -I${COLPACK_ROOT}/INC
INCLUDES+= -I${COLPACK_ROOT}/SRC/GeneralGraphColoring
INCLUDES+= -I${COLPACK_ROOT}/SRC/BipartiteGraphBicoloring
INCLUDES+= -I${COLPACK_ROOT}/SRC/BipartiteGraphPartialColoring
INCLUDES+= -I${COLPACK_ROOT}/SRC/Utilities


all: $(EXE)

%.o : %.cpp
	$(COMPILE) $(INCLUDES) $(CCFLAGS) -c $< -o $@

$(EXE): $(OBJ)
	$(COMPILE) $^ $(INCLUDES) $(LDFLAGS)  -o $@

clean:
	rm -f $(OBJ) $(EXE)