Skip to content

Commit

Permalink
Update elkscmd/Makefile-rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Sep 20, 2024
1 parent 8465ace commit 4704436
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 31 deletions.
2 changes: 1 addition & 1 deletion elks/Makefile-rules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
########################################################################
# #
# Standard rulesets for use when compiling and installing this system. #
# Standard rulesets for use when compiling the ELKS kernel. #
# #
########################################################################

Expand Down
43 changes: 13 additions & 30 deletions elkscmd/Makefile-rules
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
# ***** IMPORTANT NOTE *****
#
# This file has been revised to remove the requirement that the elkscmd
# and elks trees are located under /usr/src on the developer's system.
# This requires that the variable BASEDIR be defined in every Makefile
# that includes this header file, prior to including it, and the value
# given to BASEDIR is required to be the relative path from the directory
# containing that Makefile to the directory containing this file.
#
# In addition, if there are any local definitions that need including in
# the CFLAGS value, those should be assigned to LOCALFLAGS before including
# this file.
#
# So as to ensure this, it is recommended that the following three lines
# be used as the first three lines of each Makefile including this file:
#
# BASEDIR = ...
#
# LOCALFLAGS = ...
#
# include $(BASEDIR)/Make.defs
#
# This ensures that the correct value is assigned by using it to include
# this file.
#
##############################################################################
# #
# Standard rulesets for use when compiling ELKS applications. #
# #
# This file should be included in every Makefile below elkscmd/ via e.g.: #
# BASEDIR=.. #
# include $(BASEDIR)/Makefile-rules #
# #
##############################################################################

ifndef TOPDIR
Expand All @@ -42,11 +25,6 @@ ELKSCMD_DIR=$(TOPDIR)/elkscmd

INCLUDES=-I$(TOPDIR)/include -I$(TOPDIR)/libc/include -I$(ELKS_DIR)/include

# temporarily turn off typical non-K&R warnings for now
WARNINGS = -Wno-implicit-int
# temporarily turn off suggesting parenthesis around assignment used as truth value
WARNINGS += -Wno-parentheses

##############################################################################
#
# Determine the ELKS kernel version.
Expand Down Expand Up @@ -77,6 +55,11 @@ ifeq ($(CONFIG_APPS_FTRACE), y)
CLBASE += -finstrument-functions-simple -maout-symtab
endif

# temporarily turn off typical non-K&R warnings for now
WARNINGS = -Wno-implicit-int
# temporarily turn off suggesting parenthesis around assignment used as truth value
WARNINGS += -Wno-parentheses

CC=ia16-elf-gcc
AS=ia16-elf-as
LD=ia16-elf-gcc
Expand Down

0 comments on commit 4704436

Please sign in to comment.