Add bin/ hierarchy

This commit is contained in:
Arun Thomas 2011-07-01 18:43:15 +02:00
parent 49a93d54be
commit 03ff167d4d
3 changed files with 22 additions and 0 deletions

View file

@ -54,11 +54,13 @@ elf-libraries: includes
commands: includes libraries
$(MAKE) -C commands all
$(MAKE) -C bin all
$(MAKE) -C usr.bin all
depend:
$(MAKE) CC=cc -C boot depend
$(MAKE) -C commands depend
$(MAKE) -C bin depend
$(MAKE) -C usr.bin depend
$(MAKE) -C kernel depend
$(MAKE) -C servers depend
@ -73,6 +75,7 @@ etcforce:
all:
$(MAKE) CC=cc -C boot all
$(MAKE) -C commands all
$(MAKE) -C bin all
$(MAKE) -C usr.bin all
$(MAKE) -C tools all
@ -80,6 +83,7 @@ install:
$(MAKE) CC=cc -C boot install
$(MAKE) -C man install makedb
$(MAKE) -C commands install
$(MAKE) -C bin install
$(MAKE) -C usr.bin install
$(MAKE) -C share install
$(MAKE) -C tools install
@ -87,6 +91,7 @@ install:
clean:
$(MAKE) -C boot clean
$(MAKE) -C commands clean
$(MAKE) -C bin clean
$(MAKE) -C usr.bin clean
$(MAKE) -C tools clean
$(MAKE) -C lib clean_all
@ -95,5 +100,6 @@ clean:
cleandepend:
$(MAKE) -C boot cleandepend
$(MAKE) -C commands cleandepend
$(MAKE) -C bin cleandepend
$(MAKE) -C usr.bin cleandepend
$(MAKE) -C tools cleandepend

7
bin/Makefile Normal file
View file

@ -0,0 +1,7 @@
# Makefile for bin
.include <bsd.own.mk>
SUBDIR=
.include <bsd.subdir.mk>

9
bin/Makefile.inc Normal file
View file

@ -0,0 +1,9 @@
# Requires NBSD_LIBC and clang/gcc (we default to using clang)
NBSD_LIBC:= yes
CC:=${CC:C/^cc/clang/}
COMPILER_TYPE:= gnu
CPPFLAGS+= -D_NETBSD_SOURCE
BINDIR?=/bin