mirror of
https://github.com/BlackLight/libCSP--.git
synced 2024-11-24 04:35:12 +01:00
32 lines
480 B
Makefile
32 lines
480 B
Makefile
|
SRC = csp++.cpp
|
||
|
OBJ = $(SRC:.cpp=.o)
|
||
|
OUT = libcsp++.a
|
||
|
INCLUDES = -I.
|
||
|
CCFLAGS = -O3 -g
|
||
|
CC = g++
|
||
|
FOURCOLOURS = fourcolours
|
||
|
|
||
|
.SUFFIXES: .cpp
|
||
|
|
||
|
.cpp.o:
|
||
|
$(CC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
|
||
|
|
||
|
$(OUT): $(OBJ)
|
||
|
ar rcs $(OUT) $(OBJ)
|
||
|
|
||
|
depend: dep
|
||
|
|
||
|
dep:
|
||
|
makedepend -- $(CFLAGS) -- $(INCLUDES) $(SRC)
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OBJ) $(OUT) $(EXAMPLE)
|
||
|
|
||
|
fourcolours:
|
||
|
$(CC) $(INCLUDES) $(CCFLAGS) -o $(FOURCOLOURS) $(FOURCOLOURS).cpp $(OUT)
|
||
|
|
||
|
examples: fourcolours
|
||
|
|
||
|
clean-examples:
|
||
|
rm ${FOURCOLOURS}
|