dio.o data.o get.o cmd.o buffer.o
libcomedi.a: $(OBJS)
- #gcc -shared -Wl,-soname,libcomedi.so,-T,version_script -o libcomedi.so.${VERSION_CODE} $(OBJS) -lm
- gcc -shared -Wl,-soname,libcomedi.so.0 -o libcomedi.so.${version} $(OBJS) -lm
- ar rs libcomedi.a $(OBJS)
+ #$(CC) -shared -Wl,-soname,libcomedi.so,-T,version_script -o libcomedi.so.${VERSION_CODE} $(OBJS) -lm
+ $(CC) -shared -Wl,-soname,libcomedi.so.0 -o libcomedi.so.${version} $(OBJS) -lm
+ $(AR) rs libcomedi.a $(OBJS)
ln -sf libcomedi.so.${version} libcomedi.so
ln -sf libcomedi.so.${version} libcomedi.so.0
CFLAGS =-I ../include -I . -O2 -Wall -Wstrict-prototypes
-LDFLAGS=-L../lib/ -lcomedi -static
+LDFLAGS=-L../lib/ -lcomedi -lm -static
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
+ cmd_2.o mmap.o select.o cmd_3.o bufconfig.o lib.o inttrig.o
all: $(TARG)