2013-12-28 15:40:03 +01:00
|
|
|
############################################################################
|
2018-05-29 21:21:26 +02:00
|
|
|
# libs/libnx/Makefile
|
2013-12-28 15:40:03 +01:00
|
|
|
#
|
2017-11-15 14:09:16 +01:00
|
|
|
# Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved.
|
2013-12-28 15:40:03 +01:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
|
|
# used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
|
2020-05-18 21:42:11 +02:00
|
|
|
include $(TOPDIR)/Make.defs
|
2013-12-28 15:40:03 +01:00
|
|
|
|
|
|
|
include nxglib/Make.defs
|
|
|
|
include nx/Make.defs
|
|
|
|
include nxmu/Make.defs
|
2013-12-28 16:33:12 +01:00
|
|
|
include nxfonts/Make.defs
|
2013-12-28 18:33:21 +01:00
|
|
|
include nxtk/Make.defs
|
2013-12-28 15:40:03 +01:00
|
|
|
|
|
|
|
BINDIR ?= bin
|
|
|
|
|
2020-05-19 11:43:29 +02:00
|
|
|
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)libs$(DELIM)libnx}
|
|
|
|
|
2013-12-28 15:40:03 +01:00
|
|
|
AOBJS = $(patsubst %.S, $(BINDIR)$(DELIM)%$(OBJEXT), $(ASRCS))
|
|
|
|
COBJS = $(patsubst %.c, $(BINDIR)$(DELIM)%$(OBJEXT), $(CSRCS))
|
|
|
|
|
|
|
|
SRCS = $(ASRCS) $(CSRCS)
|
|
|
|
OBJS = $(AOBJS) $(COBJS)
|
|
|
|
|
|
|
|
KBIN = libknx$(LIBEXT)
|
|
|
|
BIN ?= libnx$(LIBEXT)
|
|
|
|
|
|
|
|
all: $(BIN)
|
|
|
|
.PHONY: clean distclean
|
2013-12-28 16:33:12 +01:00
|
|
|
.PHONY : context depend clean distclean gensources gen1bppsources gen2bppsource \
|
|
|
|
gen4bppsource gen8bppsource gen16bppsource gen24bppsource gen32bppsources genfontsources
|
|
|
|
|
|
|
|
gen1bppsources:
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_BITSPERPIXEL=1 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen2bppsource:
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_BITSPERPIXEL=2 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen4bppsource:
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_BITSPERPIXEL=4 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen8bppsource:
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_BITSPERPIXEL=8 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen16bppsource:
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_BITSPERPIXEL=16 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen24bppsource:
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_BITSPERPIXEL=24 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen32bppsources:
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_BITSPERPIXEL=32 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
genfontsources:
|
|
|
|
ifeq ($(CONFIG_NXFONT_MONO5X8),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
@$(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=18 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS23X27),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=1 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS22X29),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=2 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS28X37),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=3 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS39X48),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=4 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS17X23B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=16 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS20X27B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=17 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS22X29B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=5 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS28X37B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=6 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS40X49B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=7 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF22X29),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=8 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF29X37),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=9 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF38X48),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=10 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF22X28B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=11 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF27X38B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=12 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF38X49B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=13 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS17X22),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=14 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS20X26),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=15 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
2014-11-26 21:15:34 +01:00
|
|
|
ifeq ($(CONFIG_NXFONT_PIXEL_UNICODE),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=19 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-11-26 21:15:34 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_PIXEL_LCD_MACHINE),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=20 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-11-26 21:15:34 +01:00
|
|
|
endif
|
2014-12-11 00:11:23 +01:00
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_4X6),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=21 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_5X7),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=22 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_5X8),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=23 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X9),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=24 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X10),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=25 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X12),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=26 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X13),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=27 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X13B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=28 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X13O),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=29 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X13),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=30 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X13B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=31 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X13O),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=32 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X14),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=33 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X14B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=34 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_8X13),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=35 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_8X13B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=36 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_8X13O),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=37 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X15),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=38 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X15B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=39 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X18),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=40 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X18B),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=41 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_10X20),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=42 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
2013-12-28 16:33:12 +01:00
|
|
|
|
2017-01-04 17:31:53 +01:00
|
|
|
ifeq ($(CONFIG_NXFONT_TOM_THUMB_4X6),y)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources TOPDIR=$(TOPDIR) NXFONTS_FONTID=43 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2017-01-03 18:11:47 +01:00
|
|
|
endif
|
|
|
|
|
2013-12-28 16:33:12 +01:00
|
|
|
gensources: gen1bppsources gen2bppsource gen4bppsource gen8bppsource gen16bppsource gen24bppsource gen32bppsources genfontsources
|
2013-12-28 15:40:03 +01:00
|
|
|
|
|
|
|
$(AOBJS): $(BINDIR)$(DELIM)%$(OBJEXT): %.S
|
|
|
|
$(call ASSEMBLE, $<, $@)
|
|
|
|
|
|
|
|
$(COBJS): $(BINDIR)$(DELIM)%$(OBJEXT): %.c
|
|
|
|
$(call COMPILE, $<, $@)
|
|
|
|
|
2020-05-01 21:23:04 +02:00
|
|
|
# NX library for the flat build and
|
|
|
|
# the user phase of the two-pass kernel build
|
2013-12-28 15:40:03 +01:00
|
|
|
|
|
|
|
$(BIN): $(OBJS)
|
|
|
|
$(call ARCHIVE, $@, $(OBJS))
|
|
|
|
|
|
|
|
# NX library for the kernel phase of the two-pass kernel build
|
|
|
|
|
|
|
|
ifneq ($(BIN),$(KBIN))
|
|
|
|
$(KBIN):
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) $(KBIN) BIN=$(KBIN) BINDIR=kbin TOPDIR=$(TOPDIR) EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 15:40:03 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
2020-07-22 09:54:29 +02:00
|
|
|
.depend: Makefile gensources $(SRCS) $(TOPDIR)$(DELIM).config
|
2020-01-21 15:01:09 +01:00
|
|
|
$(Q) $(MKDEP) --obj-path bin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >bin/Make.dep
|
2020-05-01 21:23:04 +02:00
|
|
|
ifneq ($(CONFIG_BUILD_FLAT),y)
|
2020-01-21 15:01:09 +01:00
|
|
|
$(Q) $(MKDEP) --obj-path kbin --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) $(KDEFINE) -- $(SRCS) >kbin/Make.dep
|
2013-12-28 15:40:03 +01:00
|
|
|
endif
|
|
|
|
$(Q) touch $@
|
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
|
|
|
# Generate configuration context
|
|
|
|
|
2013-12-28 16:33:12 +01:00
|
|
|
context: gensources
|
2013-12-28 15:40:03 +01:00
|
|
|
|
|
|
|
# Clean most derived files, retaining the configuration
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(Q) $(MAKE) -C bin clean TOPDIR=$(TOPDIR)
|
|
|
|
$(Q) $(MAKE) -C kbin clean TOPDIR=$(TOPDIR)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources clean TOPDIR=$(TOPDIR) EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 15:40:03 +01:00
|
|
|
$(call DELFILE, $(BIN))
|
|
|
|
$(call DELFILE, $(KBIN))
|
|
|
|
$(call CLEAN)
|
|
|
|
|
|
|
|
# Deep clean -- removes all traces of the configuration
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(Q) $(MAKE) -C bin distclean TOPDIR=$(TOPDIR)
|
|
|
|
$(Q) $(MAKE) -C kbin distclean TOPDIR=$(TOPDIR)
|
2020-04-10 04:37:54 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources distclean TOPDIR=$(TOPDIR) EXTRAFLAGS="$(EXTRAFLAGS)"
|
2019-03-19 17:14:50 +01:00
|
|
|
$(call DELFILE, bin/Make.dep)
|
|
|
|
$(call DELFILE, kbin/Make.dep)
|
2013-12-28 15:40:03 +01:00
|
|
|
$(call DELFILE, .depend)
|
|
|
|
|
2019-03-19 17:14:50 +01:00
|
|
|
-include bin/Make.dep
|
|
|
|
-include kbin/Make.dep
|