# (c) Zdenek Kabelac 1999, Released under GPL
#
# tunnel source code
#

include ../phm.mk

CFLAGS += `gtk-config --cflags` $(SOURCE)

TARGET = tunnels

OBJS = net.o sphere.o vectors.o tunnels.o

LOADLIBES = -lm -lpthread

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -o $@ $(OBJS) $(LOADLIBES)

clean:
	@echo -n "Cleaning... "
	@$(RM) -f core $(TARGET)
	@$(RM) -f core `find . -name '*.[oas]' -print` 
	@$(RM) -f core `find . -name '*~' -print` 
	@$(RM) -f core `find . -type f -name 'core' -print`
	@echo "done"
