summaryrefslogtreecommitdiff
path: root/dwarfexample/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dwarfexample/Makefile')
-rw-r--r--dwarfexample/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/dwarfexample/Makefile b/dwarfexample/Makefile
new file mode 100644
index 0000000..0fb18d2
--- /dev/null
+++ b/dwarfexample/Makefile
@@ -0,0 +1,18 @@
+
+
+LIBDIR= -L../libdwarf
+LIBS= -ldwarf -lelf
+CFLAGS= -Wall -I../libdwarf
+
+all: simplereader frame1
+
+simplereader: simplereader.c
+ $(CC) $(CFLAGS) simplereader.c -o simplereader $(LIBDIR) $(LIBS)
+frame1: frame1.c
+ $(CC) $(CFLAGS) frame1.c -o frame1 $(LIBDIR) $(LIBS)
+
+clean:
+ rm -f simplereader.o
+ rm -f simplereader
+ rm -f frame1
+ rm -f frame1.o