2011-03-20 23:07:56 +01:00
|
|
|
############################################################################
|
2012-12-23 21:22:41 +01:00
|
|
|
# apps/builtin/Makefile
|
2011-03-20 23:07:56 +01:00
|
|
|
#
|
2021-06-07 16:27:53 +02: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
|
2011-03-20 23:07:56 +01:00
|
|
|
#
|
2021-06-07 16:27:53 +02:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2011-03-20 23:07:56 +01:00
|
|
|
#
|
2021-06-07 16:27:53 +02: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.
|
2011-03-20 23:07:56 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-20 06:35:03 +02:00
|
|
|
include $(APPDIR)/Make.defs
|
2011-03-20 23:07:56 +01:00
|
|
|
|
|
|
|
# Source and object files
|
|
|
|
|
2019-08-23 17:12:20 +02:00
|
|
|
CSRCS = builtin_list.c exec_builtin.c
|
2011-03-28 15:01:57 +02:00
|
|
|
|
2018-08-16 02:30:59 +02:00
|
|
|
# Registry entry lists
|
|
|
|
|
2018-08-18 19:37:23 +02:00
|
|
|
PDATLIST = $(strip $(call RWILDCARD, registry, *.pdat))
|
|
|
|
BDATLIST = $(strip $(call RWILDCARD, registry, *.bdat))
|
2018-08-16 02:30:59 +02:00
|
|
|
|
2019-12-31 18:02:09 +01:00
|
|
|
builtin_list.c: builtin_list.h builtin_proto.h
|
2015-02-03 15:24:24 +01:00
|
|
|
|
2020-05-18 05:21:52 +02:00
|
|
|
registry$(DELIM).updated:
|
|
|
|
$(Q) touch registry$(DELIM).updated
|
|
|
|
|
2012-12-25 18:22:58 +01:00
|
|
|
builtin_list.h: registry$(DELIM).updated
|
2020-05-18 05:21:52 +02:00
|
|
|
ifeq ($(BDATLIST),)
|
|
|
|
$(call DELFILE, builtin_list.h)
|
|
|
|
$(Q) touch builtin_list.h
|
|
|
|
else
|
|
|
|
$(call CATFILE, builtin_list.h, $(BDATLIST))
|
2018-08-18 19:37:23 +02:00
|
|
|
endif
|
2012-12-23 23:17:09 +01:00
|
|
|
|
2012-12-25 18:22:58 +01:00
|
|
|
builtin_proto.h: registry$(DELIM).updated
|
2020-05-18 05:21:52 +02:00
|
|
|
ifeq ($(PDATLIST),)
|
|
|
|
$(call DELFILE, builtin_proto.h)
|
|
|
|
$(Q) touch builtin_proto.h
|
|
|
|
else
|
|
|
|
$(call CATFILE, builtin_proto.h, $(PDATLIST))
|
2018-08-18 19:37:23 +02:00
|
|
|
endif
|
2011-03-24 01:28:50 +01:00
|
|
|
|
2018-09-03 17:29:56 +02:00
|
|
|
depend:: builtin_list.h builtin_proto.h
|
2011-03-20 23:07:56 +01:00
|
|
|
|
2018-09-03 17:29:56 +02:00
|
|
|
clean::
|
2012-12-23 21:22:41 +01:00
|
|
|
$(call DELFILE, builtin_list.h)
|
|
|
|
$(call DELFILE, builtin_proto.h)
|
2011-03-20 23:07:56 +01:00
|
|
|
|
2020-05-18 05:21:52 +02:00
|
|
|
clean_context::
|
|
|
|
$(call DELFILE, $(PDATLIST))
|
|
|
|
$(call DELFILE, $(BDATLIST))
|
|
|
|
|
|
|
|
distclean:: clean_context clean
|
|
|
|
$(call DELFILE, registry$(DELIM).updated)
|
|
|
|
|
2018-09-03 17:29:56 +02:00
|
|
|
include $(APPDIR)/Application.mk
|