File: Makefile

package info (click to toggle)
comedilib 0.7.18-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,776 kB
  • ctags: 883
  • sloc: ansic: 6,754; perl: 702; makefile: 249; sh: 61; python: 9
file content (25 lines) | stat: -rw-r--r-- 651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

include ../Config

CFLAGS += -I../include -I.
LDFLAGS += -L../lib/ -lcomedi -lm


TARG=comedi_test
OBJS=main.o mode0_read.o insn_read.o info.o cmd_1.o insn_read_time.o \
	cmd_2.o mmap.o select.o cmd_3.o bufconfig.o lib.o inttrig.o

all: $(TARG)

$(TARG):	$(OBJS)
	$(CC) -o $(TARG) $(OBJS) $(LDFLAGS)

clean:
	-rm -f $(TARG) $(OBJS) test.out test.diff

test: $(TARG)
	LD_LIBRARY_PATH=../lib COMEDILIB_LOGLEVEL=3 ./comedi_test -f /dev/comedi0 >test.out 2>&1
	devicename=`grep 'I: device name:' test.out | sed 's/I: device name: //'`
	-diff -u results/`grep 'I: device name:' test.out | sed 's/I: device name: //'` test.out >test.diff

distclean: clean