# Makefile

include ../master.mk

PROG = treesh

# if you need a C++ main, 
# -  copy tkMain.c to this dir
# -  change main() to tkmain() in tkMain.c
# -  uncomment out the line below
OBJECTS = tkAppInit.o
#OBJECTS = main.o tkMain.o tkAppInit.o

# include flags
CPPFLAGS = -I. -I.. -I$(INCLUDE_DIR) $(XINCLUDES)

# linker flags
LDFLAGS = -L../tree -L../OS 

# libraries to link
LDLIBS = -ltktree -lOS $(LIBS)

# extra objects to link (add dir tcl command)
LDOBJECTS = ../dir/Dir.o

# -- targets ---

all: $(PROG)

$(PROG): $(OBJECTS) 
	$(LINK.cc) -o $(PROG) $(OBJECTS) $(LDOBJECTS) $(LDLIBS)
	
clean:
	rm -f $(PROG) $(OBJECTS) *% core


