libCSP--/Makefile

32 lines
719 B
Makefile
Raw Normal View History

2010-05-19 03:21:35 +02:00
INCLUDES = -I.
CCFLAGS = -O3 -g
CC = g++
FOURCOLOURS = fourcolours
2010-05-24 02:45:09 +02:00
SUDOKU = sudoku
SUFFIX = .cpp
INCLUDEDIR=csp++
INSTALLDIR=/usr/local
2010-05-19 03:21:35 +02:00
2010-05-24 02:45:09 +02:00
examples: fourcolours sudoku
2010-05-19 03:21:35 +02:00
2010-05-24 02:45:09 +02:00
examples-clean: fourcolours-clean sudoku-clean
2010-05-19 03:21:35 +02:00
2010-05-24 02:45:09 +02:00
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}
2010-05-19 03:21:35 +02:00
fourcolours:
2010-05-24 02:45:09 +02:00
$(CC) $(INCLUDES) $(CCFLAGS) -o $(FOURCOLOURS) $(FOURCOLOURS)${SUFFIX}
2010-05-19 03:21:35 +02:00
2010-05-24 02:45:09 +02:00
sudoku:
$(CC) $(INCLUDES) $(CCFLAGS) -o $(SUDOKU) $(SUDOKU)${SUFFIX}
2010-05-19 03:21:35 +02:00
2010-05-24 02:45:09 +02:00
fourcolours-clean:
2010-05-19 03:21:35 +02:00
rm ${FOURCOLOURS}
2010-05-24 02:45:09 +02:00
sudoku-clean:
rm ${SUDOKU}