include ../Config
include ../version
-CFLAGS += -fPIC -D_REENTRANT -I../include -I.
+CPPFLAGS += -I../include -I.
+CFLAGS += -fPIC -D_REENTRANT
OBJS=comedi.o timer.o sv.o range.o ioctl.o filler.o timed.o error.o \
dio.o data.o get.o cmd.o buffer.o calib.o calib_lex.o calib_yacc.o
calib_yacc.c + calib_yacc.h: calib_yacc.y
bison -d -y -p calib_yy -o calib_yacc.c calib_yacc.y
+
+#dependency stuff
+%.d: %.c
+ set -e; $(CC) -MM $(CPPFLAGS) $< \
+ | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
+ [ -s $@ ] || rm -f $@
+
+include $(OBJS:.o=.d)
#include <comedi.h>
-#include <libinternal.h>
+#include "libinternal.h"
#include <string.h>
EXPORT_SYMBOL(comedi_set_buffer_size,0.7.18);
#include <stdio.h>
#include <string.h>
#include <comedilib.h>
-#include <libinternal.h>
+#include "libinternal.h"
static int check_cal_file( comedi_t *dev, struct calibration_file_contents *parsed_file )
{
lib/calib_yacc.y
code for parsing calibration file, generated by bison
- Copyright (C) 2003 Frank Mori Hess <fmhess@users.sourceforge.net
+ Copyright (C) 2003 Frank Mori Hess <fmhess@users.sourceforge.net>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
#include <string.h>
#include <stdlib.h>
-#include <libinternal.h>
+#include "libinternal.h"
EXPORT_SYMBOL(comedi_get_cmd_src_mask,0.7.18);
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
INTERNAL int __comedi_init=0;
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
EXPORT_SYMBOL(comedi_data_write,0.7.18);
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
EXPORT_SYMBOL(comedi_dio_config,0.7.18);
USA.
*/
-#include <libinternal.h>
+#include "libinternal.h"
#include <stdio.h>
#include <string.h>
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
/* these functions download information from the comedi module. */
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
EXPORT_SYMBOL(comedi_get_n_subdevices,0.7.18);
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
/* ioctl wrappers */
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
/* sometimes we can't find a definition of NAN */
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"
USA.
*/
-#include <libinternal.h>
+#include "libinternal.h"
#include <stdio.h>
#include <math.h>
#include <comedi.h>
#include <string.h>
-#include <libinternal.h>
+#include "libinternal.h"