# Makefile for dp (0.1)

# Should compile with every ANSI-C compiler
# Some additional defines
#   -DVERBOSE - allows some higher verbosity levels
#   -DCHECK   - does some extra checkings

# GCC is preferredd
CC = gcc
# For Debugging
# CFLAGS = -Wall -g  -DVERBOSE -DCHECK
# For Profiling 
# CFLAGS = -Wall -O2 -finline-functions -pg 
# For Running 
CFLAGS = -Wall -O2 -finline-functions 

OBJS = silist.o pblist.o dp.o
SRCS = silist.c silist.h pblist.c pblist.h dp.c protos.h
EXAMPLES = sample.cnf hole6 hole7 hole10 nod5col4 ulm027r0 ulmbc024
OTHER = README COPYING Makefile

dp      : $(OBJS) 
	$(CC) -o dp  $(OBJS)

clean   :
	-/bin/rm $(OBJS) dp

distrib : 
	-/bin/rm dp.tar.Z
	tar -cvf dp.tar $(SRCS) $(EXAMPLES) $(OTHER)
	compress dp.tar

.c.o : 
	$(CC) -c $(CFLAGS) $*.c -o $*.o

