INC_DIR= ../../include
LIB_DIR= ../../lib
BIN_DIR= ../../bin

LDFLAG=@LDFLAG@ -L$(LIB_DIR)
LIBS= -lARgsub_lite -lARvideo -lAR @LIBS@
CFLAG= @CFLAG@ -I$(INC_DIR)

OBJS =
HEADDERS =

all: $(BIN_DIR)/twoView

$(BIN_DIR)/twoView: twoView.o $(OBJS)
	cc -o $(BIN_DIR)/twoView twoView.o $(OBJS) $(LDFLAG) $(LIBS)

twoView.o: twoView.c $(HEADDERS)
	cc -c $(CFLAG) twoView.c

clean:
	rm -f *.o
	rm -f $(BIN_DIR)/twoView

allclean:
	rm -f *.o
	rm -f $(BIN_DIR)/twoView
	rm -f Makefile
