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
|
|
|
#
|
2021-02-23 19:55:00 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2013-12-28 15:40:03 +01:00
|
|
|
#
|
2021-02-23 19:55:00 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2013-12-28 15:40:03 +01:00
|
|
|
#
|
2021-02-23 19:55:00 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2013-12-28 15:40:03 +01:00
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
|
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-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=1 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen2bppsource:
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=2 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen4bppsource:
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=4 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen8bppsource:
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=8 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen16bppsource:
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=16 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen24bppsource:
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=24 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
gen32bppsources:
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_BITSPERPIXEL=32 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
|
|
|
|
genfontsources:
|
|
|
|
ifeq ($(CONFIG_NXFONT_MONO5X8),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
@$(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=18 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS23X27),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=1 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS22X29),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=2 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS28X37),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=3 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS39X48),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=4 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS17X23B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=16 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS20X27B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=17 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS22X29B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=5 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS28X37B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=6 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS40X49B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=7 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF22X29),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=8 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF29X37),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=9 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF38X48),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=10 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF22X28B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=11 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF27X38B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=12 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SERIF38X49B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=13 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS17X22),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=14 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 16:33:12 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_SANS20X26),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources 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-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=19 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-11-26 21:15:34 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_PIXEL_LCD_MACHINE),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources 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-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=21 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_5X7),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=22 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_5X8),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=23 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X9),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=24 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X10),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=25 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X12),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=26 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X13),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=27 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X13B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=28 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_6X13O),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=29 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X13),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=30 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X13B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=31 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X13O),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=32 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X14),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=33 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_7X14B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=34 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_8X13),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=35 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_8X13B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=36 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_8X13O),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=37 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X15),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=38 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X15B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=39 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X18),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=40 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_9X18B),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources NXFONTS_FONTID=41 EXTRAFLAGS="$(EXTRAFLAGS)"
|
2014-12-11 00:11:23 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NXFONT_X11_MISC_FIXED_10X20),y)
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources 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-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources 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-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) $(KBIN) BIN=$(KBIN) BINDIR=kbin EXTRAFLAGS="$(EXTRAFLAGS)"
|
2013-12-28 15:40:03 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
2020-11-18 17:44:58 +01:00
|
|
|
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
|
|
$(call CATFILE, bin/Make.dep, $^)
|
|
|
|
$(call DELFILE, $^)
|
2020-11-28 04:43:30 +01:00
|
|
|
|
2020-11-18 17:44:58 +01:00
|
|
|
makekdepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
|
|
$(call CATFILE, kbin/Make.dep, $^)
|
|
|
|
$(call DELFILE, $^)
|
|
|
|
|
2020-07-22 09:54:29 +02:00
|
|
|
.depend: Makefile gensources $(SRCS) $(TOPDIR)$(DELIM).config
|
2020-11-28 14:42:54 +01:00
|
|
|
$(Q) $(MAKE) makedepfile OBJPATH="bin"
|
2020-05-01 21:23:04 +02:00
|
|
|
ifneq ($(CONFIG_BUILD_FLAT),y)
|
2020-11-28 14:42:54 +01:00
|
|
|
$(Q) $(MAKE) makekdepfile CFLAGS="$(CFLAGS) $(KDEFINE)" OBJPATH="kbin"
|
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:
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C bin clean
|
|
|
|
$(Q) $(MAKE) -C kbin clean
|
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources clean 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
|
2020-09-14 18:53:37 +02:00
|
|
|
$(Q) $(MAKE) -C bin distclean
|
|
|
|
$(Q) $(MAKE) -C kbin distclean
|
|
|
|
$(Q) $(MAKE) -C nxfonts -f Makefile.sources distclean 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
|