occlum/demos/hello_c/Makefile
LI Qing 1304f5388d Improve Occlum GCC toolchain with new wrappers for binaries
This commit makes the toolchain easier to use in two folds:
1. When compiling C/C++ source files, no need to add "-fPIC -pie" flags manually;
2. When running executables generated by the Occlum toolchain on Linux, no
need to set the `LD_LIBRARY_PATH` manually.
2019-11-29 11:20:00 +00:00

12 lines
126 B
Makefile

CC := occlum-gcc
.PHONY: all clean
all: hello_world
hello_world: hello_world.c
$(CC) $^ -o $@
clean:
rm -rf hello_world