mirror of
https://github.com/BlackLight/libCSP--.git
synced 2024-11-14 15:27:15 +01:00
31 lines
719 B
Makefile
31 lines
719 B
Makefile
INCLUDES = -I.
|
|
CCFLAGS = -O3 -g
|
|
CC = g++
|
|
FOURCOLOURS = fourcolours
|
|
SUDOKU = sudoku
|
|
SUFFIX = .cpp
|
|
INCLUDEDIR=csp++
|
|
INSTALLDIR=/usr/local
|
|
|
|
examples: fourcolours sudoku
|
|
|
|
examples-clean: fourcolours-clean sudoku-clean
|
|
|
|
install:
|
|
mkdir -p ${INSTALLDIR}/include
|
|
mkdir -p ${INSTALLDIR}/include/${INCLUDEDIR}
|
|
cp ${INCLUDEDIR}/csp++-def.h ${INSTALLDIR}/include/${INCLUDEDIR}
|
|
cp ${INCLUDEDIR}/csp++.h ${INSTALLDIR}/include/${INCLUDEDIR}
|
|
cp ${INCLUDEDIR}/csp++.cpp ${INSTALLDIR}/include/${INCLUDEDIR}
|
|
|
|
fourcolours:
|
|
$(CC) $(INCLUDES) $(CCFLAGS) -o $(FOURCOLOURS) $(FOURCOLOURS)${SUFFIX}
|
|
|
|
sudoku:
|
|
$(CC) $(INCLUDES) $(CCFLAGS) -o $(SUDOKU) $(SUDOKU)${SUFFIX}
|
|
|
|
fourcolours-clean:
|
|
rm ${FOURCOLOURS}
|
|
|
|
sudoku-clean:
|
|
rm ${SUDOKU}
|