[padb] edb build fixes
Duncan Thomas
Duncan.Thomas at vega.co.uk
Mon Nov 8 17:57:42 GMT 2010
Hi
The below patch enable edb to build in your tree. The code for edb
otherwise matches the qsnet release. I'll send some more patches as I
get qsnet functionality tested and fixed up.
Index: ptrace.c
===================================================================
--- ptrace.c (revision 410)
+++ ptrace.c (working copy)
@@ -7,7 +7,7 @@
/* /cvs/master/quadrics/elan4lib/edb/ptrace.c,v */
-#include <edb.h>
+#include "edb.h"
#define MACRO_BEGIN {
#define MACRO_END }
Index: edb.h
===================================================================
--- edb.h (revision 410)
+++ edb.h (working copy)
@@ -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);
Index: stats_falcon.c
===================================================================
--- stats_falcon.c (revision 410)
+++ stats_falcon.c (working copy)
@@ -11,7 +11,7 @@
#include <stdio.h>
#include <inttypes.h>
-#include <edb.h>
+#include "edb.h"
#include <ctype.h>
Index: xml.c
===================================================================
--- xml.c (revision 410)
+++ xml.c (working copy)
@@ -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"
/***********************************************************
* *
Index: elfN.c
===================================================================
--- elfN.c (revision 410)
+++ elfN.c (working copy)
@@ -27,7 +27,7 @@
#include <unistd.h>
-#include <edb.h>
+#include "edb.h"
#include <elan4/library.h>
Index: elf.c
===================================================================
--- elf.c (revision 410)
+++ elf.c (working copy)
@@ -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>
Index: Makefile
===================================================================
--- Makefile (revision 410)
+++ Makefile (working copy)
@@ -1,18 +1,20 @@
-
-
-
%.o: %.c edb.h
cc -c -o $@ -pthread $<
-edb: edb.o
- cc -o edb edb.o xml.o
+edb: edb.o xml.o ptrace.o stats_eagle.o stats_falcon.o parallel.o elf.o
elf64.o elf32.o
+ cc -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 tags
--
Duncan Thomas
HPC Consultant
VEGA Consulting Services Ltd
360 Bristol Business Park
Coldharbour Lane
Bristol BS16 1EJ
United Kingdom
Tel : +44 (0)117 988 0033
Mob : +44 (0)7968 111 883
Fax : +44 (0)117 988 0034
Email : Duncan.Thomas at vega.co.uk
Web : www.vega.co.uk
Registered company details: VEGA Consulting Services Ltd, 2 Falcon Way,
Shire Park, Welwyn Garden City, AL7 1TW, Registered in England, Number -
1393778
Notice of Confidentiality
This transmission is intended for the named addressee only. It contains
information which may be confidential and which may also be privileged.
Unless you are the named addressee (or authorised to receive it for the
addressee) you may not copy or use it, or disclose it to anyone else.
If you have received this transmission in error please notify the sender
immediately.
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pittman.org.uk/pipermail/padb-devel_pittman.org.uk/attachments/20101108/8bf8dbb3/attachment.html>
More information about the padb-devel
mailing list