Restructured paths
1. build is in build/$(arch) 2. tooldir is in build/toolchain-$(arch) 3. global_srcdir is in build/src-{world,toolchain} 4. global_objdir is in build/obj-{world,toolchain}
This commit is contained in:
parent
61db92519f
commit
a5d0778d53
19 changed files with 233 additions and 231 deletions
|
@ -100,16 +100,11 @@ subdirs += libnl
|
|||
subdirs += wpa_supplicant
|
||||
endif
|
||||
|
||||
installdirs = $(build)/src $(build)/obj
|
||||
|
||||
all: $(subdirs)
|
||||
|
||||
$(subdirs): | $(installdirs)
|
||||
$(subdirs):
|
||||
$(MAKE) -C $@
|
||||
|
||||
$(installdirs):
|
||||
install -d $@
|
||||
|
||||
clean:
|
||||
for subdir in $(subdirs) ; \
|
||||
do $(MAKE) -C $${subdir} clean ; done
|
||||
|
@ -118,4 +113,4 @@ distclean: clean
|
|||
for subdir in $(subdirs) ; \
|
||||
do $(MAKE) -C $${subdir} distclean ; done
|
||||
|
||||
.PHONY: ${subdirs} all clean distclean
|
||||
.PHONY: $(subdirs) all clean distclean
|
||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
# Makefile - hhl - /usr/src/world/mandoc
|
||||
# Makefile - hhl - /src/world/mandoc
|
||||
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
||||
#
|
||||
#
|
||||
distname = mandoc
|
||||
distext = gz
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
BUILD_TARGETS =
|
||||
INSTALL_TARGETS =
|
||||
BUILD_TARGETS =
|
||||
INSTALL_TARGETS =
|
||||
CC = $(tgt_cc)
|
||||
CFLAGS = -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter
|
||||
CFLAGS += --sysroot=/src/build
|
||||
CFLAGS += --sysroot=$(DESTDIR)
|
||||
LDADD = -lz
|
||||
LDFLAGS =
|
||||
LDFLAGS =
|
||||
STATIC = -static
|
||||
PREFIX = /usr
|
||||
BINDIR = /usr/bin
|
||||
|
|
|
@ -7,7 +7,7 @@ no_objdir = 1
|
|||
use_configure = 0
|
||||
include world.mk
|
||||
export CC = $(tgt)-gcc
|
||||
export CFLAGS = --sysroot=/src/build -Wall -O2
|
||||
export CFLAGS = --sysroot=$(build) -Wall -O2
|
||||
install_cmd = $(MAKE) prefix=/usr DESTDIR=$(DESTDIR) -C $(srcdir) install
|
||||
|
||||
define post_install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue