-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile.h3
More file actions
43 lines (29 loc) · 1.04 KB
/
Makefile.h3
File metadata and controls
43 lines (29 loc) · 1.04 KB
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
# point this to the opi branch of https://github.com/uli/allwinner-bare-metal
OSDIR = $(HOME)/devel/orangepi/allwinner-bare-metal
OBJDIR = build_h3
TARGET = basic
all: $(TARGET).bin
INIT_FS_DIR = init_dir
DEMOS_DIR = ../basicengine_demos
SOURCES = $(COMMON_SOURCES) $(shell ls h3/*.cpp)
SOURCES_C = $(COMMON_SOURCES_C)
include common.mk
OBJS = $(SOURCES:.cpp=.o) $(SOURCES_C:.c=.o)
include $(OSDIR)/build.mk
LIBS = -lstdc++ -L$(OBJDIR)/dyncall/dyncall -ldyncall_s
INCLUDE = $(COMMON_INCLUDE)
ARDFLAGS = $(COMMON_ARDFLAGS) -DH3 -Ih3 -Ittbasic \
-DENABLE_NEON -DSTBI_NEON \
-U __UINT32_TYPE__ -U__INT32_TYPE__ -D__UINT32_TYPE__="unsigned int" -D__INT32_TYPE__=int
CFLAGS += $(ARDFLAGS) -Wno-pointer-sign
#CFLAGS += -m32
#CFLAGS += -fprofile-arcs -ftest-coverage
CXXFLAGS += $(ARDFLAGS) -fpermissive -std=c++11 -fno-exceptions
clean:
rm -fr build_h3
@rm -f $(PROF)
rm -fr init_dir
$(MAKE) -C ttbasic -f autogen.mk autogen_clean
$(TARGET).elf: $(OBJDIR)/dyncall/dyncall/libdyncall_s.a
$(TARGET)_sd.img: init_dir
-include $(OUT_OBJS:%.o=%.d)