[llvm-commits] CVS: llvm/projects/sample/tools/sample/main.c Makefile

John Criswell criswell at choi.cs.uiuc.edu
Mon Jun 30 17:14:01 PDT 2003


Changes in directory llvm/projects/sample/tools/sample:

main.c updated: 1.1 -> 1.2
Makefile updated: 1.1 -> 1.2

---
Log message:

Adding in sample project tree.


---
Diffs of the changes:

Index: llvm/projects/sample/tools/sample/main.c
diff -u /dev/null llvm/projects/sample/tools/sample/main.c:1.2
--- /dev/null	Mon Jun 30 17:13:58 2003
+++ llvm/projects/sample/tools/sample/main.c	Mon Jun 30 17:13:48 2003
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <unistd.h>
+
+#include "sample.h"
+
+int
+main (int argc, char ** argv)
+{
+	printf ("%d\n", compute_sample (5));
+	exit (0);
+}
+


Index: llvm/projects/sample/tools/sample/Makefile
diff -u /dev/null llvm/projects/sample/tools/sample/Makefile:1.2
--- /dev/null	Mon Jun 30 17:13:58 2003
+++ llvm/projects/sample/tools/sample/Makefile	Mon Jun 30 17:13:48 2003
@@ -0,0 +1,20 @@
+#
+# Indicate where we are relative to the top of the source tree.
+#
+LEVEL=../..
+
+#
+# Give the name of the tool.
+#
+TOOLNAME=sample
+
+#
+# List libraries that we'll need
+#
+USEDLIBS=sample
+
+#
+# Include Makefile.common so we know what to do.
+#
+include $(LEVEL)/Makefile.common
+





More information about the llvm-commits mailing list