1# Copyright 2016 The Fuchsia Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_DIR := $(GET_LOCAL_DIR) 16 17MODULE := $(LOCAL_DIR) 18 19MODULE_TYPE := userapp 20MODULE_GROUP := misc 21 22MODULE_SRCS += $(LOCAL_DIR)/kilo.c 23 24MODULE_NAME := kilo 25 26MODULE_LIBS := system/ulib/fdio system/ulib/c 27 28ifeq ($(call TOBOOL,$(USE_CLANG)),false) 29MODULE_CFLAGS += -Wno-discarded-qualifiers 30else 31MODULE_CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers 32endif 33 34# NOTE(raggi): kilo.c inclusion is disabled for now, as it is the only 35# non-BUILDDIR-relative entry in bootfs.manifest. Having the relative entry 36# means that rebuilding bootdata from the manifest must be run from inside the 37# zircon source tree. We do not expose a source directory, and we don't want to 38# use absolute paths in the build here. We could install the file to the build 39# dir instead. 40# USER_MANIFEST_LINES += src/kilo.c=$(LOCAL_DIR)/kilo.c 41 42include make/module.mk 43