
# File: Makefile
# Created by: Pradeep Shenoy (purdy@cse.iitb.ernet.in)
# Last Modified: 12 Aug 1999
# Description: 
# 	Makefile for the Viper code

TARGET	= viper
CXX 	= g++
#CXXFLAGS=  -Wall -g
CXXFLAGS=  -Wall -O2 
LDFLAGS=   -lm
OBJS	= largeset.o cand.o snakes.o preproc.o viper.o

all: $(TARGET)

$(TARGET): $(OBJS) db.o
	$(CXX) $(CXXFLAGS) $(OBJS) db.o $(LDFLAGS) -o $(TARGET)

neat:
	rm -f *.o core file?.dat
clean: 
	rm -f $(TARGET) *.o core file?.dat

cand.o	:  cand.C
snakes.o:  snakes.C
preproc.o: preproc.C
viper.o	:  viper.C
largeset.o: largeset.C
db.o     : db.C

# DO NOT DELETE

cand.o: include/cand.h include/global.h include/global.h
hashtable.o: include/prune.h include/largeset.h include/itemset.h
largeset.o: include/largeset.h include/itemset.h
preproc.o: include/global.h include/snakes.h include/global.h
preproc.o: include/largeset.h include/itemset.h include/tidheap.h
snakes.o: include/snakes.h include/global.h
viper.o: include/snakes.h include/global.h include/cand.h include/tidheap.h
viper.o: include/global.h include/largeset.h include/itemset.h
