[padb] r417 committed - Build fixes for edb....

padb at googlecode.com padb at googlecode.com
Tue Nov 9 17:59:29 GMT 2010


Revision: 417
Author: apittman at gmail.com
Date: Tue Nov  9 09:58:57 2010
Log: Build fixes for edb.

Import a patch provided by Duncan Thomas
<Duncan.Thomas at vega.co.uk>

http://code.google.com/p/padb/source/detail?r=417

Modified:
  /trunk/src/edb/Makefile
  /trunk/src/edb/edb.h
  /trunk/src/edb/elf.c
  /trunk/src/edb/elfN.c
  /trunk/src/edb/ptrace.c
  /trunk/src/edb/stats_falcon.c
  /trunk/src/edb/xml.c

=======================================
--- /trunk/src/edb/Makefile	Wed May 20 04:23:26 2009
+++ /trunk/src/edb/Makefile	Tue Nov  9 09:58:57 2010
@@ -1,18 +1,22 @@
-
-
+all: edb

  %.o: %.c edb.h
-	cc -c -o $@ -pthread $<
-
-edb: edb.o
-	cc -o edb edb.o xml.o
+	cc -g -c -o $@ -pthread $<
+
+edb: edb.o xml.o ptrace.o stats_eagle.o stats_falcon.o parallel.o elf.o  
elf64.o elf32.o
+	cc -g -o edb edb.o xml.o ptrace.o stats_eagle.o stats_falcon.o parallel.o  
elf.o elf64.o elf32.o  -lelan -lpthread

  xml.o: xml.c
  	cc -c xml.c -o xml.o -pthread

  elf32.c: elfN.c
-	sed s/TSIZE/32/g edb/elfN.c > $@
+	sed s/TSIZE/32/g elfN.c > $@

  elf64.c: elfN.c
-	sed s/TSIZE/64/g edb/elfN.c > $@
-
+	sed s/TSIZE/64/g elfN.c > $@
+
+tags: elf32.c elf64.c *.c *.h
+	ctags *.c *.h
+
+clean:
+	rm -f *.o edb elf32.c elf64.c
=======================================
--- /trunk/src/edb/edb.h	Wed May 20 04:23:26 2009
+++ /trunk/src/edb/edb.h	Tue Nov  9 09:58:57 2010
@@ -140,7 +140,7 @@
  extern int dump_stats_eagle(void *pages, size_t size, size_t pagesize);

  /* New, can do lots of things with it */
-#include <sf.h>
+#include "sf.h"

  /* elf.c */
  extern void fetch_data_dead (char *cname, char *ename, int trap_dump);
=======================================
--- /trunk/src/edb/elf.c	Wed May 20 04:23:26 2009
+++ /trunk/src/edb/elf.c	Tue Nov  9 09:58:57 2010
@@ -10,7 +10,7 @@
  #include <sys/types.h>
  #include <sys/stat.h>

-#include <edb.h>
+#include "edb.h"
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <unistd.h>
=======================================
--- /trunk/src/edb/elfN.c	Wed May 20 04:23:26 2009
+++ /trunk/src/edb/elfN.c	Tue Nov  9 09:58:57 2010
@@ -27,7 +27,7 @@

  #include <unistd.h>

-#include <edb.h>
+#include "edb.h"

  #include <elan4/library.h>

=======================================
--- /trunk/src/edb/ptrace.c	Wed May 20 04:23:26 2009
+++ /trunk/src/edb/ptrace.c	Tue Nov  9 09:58:57 2010
@@ -7,7 +7,7 @@
  /*             /cvs/master/quadrics/elan4lib/edb/ptrace.c,v */


-#include <edb.h>
+#include "edb.h"

  #define MACRO_BEGIN {
  #define MACRO_END   }
=======================================
--- /trunk/src/edb/stats_falcon.c	Wed May 20 04:23:26 2009
+++ /trunk/src/edb/stats_falcon.c	Tue Nov  9 09:58:57 2010
@@ -11,7 +11,7 @@
  #include <stdio.h>
  #include <inttypes.h>

-#include <edb.h>
+#include "edb.h"

  #include <ctype.h>

=======================================
--- /trunk/src/edb/xml.c	Wed May 20 04:23:26 2009
+++ /trunk/src/edb/xml.c	Tue Nov  9 09:58:57 2010
@@ -5,7 +5,7 @@
  #ident "xml.c,v 1.3 2005/02/03 15:26:08 ashley Exp"
  /*             /cvs/master/quadrics/elan4lib/edb/xml.c,v */

-#include <edb.h>
+#include "edb.h"

  /***********************************************************
   *                                                         *




More information about the padb-devel mailing list