forked from chuanluocs/CAmpactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 1.05 KB
/
Makefile
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
39
40
41
42
43
44
COMPILER = g++
CFLAGS = -O3 -std=c++11 -I./minisat/
PRE_CFLAGS = ${CFLAGS} -c
TARGET = CAmpactor
SRC_DIR = src
BIN_DIR = bin
LSOPTIMIZER = calocalsearch
LSOPTIMIZER_TARGET = ${SRC_DIR}/${LSOPTIMIZER}.o
LSOPTIMIZER_CPP_FILE = ${SRC_DIR}/${LSOPTIMIZER}.cpp
LSOPTIMIZER_H_FILE = ${SRC_DIR}/${LSOPTIMIZER}.h
LSOPTIMIZER_SOURCE_FILES = ${LSOPTIMIZER_H_FILE} ${LSOPTIMIZER_CPP_FILE}
TARGET_FILES = ${LSOPTIMIZER_TARGET}
MAIN_SOURCE_FILE = ${SRC_DIR}/main.cpp
UPDATE = update
CLEAN = clean
CLEANUP = cleanup
all: ${TARGET_FILES} ${TARGET} ${UPDATE} ${CLEAN}
${LSOPTIMIZER_TARGET}: ${LSOPTIMIZER_SOURCE_FILES}
${COMPILER} ${PRE_CFLAGS} ${LSOPTIMIZER_CPP_FILE} -o ${LSOPTIMIZER_TARGET}
${TARGET}: ${MAIN_SOURCE_FILE} ${TARGET_FILES}
${COMPILER} ${CFLAGS} ${MAIN_SOURCE_FILE} ${TARGET_FILES} minisat/core/Solver.o -o ${TARGET}
${UPDATE}:
chmod +x ${BIN_DIR}/*
${CLEAN}:
rm -f *~
rm -f ${SRC_DIR}/*.o
rm -f ${SRC_DIR}/*~
rm -f minisat/utils/*.or minisat/utils/*.o minisat/core/*.or minisat/core/*.o
rm -f minisat/core/depend.mk
${CLEANUP}: ${CLEAN}
rm -f ${TARGET}