| 1 |
CXXFLAGS=-O3 -fPIC `pkg-config Qt5Widgets --cflags` |
| 2 |
LDFLAGS=-lgecodedriver -lgecodesupport -lgecodekernel -lgecodesearch -lgecodeint -lgecodeminimodel -lgecodegist -lgecodeset -lgecodefloat -lpthread `pkg-config Qt5Widgets --libs` |
| 3 |
EXAMPLES=$(patsubst %.cpp,%,$(wildcard *.cpp)) $(patsubst %.cpp.gz,%,$(wildcard *.cpp.gz)) |
| 4 |
|
| 5 |
all: $(EXAMPLES) |
| 6 |
|
| 7 |
examples/scowl.hpp examples/sudoku-instances.hh $(addsuffix .cpp,$(EXAMPLES)): |
| 8 |
gunzip [email protected] |
| 9 |
|
| 10 |
$(addsuffix .o,$(EXAMPLES)): $(addsuffix .cpp,$(EXAMPLES)) examples/scowl.hpp examples/sudoku-instances.hh |
| 11 |
g++ $(CXXFLAGS) $(patsubst %.o,%.cpp,$@) -c |
| 12 |
|
| 13 |
clean: |
| 14 |
rm -f $(EXAMPLES) |
| 15 |
rm -f *.o |
| 16 |
|
| 17 |
.PHONY: all clean |
| 18 |
|
| 19 |
.SECONDEXPANSION: |
| 20 |
$(EXAMPLES): [email protected] |
| 21 |
g++ [email protected] -o $@ $(LDFLAGS) |