1 # Makefile for building with the OE cross tools
3 # OVEROTOP is normally ${HOME}/overo-oe
5 # OETMP is the same as TMPDIR as defined in ${OVEROTOP}/build/conf/site.conf
8 OETMP = ${OVEROTOP}/tmp
10 # There were some OE toolchain path changes recently
12 # OE prior to around 30July2010
13 # TOOLDIR = ${OETMP}/cross/armv7a/bin
14 # STAGEDIR = ${OETMP}/staging/armv7a-angstrom-linux-gnueabi/usr
17 TOOLDIR = ${OETMP}/sysroots/`uname -m`-linux/usr/armv7a/bin
18 STAGEDIR = ${OETMP}/sysroots/armv7a-angstrom-linux-gnueabi/usr
20 CC = ${TOOLDIR}/arm-angstrom-linux-gnueabi-gcc
23 #CFLAGS = -Wall -lm -lpthread -DDEBUG_FILE_MIN -DDEBUG_FILE_MIN_PERIOD=1
25 CFLAGS = -Wall -lm -lpthread
27 LIBDIR = ${STAGEDIR}/lib
29 INCDIR = ${STAGEDIR}/include
33 OBJS = scilog.o spi.o thread_rcv.o ring.o ad_ring.o thread_rec.o sts.o ad_file.o conf.o lcd.o thread_disp.o
35 HDRS = mes_print.h debug_print.h spi.h my_thread.h ring.h ad_ring.h thread_rec.h sts.h ad_file.h conf.h lcd.h
37 ${TARGET} : $(OBJS) $(HDRS)
38 ${CC} ${CFLAGS} ${OBJS} -L ${LIBDIR} -o ${TARGET}
41 # ${CC} ${CFLAGS} -I ${INCDIR} -c meas.c
44 rm -f ${TARGET} ${OBJS} *~