added some dependency file generation
This commit is contained in:
parent
e31f607b2e
commit
2e0f10fe44
16 changed files with 25 additions and 16 deletions
11
lib/Makefile
11
lib/Makefile
|
@ -2,7 +2,8 @@
|
|||
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
|
||||
|
@ -24,3 +25,11 @@ calib_lex.c: calib_lex.l calib_yacc.h
|
|||
|
||||
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)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <comedi.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
#include <string.h>
|
||||
|
||||
EXPORT_SYMBOL(comedi_set_buffer_size,0.7.18);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#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 )
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
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
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
EXPORT_SYMBOL(comedi_get_cmd_src_mask,0.7.18);
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
INTERNAL int __comedi_init=0;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
EXPORT_SYMBOL(comedi_data_write,0.7.18);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
EXPORT_SYMBOL(comedi_dio_config,0.7.18);
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
USA.
|
||||
*/
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
/* these functions download information from the comedi module. */
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
EXPORT_SYMBOL(comedi_get_n_subdevices,0.7.18);
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
/* ioctl wrappers */
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
/* sometimes we can't find a definition of NAN */
|
||||
|
|
2
lib/sv.c
2
lib/sv.c
|
@ -33,7 +33,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
USA.
|
||||
*/
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <comedi.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <libinternal.h>
|
||||
#include "libinternal.h"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue