# Makefile for primal-dual vertex and facet enumeration
# Read the manual and the installation instructions at
# http://wwwjn.inf.ethz.ch/ambros/pd_man.html

CC = gcc -Wall
CFLAGS = -O -DNDEBUG -DOMIT_TIMES

pd:

clean:
	-rm -f *.o

veryclean:
	-rm -f *.o
	rm -f pd

PD_OBJECTS = pd.o prs_mp.o

# fast nodebug version
pd:	$(PD_OBJECTS)
	rm -f $@
	$(CC) $(CFLAGS) -o $@ $(PD_OBJECTS) $(LFLAGS)

# debug version with as little output as pd
pd.short: pd.c prs_mp.c prs_mp.h
	$(CC) -g -o pd.short pd.c prs_mp.c

# debug version with more output than pd.short
pd.info: pd.c prs_mp.c prs_mp.h
	$(CC) -g -DINFO -o pd.info pd.c prs_mp.c

# DO NOT DELETE THIS LINE -- make depend depends on it.

pd.o: prs_mp.h
prs_mp.o: prs_mp.h
