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 TOOLDIR = ${OETMP}/sysroots/i686-linux/usr/armv7a/bin
19 STAGEDIR = ${OETMP}/sysroots/armv7a-angstrom-linux-gnueabi/usr
21 CC = ${TOOLDIR}/arm-angstrom-linux-gnueabi-gcc
24 #CFLAGS = -Wall -lm -lpthread -DDEBUG_FILE_MIN -DDEBUG_FILE_MIN_PERIOD=1
26 CFLAGS = -Wall -lm -lpthread
28 LIBDIR = ${STAGEDIR}/lib
30 INCDIR = ${STAGEDIR}/include
34 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
36 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
38 ${TARGET} : $(OBJS) $(HDRS)
39 ${CC} ${CFLAGS} ${OBJS} -L ${LIBDIR} -o ${TARGET}
42 # ${CC} ${CFLAGS} -I ${INCDIR} -c meas.c
45 rm -f ${TARGET} ${OBJS} *~