forked from anbangr/trustvisor-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 914 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Makefile made with help from http://www.hsrl.rutgers.edu/ug/make_help.html
# $@ is the name of the file to be made.
# $? is the names of the changed dependents.
# $< the name of the related file that caused the action.
# $* the prefix shared by target and dependent files.
PROG_NAME=hello
PROG_OBJS=hello.o
CFLAGS+=-g -Wall
PKGCONFIG_DEPS=tee-sdk-app tee-sdk-app-tv
PAL_NAME=hellopal
PAL_OBJS=hellopal.o pal-aux.o
PAL_CFLAGS+=-g -Wall
PAL_PKGCONFIG_DEPS=tee-sdk-svc tee-sdk-svc-tv
all: $(PROG_NAME)
clean:
$(RM) .*.cmd *.o *.ko *~ -r .tmp* $(PROG_NAME) $(PROG_OBJS)
.PHONY: clean all
TEESDK_DATA_DIR=$(shell pkg-config --variable=pkgdatadir tee-sdk-app)
# pkgconfig helpers
include $(TEESDK_DATA_DIR)/pkgconfig.mk
# rules for compiling pal intermediate objects
include $(TEESDK_DATA_DIR)/pal.mk
# rules for compiling a program PROG_NAME that uses one pal PAL_NAME
include $(TEESDK_DATA_DIR)/onepal.mk