diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-24 13:28:36 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-24 13:41:48 (EDT) |
commit | 5305fc0cd0cf041a0eea3819489133111f65d1ea (patch) | |
tree | f8aec9e4fea6a229bf4ee09905618bd59437eda7 | |
parent | 55542ca92a36385dbe05dae9d8d2cdcd9d2e8b7b (diff) |
build: Unify targets, factor out configure options
-rwxr-xr-x | build | 32 |
1 files changed, 14 insertions, 18 deletions
@@ -2,6 +2,7 @@ include ../source.mk +builddir = obj_$$(printf '%s' $@ | sed 's/^[^_]*_//') common_opts = \ --without-ada \ --without-tests \ @@ -17,32 +18,27 @@ common_opts = \ --disable-termcap \ --enable-symlinks \ --enable-const +build_ncurses_opts = $(common_opts) \ + --enable-overwrite +build_ncursesw_opts = $(common_opts) \ + --includedir=/usr/include/ncursesw \ + --without-progs \ + --disable-overwrite \ + --enable-widec nop: @: -build-ncurses: - oh-autoconfigure -B obj-ncurses -- \ - $(common_opts) \ - --enable-overwrite - oh-autobuild -B obj-ncurses +build_ncurses build_ncursesw: + oh-autoconfigure -B $(builddir) -- $($@_opts) + oh-autobuild -B $(builddir) touch $@ -build-ncursesw: - oh-autoconfigure -B obj-ncursesw -- \ - $(common_opts) \ - --includedir=/usr/include/ncursesw \ - --without-progs \ - --disable-overwrite \ - --enable-widec - oh-autobuild -B obj-ncursesw - touch $@ - -build: build-ncurses build-ncursesw +build: build_ncurses build_ncursesw install: build - (cd obj-ncurses && make install) - (cd obj-ncursesw && make install.libs) + (cd obj_ncurses && make install) + (cd obj_ncursesw && make install.libs) rm dest/usr/lib/$(OPK_HOST_ARCH)/*.a mv dest/usr/bin/clear dest/usr/bin/clear.ncurses mv dest/usr/bin/reset dest/usr/bin/reset.ncurses |