diff options
Diffstat (limited to 'host/Makefile')
-rw-r--r-- | host/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/host/Makefile b/host/Makefile new file mode 100644 index 0000000..c4c8239 --- /dev/null +++ b/host/Makefile @@ -0,0 +1,28 @@ +CC ?= $(CROSS_COMPILE)gcc +LD ?= $(CROSS_COMPILE)ld +AR ?= $(CROSS_COMPILE)ar +NM ?= $(CROSS_COMPILE)nm +OBJCOPY ?= $(CROSS_COMPILE)objcopy +OBJDUMP ?= $(CROSS_COMPILE)objdump +READELF ?= $(CROSS_COMPILE)readelf + +OBJS = main.o + +CFLAGS += -Wall -I../ta/include -I$(TEEC_EXPORT)/include -I./include +#Add/link other required libraries here +LDADD += -lteec -L$(TEEC_EXPORT)/lib + +BINARY = optee_example_hello_world + +.PHONY: all +all: $(BINARY) + +$(BINARY): $(OBJS) + $(CC) -o $@ $< $(LDADD) + +.PHONY: clean +clean: + rm -f $(OBJS) $(BINARY) + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ |