commit d1cb824564ecb06b99c6c2e4fc073f8ca4bcfd9a parent c89853497a4b1f481475da5e6e72e0c2612445c4 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Sun, 5 Apr 2015 15:09:59 -0400 add simple Makefile Diffstat:
| A | Makefile | | | 11 | +++++++++++ |
| A | tmain.c | | | 8 | ++++++++ |
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,11 @@ +.PHONY: all test + +all: bak + +bak: elf.ml lo2.ml + ocamlc -o bak elf.ml lo2.ml + +test: bak + ./bak test + cc -o t tmain.c t.o + ./t diff --git a/tmain.c b/tmain.c @@ -0,0 +1,8 @@ +#include <stdio.h> +extern long f(void); + +int main() +{ + printf("f() = %ld\n", f()); + return 0; +}