Adding in sample project tree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7018 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John Criswell
2003-06-30 22:13:48 +00:00
parent 2f8b41738e
commit 723ccd615f
10 changed files with 155 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#
# Relative path to the top of the source tree.
#
LEVEL=..
#
# List all of the subdirectories that we will compile.
#
DIRS=sample
include $(LEVEL)/Makefile.common
+20
View File
@@ -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
+14
View File
@@ -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);
}