mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user