diff options
author | John Criswell <criswell@uiuc.edu> | 2003-06-30 22:13:48 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-06-30 22:13:48 +0000 |
commit | 723ccd615f99b65454e199cda9feb31f2283e787 (patch) | |
tree | 880aa2fb6590d580638a944c8bc4c8d8c9f352f8 /projects/sample/tools | |
parent | 2f8b41738ed579f91105569243919ff12be0ba0a (diff) | |
download | llvm-723ccd615f99b65454e199cda9feb31f2283e787.tar.gz llvm-723ccd615f99b65454e199cda9feb31f2283e787.tar.bz2 llvm-723ccd615f99b65454e199cda9feb31f2283e787.tar.xz |
Adding in sample project tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/sample/tools')
-rw-r--r-- | projects/sample/tools/Makefile | 11 | ||||
-rw-r--r-- | projects/sample/tools/sample/Makefile | 20 | ||||
-rw-r--r-- | projects/sample/tools/sample/main.c | 14 |
3 files changed, 45 insertions, 0 deletions
diff --git a/projects/sample/tools/Makefile b/projects/sample/tools/Makefile new file mode 100644 index 0000000000..4b971053d0 --- /dev/null +++ b/projects/sample/tools/Makefile @@ -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 diff --git a/projects/sample/tools/sample/Makefile b/projects/sample/tools/sample/Makefile new file mode 100644 index 0000000000..a6106ac4d2 --- /dev/null +++ b/projects/sample/tools/sample/Makefile @@ -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 + diff --git a/projects/sample/tools/sample/main.c b/projects/sample/tools/sample/main.c new file mode 100644 index 0000000000..66073352de --- /dev/null +++ b/projects/sample/tools/sample/main.c @@ -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); +} + |