# "/x-compile" is a link file which link to the real cross compile dir
# TOOLCHAIN_HOME=/home/sdt/sdt/x_compile
# TOOLCHAIN_BIN := $(TOOLCHAIN_HOME)/bin
# TOOLCHAIN_LIB := $(TOOLCHAIN_HOME)/lib
# #### Modify TOOLCHAIN_NAME with real
# TOOLCHAIN_NAME=aarch64-linux-
#
# CC := $(TOOLCHAIN_BIN)/$(TOOLCHAIN_NAME)gcc
# CXX := $(TOOLCHAIN_BIN)/$(TOOLCHAIN_NAME)g++
# AR := $(TOOLCHAIN_BIN)/$(TOOLCHAIN_NAME)ar
# LD := $(TOOLCHAIN_BIN)/$(TOOLCHAIN_NAME)ld
#

CC := gcc
CFLAGS=-g -Wall -DOUTPUT_MSG
#CFLAGS=-g -Wall 
LDLIBS+= ./lsdtapi/libsdtapi.so ./samtool/lib/libsamtool.so

all:lsdttest

##lsdttest.o: lsdttest.c 
##tsam_api.o: tsam_api.c
##bmp.o: bmp.c
lsdttest: 
	$(CC) $(CFLAGS) lsdttest.c tsam_api.c bmp.c -o lsdttest -ldl -lsdtapi -lsamtool -L./lsdtapi/ -L./samtool/lib/

clean:
	rm -f *.o lsdttest
	
