mirror of
https://git.busybox.net/busybox.git
synced 2024-11-23 21:53:25 +08:00
Fix it so build dependancies actually work and do something useful
This commit is contained in:
parent
674b08a6b8
commit
515881c6e1
5
Makefile
5
Makefile
@ -46,6 +46,7 @@ all: busybox busybox.links doc
|
|||||||
# In this section, we need .config
|
# In this section, we need .config
|
||||||
-include .config.cmd
|
-include .config.cmd
|
||||||
include $(patsubst %,%/Makefile.in, $(DIRS))
|
include $(patsubst %,%/Makefile.in, $(DIRS))
|
||||||
|
-include $(TOPDIR).depend
|
||||||
|
|
||||||
busybox: .depend include/config.h $(libraries-y)
|
busybox: .depend include/config.h $(libraries-y)
|
||||||
$(CC) $(LDFLAGS) -o $@ -Wl,--start-group $(libraries-y) $(LIBRARIES) -Wl,--end-group
|
$(CC) $(LDFLAGS) -o $@ -Wl,--start-group $(libraries-y) $(LIBRARIES) -Wl,--end-group
|
||||||
@ -138,9 +139,9 @@ scripts/split-include: scripts/split-include.c
|
|||||||
mkdir -p include/config;
|
mkdir -p include/config;
|
||||||
$(HOSTCC) $(HOSTCFLAGS) -o scripts/mkdep scripts/mkdep.c
|
$(HOSTCC) $(HOSTCFLAGS) -o scripts/mkdep scripts/mkdep.c
|
||||||
scripts/mkdep -I include -- \
|
scripts/mkdep -I include -- \
|
||||||
`find . -name \*.c -print` >> .depend;
|
`find -name \*.c -print | sed -e "s,^./,,"` >> .depend;
|
||||||
scripts/mkdep -I include -- \
|
scripts/mkdep -I include -- \
|
||||||
`find . -name \*.h -print` >> .hdepend;
|
`find -name \*.h -print | sed -e "s,^./,,"` >> .hdepend;
|
||||||
|
|
||||||
depend dep: include/config.h .depend
|
depend dep: include/config.h .depend
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user