| 1 |
# Sub-Makefile to deal with Nauty related stuff |
| 2 |
|
| 3 |
help: |
| 4 |
@echo Available targets: |
| 5 |
@echo ' nauty-objects - compile only nauty.o nautil.o naugraph.o schreier.o naurng.o' |
| 6 |
@echo ' nauty-programs - build all nauty programs' |
| 7 |
@echo ' clean-nauty - a "distclean" for nauty' |
| 8 |
@echo |
| 9 |
@echo 'Pynauty version:' ${PYNAUTY_VERSION} |
| 10 |
@echo 'Nauty version: ' ${NAUTY_VERSION} |
| 11 |
@echo 'Nauty directory:' ${NAUTY_DIR} |
| 12 |
|
| 13 |
nauty-config: $(NAUTY_DIR)/config.log |
| 14 |
$(NAUTY_DIR)/config.log: |
| 15 |
cd $(NAUTY_DIR); ./configure CFLAGS='-O4 -fPIC' |
| 16 |
|
| 17 |
nauty-objects: nauty-config |
| 18 |
cd $(NAUTY_DIR); make nauty.o nautil.o naugraph.o schreier.o naurng.o |
| 19 |
|
| 20 |
nauty-programs: nauty-config |
| 21 |
cd $(NAUTY_DIR); make |
| 22 |
|
| 23 |
GTOOLS = copyg listg labelg dretog amtog geng complg shortg showg NRswitchg \ |
| 24 |
biplabg addedgeg deledgeg countg pickg genrang newedgeg catg genbg directg \ |
| 25 |
multig planarg gentourng ranlabg runalltests subdivideg watercluster2 \ |
| 26 |
linegraphg naucompare |
| 27 |
|
| 28 |
clean-nauty: |
| 29 |
cd $(NAUTY_DIR); rm -f *.o dreadnaut ${GTOOLS} nauty.a nauty1.a |
| 30 |
cd $(NAUTY_DIR); rm -f makefile config.log config.status gtools.h naututil.h nauty.h |
| 31 |
|
| 32 |
# vim: filetype=make syntax=make |