-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
129 lines (105 loc) · 4.04 KB
/
Makefile.in
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
ifeq ($(HAVE_DOT_CONFIG),y)
all: lib
else
all: defconfig
endif
include $(top_srcdir)bin/Makefile.in
include $(top_srcdir)include/Makefile.in
include $(top_srcdir)src/Makefile.in
include $(top_srcdir)extra/Makefile.in
$(headers-y) $(libcxx-a-y) $(libcxx-so-y): include/system_configuration.h
DISTCLEAN_tests:
$(Q)$(MAKE) -C tests distclean
tests: lib
$(Q)$(MAKE) -C tests all
check test: tests
$(Q)$(MAKE) -C tests test
release:
$(RM) ../uClibc++-$(VERSION).tar
git archive --format=tar --prefix=uClibc++-$(VERSION)/ HEAD \
> ../uClibc++-$(VERSION).tar
cat ../uClibc++-$(VERSION).tar | bzip2 -c9 > ../uClibc++-$(VERSION).tar.bz2
cat ../uClibc++-$(VERSION).tar | xz -e -c8 > ../uClibc++-$(VERSION).tar.xz
du -b $(addprefix ../uClibc++-$(VERSION).tar.,bz2 xz)
install: install-bin install-include install-lib
clean: CLEAN_bin CLEAN_src
#$(MAKE) -C $(top_builddir)extra/locale clean
realclean: clean DISTCLEAN_extra DISTCLEAN_include DISTCLEAN_src DISTCLEAN_tests
distclean: realclean DISTCLEAN_.config
DISTCLEAN_.config:
$(do_rm) $(addprefix $(top_builddir),.config .config.cmd .config.old)
#Menu configuration system
extra/config/conf:
$(Q)$(MAKE) -C extra/config conf
extra/config/mconf:
$(Q)$(MAKE) -C extra/config ncurses mconf
menuconfig: extra/config/mconf
$(Q)$< extra/Configs/Config.in
config: extra/config/conf
$(Q)$< extra/Configs/Config.in
oldconfig: extra/config/conf
$(Q)$< -o extra/Configs/Config.in
silentoldconfig: extra/config/conf
$(Q)$< -s extra/Configs/Config.in
randconfig: extra/config/conf
$(Q)$< -r extra/Configs/Config.in
allyesconfig: extra/config/conf
$(Q)$< -y extra/Configs/Config.in
allnoconfig: extra/config/conf
$(Q)$< -n extra/Configs/Config.in
defconfig: extra/config/conf
$(Q)$< -d extra/Configs/Config.in
include/system_configuration.h: .config | extra/config/conf
$(Q)extra/config/conf -o extra/Configs/Config.in
ifeq ($(HAVE_DOT_CONFIG),)
.config: defconfig
endif
help:
@echo 'Cleaning:'
@echo ' clean - delete temporary object files'
@echo ' realclean - delete temporary object files, including dependencies'
@echo ' distclean - delete all non-source files (including .config)'
@echo
@echo 'Build:'
@echo ' all - libraries'
@echo
@echo 'Configuration:'
@echo ' allnoconfig - disable all symbols in .config'
@echo ' allyesconfig - enable all symbols in .config (see defconfig)'
@echo ' config - text based configurator (of last resort)'
@echo ' defconfig - set .config to arch-specific defaults'
@echo ' menuconfig - interactive curses-based configurator'
@echo ' oldconfig - resolve any unresolved symbols in .config'
@echo ' silentoldconfig - resolve any unresolved symbols in .config, silently'
@echo ' randconfig - generate a random .config'
@$(if $(arch-defconfigs), \
@echo ''; \
echo 'Architecture specific configs ($(ARCH))'; \
$(foreach c, $(arch-defconfigs), \
printf " %-21s - Build for %s\\n" $(c) $(subst _defconfig,,$(c));) \
)
@echo
@echo 'Installation:'
@echo ' install - install both the runtime and the headers'
@echo
@echo 'Development:'
@echo ' check - run testsuite'
@echo ' tests - compile testsuite binaries'
@echo ' release - create a distribution tarball'
@echo
@echo 'Environment variables:'
@echo ' V="" - Quiet build (default)'
@echo ' V=1 - Brief build (show defines, ld flags)'
@echo ' V=2 - Very verbose build'
@echo ' CROSS_COMPILE= - Override CROSS_COMPILER_PREFIX from .config'
@echo ' SHELL= - Shell to use for make'
@echo ' HOSTCC= - C Compiler for compiling host binaries'
@echo ' HOSTCXX= - C++ Compiler for compiling host binaries'
@echo ' HOSTCFLAGS= - extra CFLAGS for compiling host binaries'
@echo ' HOSTCXXFLAGS= - extra CXXFLAGS for compiling host binaries'
@echo ' HOSTLDFLAGS= - extra LDFLAGS for linking host binaries'
@echo
@echo ' DESTDIR= - Prepended prefix to installation paths'
@echo ' CPU_CFLAGS - extra C- and CXX- FLAGS for compiling uClibc++'
@echo ' LDFLAGS - extra LDFLAGS for linking uClibc++ itself'
@echo ' BUILD_EXTRA_LIBRARIES - extra LDFLAGS for linking uClibc++ itself'