#################################################################
#
# Targets
#
#################################################################
TARGET = append.exe

#################################################################
#
# Compile flags
#
#################################################################
CC = gcc
CFLAGS = -c -Wall -W -g -DEVAL -DDEBUG -I../../../include
LDFLAGS = -lm -pthread -lreadline -ltermcap -lz -L/usr/local/lib:/usr/lib
RM = rm -f

#################################################################
#
# Objects
#
#################################################################
OBJ_LIBS = ../../../lib/libWrapper.o ../../../lib/connectCli.o ../../../lib/releaseAllocatedSpace.o ../../../lib/libkraft.o
OBJ_TCLI = append.o

#################################################################
#
# Rules for make
#
#################################################################
all: $(TARGET) 

$(TARGET): $(OBJ_TCLI) $(OBJ_LIBS) 
	$(CC) $(LDFLAGS) -o $@ $^

.c.o:
	$(CC) $(CFLAGS) $<


#################################################################
#
# Clean up
#
#################################################################
clean: 
	$(RM) *.core *.stackdump err *.o *.exe *~ $(TARGET)
