[llvm-commits] CVS: llvm/projects/sample/lib/sample/Makefile sample.c
John Criswell
criswell at choi.cs.uiuc.edu
Mon Jun 30 17:14:21 PDT 2003
Changes in directory llvm/projects/sample/lib/sample:
Makefile updated: 1.1 -> 1.2
sample.c updated: 1.1 -> 1.2
---
Log message:
Adding in sample project tree.
---
Diffs of the changes:
Index: llvm/projects/sample/lib/sample/Makefile
diff -u /dev/null llvm/projects/sample/lib/sample/Makefile:1.2
--- /dev/null Mon Jun 30 17:13:15 2003
+++ llvm/projects/sample/lib/sample/Makefile Mon Jun 30 17:13:05 2003
@@ -0,0 +1,16 @@
+#
+# Indicate where we are relative to the top of the source tree.
+#
+LEVEL=../..
+
+#
+# Give the name of a library. This will build a dynamic version.
+#
+SHARED_LIBRARY=1
+LIBRARYNAME=sample
+
+#
+# Include Makefile.common so we know what to do.
+#
+include $(LEVEL)/Makefile.common
+
Index: llvm/projects/sample/lib/sample/sample.c
diff -u /dev/null llvm/projects/sample/lib/sample/sample.c:1.2
--- /dev/null Mon Jun 30 17:13:15 2003
+++ llvm/projects/sample/lib/sample/sample.c Mon Jun 30 17:13:05 2003
@@ -0,0 +1,24 @@
+/*
+ * File: sample.c
+ *
+ * Description:
+ * This is a sample source file for a library. It helps to demonstrate
+ * how to setup a project that uses the LLVM build system, header files,
+ * and libraries.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+// LLVM Header File
+#include "Support/DataTypes.h"
+
+// Header file global to this project
+#include "sample.h"
+
+int
+compute_sample (int a)
+{
+ return a;
+}
+
More information about the llvm-commits
mailing list