Atlas - Makefile
Home Lines: 1 | Size: 1579 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1# SPDX-License-Identifier: GPL-3.0 2# Nexus Makefile System 3# 4# Makefile 5# This file seems pretty empty, well thats because it is by design. Check the 6# includes in tools/build/make/includes.mk 7# 8# COPYRIGHT NOTICE 9# Copyright (C) 2025 0x4248 and contributors 10# Redistribution and use in source and binary forms, with or without 11# modification, are permitted provided that the license is not changed. 12# 13# This software is free and open source. Licensed under the GNU general 14# public license version 3.0 as published by the Free Software Foundation. 15 16 17 18all: precheck help 19 20NOCONFIG_TARGETS := menuconfig defconfig 21 22precheck: 23 @{ \ 24 if [ "$$(uname -s)" = "Darwin" ] && \ 25 [ "$(CONFIG_MAKE_IGNORE_WARNING_DARWIN)" != "y" ]; then \ 26 echo "WARNING: You are using Darwin (MacOS) which is not usually supported by Nexus"; \ 27 echo "Set CONFIG_MAKE_IGNORE_WARNING_DARWIN=y to suppress this warning"; \ 28 fi; \ 29 } || true 30 31 $(T)$(LOG) -e "PRECHECK\tGLOBPATH" 32 $(T)pwd > .nexopath 33 $(T)$(LOG) -e "PRECHECK\tCONFIG" 34 @if [ -z "$(filter $(MAKECMDGOALS),$(NOCONFIG_TARGETS))" ]; then \ 35 if [ ! -f .config ]; then \ 36 cat doc/make/errors/confmissing.msg | less; \ 37 exit 1; \ 38 fi; \ 39 fi 40 41-include tools/build/make/includes.mk 42 43ifneq ($(filter $(MAKECMDGOALS),$(NOCONFIG_TARGETS)),) 44 # This is only ran if they wanted to make the config without any config 45else 46 $(MAKECMDGOALS): precheck 47endif 48 49include Nbuild 50 51build: $(NBUILD-T) 52 $(T)$(LOG) -e "NBUILD\t COMPLETE" 53 54$(NBUILD-T): 55 $(T)$(LOG) -e "NBUILD\t $(NBUILD-T)" 56 $(MAKE) -C $@ 57 58.PHONY: precheck build $(TARGETS) $(NBUILD-T) 59 60[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.