blob: b32c2ea10b73ef7ed419657e14105a3d46606b12 (
plain) (
blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
#*******************************************************************************
#* FILE PURPOSE: Top level makefile for Creating Component Libraries for ARM
#* architectures
#*******************************************************************************
#* FILE NAME: makefile
#*
#* DESCRIPTION: Defines Compiler tools paths, libraries , Build Options
#*
#*
#*******************************************************************************
# Output for prebuilt generated libraries
export ARMV7LIBDIR ?= ./lib/linux
export ARMV7BINDIR ?= ./bin/linux
# ROOT Directory
export ROOTDIR := ../..
# INCLUDE Directory
export INCDIR := ../..;$(PDK_INSTALL_PATH);$(ROOTDIR)
# Common Macros used in make
ifndef RM
export RM = rm -f
endif
ifndef CP
export CP = cp -p
endif
export MKDIR = mkdir -p
ifndef RMDIR
export RMDIR = rm -rf
endif
ifndef SED
export SED = sed
endif
ifndef MAKE
export MAKE = make
endif
# PHONY Targets
.PHONY: all clean lib tests install installbin .libraries .executables
# all rule
all: .executables
.executables: lib tests
# Libraries
lib: .libraries
# tests
tests:
@$(MAKE) -f ./test/linux/makefile all
# Make rule to create $(ARMV7LIBDIR)/libosal.a library
.libraries: $(ARMV7LIBDIR)/libosal.a libosal.so
$(ARMV7LIBDIR)/libosal.a:
@$(MAKE) -f ./build/makefile_linux.mk $@
libosal.so:
@$(MAKE) -f ./build/makefile_linux.mk $@
# Rule to clean $(ARMV7LIBDIR)/libosal.a library
clean:
@$(MAKE) -f ./build/makefile_linux.mk $@
@$(MAKE) -f ./test/linux/makefile $@
@$(RM) $(ARMV7LIBDIR)/libosal.a
@$(RM) $(ARMV7LIBDIR)/libosal.so
@$(RM) $(ARMV7LIBDIR)/libosal.so.*
installbin:
install -d $(INSTALL_BIN_BASE_DIR)
install -c -m 755 $(ARMV7BINDIR)/osal/test/osalMainTest $(INSTALL_BIN_BASE_DIR)/osalMainTest
install:
install -d $(INSTALL_INC_BASE_DIR)/ti/osal
install -d $(INSTALL_LIB_BASE_DIR)
$(CP) ./*.h $(INSTALL_INC_BASE_DIR)/ti/osal
@$(CP) -r $(ARMV7LIBDIR)/*.a $(INSTALL_LIB_BASE_DIR)
@$(CP) -r $(ARMV7LIBDIR)/*.so $(INSTALL_LIB_BASE_DIR)
@$(CP) -r $(ARMV7LIBDIR)/*.so.* $(INSTALL_LIB_BASE_DIR)
|