# when building libasync to install it in some directory where you'd like it,
# provide a --prefix argument, e.g. "./configure --prefix=$HOME/libasync".
# Make sure ASYNC_HOME below is the same as whatever --prefix argument you use.

ASYNC_HOME = $(HOME)/libasync# (argument to ./configure --prefix= )

CXX        =  g++
CXX_D      =  
CXX_I      =  -I$(ASYNC_HOME)/include/6894-0.1
CXX_O      =
CXX_G      = -g
CXX_W      =  -Wall# -Werror
CXXFLAGS   =  $(CXX_D) $(CXX_I) $(CXX_O) $(CXX_G) $(CXX_W)
LDFLAGS    = -g
LIBS       = -lm -lresolv -lnsl -L$(ASYNC_HOME)/lib/6894-0.1 -lasync

#############################################################################

.PHONY: clean

TARGET  = tcpproxy
OBJS    = tcpproxy.o

$(TARGET): $(OBJS) 
	$(CXX) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)

.C.o:
	$(CXX) $(CXXFLAGS) -c $<

clean:
	rm -f $(TARGET) *.o core *.core *.out
