Travis Geiselbrecht | 78d0e6c | 2009-11-27 13:37:03 -0800 | [diff] [blame] | 1 | ifeq ($(MAKECMDGOALS),spotless) |
| 2 | spotless: |
| 3 | rm -rf build-* |
| 4 | else |
| 5 | |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 6 | -include local.mk |
Travis Geiselbrecht | 5bcbd9d | 2009-01-24 20:15:32 -0800 | [diff] [blame] | 7 | include make/macros.mk |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 8 | |
Brian Swetland | f1e5afd | 2009-01-24 22:09:30 -0800 | [diff] [blame] | 9 | # If one of our goals (from the commandline) happens to have a |
| 10 | # matching project/goal.mk, then we should re-invoke make with |
| 11 | # that project name specified... |
| 12 | |
| 13 | project-name := $(firstword $(MAKECMDGOALS)) |
| 14 | |
| 15 | ifneq ($(project-name),) |
| 16 | ifneq ($(wildcard project/$(project-name).mk),) |
| 17 | do-nothing := 1 |
| 18 | $(MAKECMDGOALS) _all: make-make |
| 19 | make-make: |
| 20 | @PROJECT=$(project-name) $(MAKE) $(filter-out $(project-name), $(MAKECMDGOALS)) |
| 21 | endif |
| 22 | endif |
| 23 | |
| 24 | ifeq ($(do-nothing),) |
| 25 | |
| 26 | ifeq ($(PROJECT),) |
| 27 | $(error No project specified. Use "make projectname" or put "PROJECT := projectname" in local.mk) |
| 28 | endif |
| 29 | |
Chandan Uddaraju | 40b227d | 2010-08-03 19:25:41 -0700 | [diff] [blame] | 30 | DEBUG ?= 0 |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 31 | |
Chandan Uddaraju | a9b07bb | 2009-11-21 12:22:02 -0800 | [diff] [blame] | 32 | ifndef $(BOOTLOADER_OUT) |
| 33 | BOOTLOADER_OUT := . |
| 34 | endif |
| 35 | |
Chandan Uddaraju | 885e4db | 2009-12-03 22:45:26 -0800 | [diff] [blame] | 36 | LK_TOP_DIR:= . |
Chandan Uddaraju | a9b07bb | 2009-11-21 12:22:02 -0800 | [diff] [blame] | 37 | BUILDDIR := $(BOOTLOADER_OUT)/build-$(PROJECT) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 38 | OUTBIN := $(BUILDDIR)/lk.bin |
| 39 | OUTELF := $(BUILDDIR)/lk |
Channagoud Kadabi | 02072a4 | 2014-02-28 19:15:40 -0800 | [diff] [blame] | 40 | OUTELF_STRIP := $(BUILDDIR)/lk_s.elf |
| 41 | |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 42 | CONFIGHEADER := $(BUILDDIR)/config.h |
| 43 | |
Subbaraman Narayanamurthy | 8bcd5fd | 2011-01-17 17:18:44 -0800 | [diff] [blame] | 44 | #Initialize the command-line flag ENABLE_TRUSTZONE. Value for flag passed in at command-line will take precedence |
| 45 | ENABLE_TRUSTZONE := 0 |
| 46 | |
| 47 | ifeq ($(ENABLE_TRUSTZONE),1) |
| 48 | INPUT_TZ_BIN := tzbsp/tzbsp.bin |
| 49 | OUTPUT_TZ_BIN := $(BUILDDIR)/tzbsp_bin.o |
| 50 | endif |
| 51 | |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 52 | INCLUDES := -I$(BUILDDIR) -Iinclude |
S A Muqthyar | d8d0ed0 | 2018-03-14 13:13:59 +0530 | [diff] [blame] | 53 | CFLAGS := -O2 -g -fno-builtin -finline -W -Wall -Wno-multichar -Wno-unused-parameter -Wno-unused-function $(LKLE_CFLAGS) -include $(CONFIGHEADER) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 54 | #CFLAGS += -Werror |
David Ng | 025c1d9 | 2009-12-09 23:46:00 -0800 | [diff] [blame] | 55 | ifeq ($(EMMC_BOOT),1) |
| 56 | CFLAGS += -D_EMMC_BOOT=1 |
| 57 | endif |
Shashank Mittal | cd98d47 | 2011-08-02 14:29:24 -0700 | [diff] [blame] | 58 | |
| 59 | ifeq ($(SIGNED_KERNEL),1) |
| 60 | CFLAGS += -D_SIGNED_KERNEL=1 |
| 61 | endif |
| 62 | |
jessicatseng | 09730a0 | 2020-05-06 19:02:18 +0800 | [diff] [blame] | 63 | #ifeq ($(TARGET_BUILD_VARIANT),user) |
| 64 | # CFLAGS += -DDISABLE_FASTBOOT_CMDS=1 |
| 65 | #endif |
Sridhar Parasuram | e94e815 | 2014-10-24 14:06:03 -0700 | [diff] [blame] | 66 | |
anisha agarwal | ebc52bc | 2016-07-08 15:50:00 -0700 | [diff] [blame] | 67 | ifeq ($(APPEND_CMDLINE),1) |
| 68 | CFLAGS += -D_APPEND_CMDLINE=1 |
| 69 | endif |
Himal Ghimiray | c5d8121 | 2017-04-28 14:06:04 +0530 | [diff] [blame] | 70 | ifeq ($(ENABLE_HARD_FPU),1) |
| 71 | CFLAGS += -mfloat-abi=hard -mfpu=neon |
| 72 | endif |
Sachin Prakash Gejji | f557d22 | 2017-08-04 17:18:45 +0530 | [diff] [blame] | 73 | |
| 74 | ifeq ($(ENABLE_EARLY_ETHERNET),1) |
| 75 | CFLAGS += -DENABLE_EARLY_ETHERNET=1 |
| 76 | endif |
| 77 | |
tracychui | 9d60fc5 | 2020-06-05 17:31:38 +0800 | [diff] [blame] | 78 | CFLAGS += -DENABLE_PRODINFO_ACCESS=1 |
| 79 | |
| 80 | |
jhchen | a8a15dd | 2020-04-24 15:45:57 +0800 | [diff] [blame] | 81 | CFLAGS += -DENABLE_FUSE_CHECK=1 |
| 82 | |
Channagoud Kadabi | 02072a4 | 2014-02-28 19:15:40 -0800 | [diff] [blame] | 83 | # setup toolchain prefix |
| 84 | TOOLCHAIN_PREFIX ?= arm-eabi- |
Maria Yu | d320051 | 2014-05-28 15:57:51 +0800 | [diff] [blame] | 85 | CFLAGS += -fstack-protector-all |
vijay kumar | c2119f1 | 2014-07-22 18:30:11 +0530 | [diff] [blame] | 86 | CFLAGS += -fno-strict-overflow |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 87 | CPPFLAGS := -fno-exceptions -fno-rtti -fno-threadsafe-statics |
| 88 | #CPPFLAGS += -Weffc++ |
| 89 | ASMFLAGS := -DASSEMBLY |
| 90 | LDFLAGS := |
| 91 | |
| 92 | CFLAGS += -ffunction-sections -fdata-sections |
| 93 | LDFLAGS += -gc-sections |
| 94 | |
| 95 | # top level rule |
Channagoud Kadabi | 02072a4 | 2014-02-28 19:15:40 -0800 | [diff] [blame] | 96 | all:: $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).size $(OUTELF_STRIP) APPSBOOTHEADER |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 97 | |
| 98 | # the following three object lists are identical except for the ordering |
| 99 | # which is bootobjs, kobjs, objs |
| 100 | BOOTOBJS := |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 101 | OBJS := |
| 102 | |
| 103 | # a linker script needs to be declared in one of the project/target/platform files |
| 104 | LINKER_SCRIPT := |
| 105 | |
| 106 | # anything you add here will be deleted in make clean |
| 107 | GENERATED := $(CONFIGHEADER) |
| 108 | |
| 109 | # anything added to DEFINES will be put into $(BUILDDIR)/config.h |
| 110 | DEFINES := LK=1 |
| 111 | |
| 112 | # Anything added to SRCDEPS will become a dependency of every source file in the system. |
| 113 | # Useful for header files that may be included by one or more source files. |
| 114 | SRCDEPS := $(CONFIGHEADER) |
| 115 | |
Shashank Mittal | e99a8d3 | 2014-09-11 19:51:06 -0700 | [diff] [blame] | 116 | ifeq ($(VERIFIED_BOOT),1) |
| 117 | DEFINES += VERIFIED_BOOT=1 |
| 118 | DEFINES += _SIGNED_KERNEL=1 |
| 119 | ifeq ($(DEFAULT_UNLOCK),true) |
| 120 | DEFINES += DEFAULT_UNLOCK=1 |
| 121 | endif |
| 122 | endif |
| 123 | |
AnilKumar Chimata | 4686432 | 2017-08-10 14:51:25 +0530 | [diff] [blame] | 124 | ifeq ($(VERIFIED_BOOT_LE),1) |
| 125 | DEFINES += VERIFIED_BOOT_LE=1 |
| 126 | ifeq ($(DEFAULT_UNLOCK),true) |
| 127 | DEFINES += DEFAULT_UNLOCK=1 |
| 128 | endif |
| 129 | endif |
Monika Singh | ae7e964 | 2018-03-08 17:44:30 +0530 | [diff] [blame] | 130 | ifeq ($(VERIFIED_BOOT_2),1) |
| 131 | DEFINES += VERIFIED_BOOT_2=1 |
| 132 | DEFINES += _SIGNED_KERNEL=1 |
| 133 | endif |
AnilKumar Chimata | 4686432 | 2017-08-10 14:51:25 +0530 | [diff] [blame] | 134 | |
Monika Singh | 4d659d2 | 2019-12-05 16:38:04 +0530 | [diff] [blame] | 135 | ifeq ($(VB1_KEY_USED),1) |
| 136 | DEFINES += VB1_KEY_USED=1 |
| 137 | endif |
| 138 | |
Mayank Grover | c8a46c4 | 2019-04-25 11:46:00 +0530 | [diff] [blame] | 139 | ifeq ($(DYNAMIC_PARTITION_SUPPORT),1) |
| 140 | DEFINES += DYNAMIC_PARTITION_SUPPORT=1 |
| 141 | endif |
| 142 | |
Jiten Patel | 3f6e701 | 2018-08-22 12:46:20 +0530 | [diff] [blame] | 143 | ifeq ($(TARGET_DTBO_NOT_SUPPORTED),1) |
| 144 | DEFINES += TARGET_DTBO_NOT_SUPPORTED=1 |
| 145 | endif |
| 146 | |
Vijay Kumar Pendoti | 2f86905 | 2016-07-15 12:04:19 +0530 | [diff] [blame] | 147 | ifeq ($(OSVERSION_IN_BOOTIMAGE),1) |
| 148 | DEFINES += OSVERSION_IN_BOOTIMAGE=1 |
| 149 | endif |
| 150 | |
Mayank Grover | 02b160c | 2018-05-15 14:52:18 +0530 | [diff] [blame] | 151 | ifeq ($(HIBERNATION_SUPPORT),1) |
| 152 | DEFINES += HIBERNATION_SUPPORT=1 |
| 153 | endif |
| 154 | |
Vijay Kumar Pendoti | 2f86905 | 2016-07-15 12:04:19 +0530 | [diff] [blame] | 155 | ifeq ($(ENABLE_VB_ATTEST),1) |
| 156 | DEFINES += ENABLE_VB_ATTEST=1 |
| 157 | endif |
| 158 | |
Channagoud Kadabi | 9071af3 | 2015-03-12 12:39:56 -0700 | [diff] [blame] | 159 | ifeq ($(USER_BUILD_VARIANT),true) |
| 160 | DEFINES += USER_BUILD_VARIANT=1 |
| 161 | endif |
| 162 | |
Hareesh Gautham | 49c6a61 | 2017-04-21 15:54:27 +0530 | [diff] [blame] | 163 | ifeq ($(USE_LE_SYSTEMD),true) |
| 164 | DEFINES += USE_LE_SYSTEMD=1 |
| 165 | else |
| 166 | DEFINES += USE_LE_SYSTEMD=0 |
| 167 | endif |
| 168 | |
zhaochen | 3e3b52f | 2018-02-06 19:25:27 +0800 | [diff] [blame] | 169 | ifeq ($(MOUNT_EMMC_LE),true) |
| 170 | DEFINES += MOUNT_EMMC_LE=1 |
| 171 | else |
| 172 | DEFINES += MOUNT_EMMC_LE=0 |
| 173 | endif |
| 174 | |
lijuang | c43b2cb | 2017-12-07 14:45:23 +0800 | [diff] [blame] | 175 | #Enable kaslr seed support |
| 176 | ifeq ($(ENABLE_KASLRSEED),1) |
| 177 | DEFINES += ENABLE_KASLRSEED_SUPPORT=1 |
| 178 | else |
| 179 | DEFINES += ENABLE_KASLRSEED_SUPPORT=0 |
| 180 | endif |
| 181 | |
Mayank Grover | 44180df | 2018-05-09 12:13:12 +0530 | [diff] [blame] | 182 | ifeq ($(TARGET_USE_SYSTEM_AS_ROOT_IMAGE),1) |
| 183 | DEFINES += TARGET_USE_SYSTEM_AS_ROOT_IMAGE=1 |
| 184 | else |
| 185 | DEFINES += TARGET_USE_SYSTEM_AS_ROOT_IMAGE=0 |
| 186 | endif |
| 187 | |
tracychui | 9d60fc5 | 2020-06-05 17:31:38 +0800 | [diff] [blame] | 188 | DEFINES += ARIMA_BOOTLOADER_VERSION=\"$(ARIMA_SW_VERSION_ABOOT)\" |
| 189 | DEFINES += ARIMA_BASEBAND_VERSION=\"$(MODEM_BUILDID)\" |
| 190 | |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 191 | # these need to be filled out by the project/target/platform rules.mk files |
| 192 | TARGET := |
| 193 | PLATFORM := |
| 194 | ARCH := |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 195 | ALLMODULES := |
| 196 | MODULES := |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 197 | |
| 198 | # any rules you put here will also be built by the system before considered being complete |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 199 | EXTRA_BUILDDEPS := |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 200 | |
| 201 | # any rules you put here will be depended on in clean builds |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 202 | EXTRA_CLEANDEPS := |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 203 | |
Travis Geiselbrecht | 577036f | 2009-01-24 21:37:21 -0800 | [diff] [blame] | 204 | include project/$(PROJECT).mk |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 205 | include target/$(TARGET)/rules.mk |
Chandan Uddaraju | a9b07bb | 2009-11-21 12:22:02 -0800 | [diff] [blame] | 206 | include target/$(TARGET)/tools/makefile |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 207 | include platform/$(PLATFORM)/rules.mk |
| 208 | include arch/$(ARCH)/rules.mk |
| 209 | include platform/rules.mk |
| 210 | include target/rules.mk |
| 211 | include kernel/rules.mk |
| 212 | include dev/rules.mk |
Travis Geiselbrecht | 6837223 | 2009-01-24 21:21:08 -0800 | [diff] [blame] | 213 | include app/rules.mk |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 214 | |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 215 | # recursively include any modules in the MODULE variable, leaving a trail of included |
| 216 | # modules in the ALLMODULES list |
Travis Geiselbrecht | 5bcbd9d | 2009-01-24 20:15:32 -0800 | [diff] [blame] | 217 | include make/module.mk |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 218 | |
| 219 | # any extra top level build dependencies that someone declared |
| 220 | all:: $(EXTRA_BUILDDEPS) |
| 221 | |
| 222 | ALLOBJS := \ |
| 223 | $(BOOTOBJS) \ |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 224 | $(OBJS) |
| 225 | |
| 226 | # add some automatic configuration defines |
| 227 | DEFINES += \ |
| 228 | PROJECT_$(PROJECT)=1 \ |
| 229 | TARGET_$(TARGET)=1 \ |
| 230 | PLATFORM_$(PLATFORM)=1 \ |
| 231 | ARCH_$(ARCH)=1 \ |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 232 | $(addsuffix =1,$(addprefix WITH_,$(ALLMODULES))) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 233 | |
Mayank Grover | 9ca6d48 | 2018-05-30 18:10:16 +0530 | [diff] [blame] | 234 | # Add MEMRWOFF as . for targets this is not declared. |
| 235 | # . will be replaced as string in linker file. |
| 236 | ifeq ($(MEMRWOFF),) |
| 237 | MEMRWOFF:= . |
| 238 | DEFINES += MEMRWOFF=$(MEMRWOFF) |
| 239 | endif |
| 240 | |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 241 | # debug build? |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 242 | ifneq ($(DEBUG),) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 243 | DEFINES += \ |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 244 | DEBUG=$(DEBUG) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 245 | endif |
| 246 | |
| 247 | ALLOBJS := $(addprefix $(BUILDDIR)/,$(ALLOBJS)) |
| 248 | |
| 249 | DEPS := $(ALLOBJS:%o=%d) |
| 250 | |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 251 | # default to no ccache |
| 252 | CCACHE ?= |
| 253 | CC := $(CCACHE) $(TOOLCHAIN_PREFIX)gcc |
Channagoud Kadabi | 02072a4 | 2014-02-28 19:15:40 -0800 | [diff] [blame] | 254 | ifeq ($(LD),ld) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 255 | LD := $(TOOLCHAIN_PREFIX)ld |
Channagoud Kadabi | 02072a4 | 2014-02-28 19:15:40 -0800 | [diff] [blame] | 256 | endif |
| 257 | STRIP := $(TOOLCHAIN_PREFIX)strip |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 258 | OBJDUMP := $(TOOLCHAIN_PREFIX)objdump |
| 259 | OBJCOPY := $(TOOLCHAIN_PREFIX)objcopy |
| 260 | CPPFILT := $(TOOLCHAIN_PREFIX)c++filt |
| 261 | SIZE := $(TOOLCHAIN_PREFIX)size |
| 262 | NM := $(TOOLCHAIN_PREFIX)nm |
| 263 | |
Travis Geiselbrecht | f54ab82 | 2008-09-05 04:14:40 -0700 | [diff] [blame] | 264 | # comment out or override if you want to see the full output of each command |
| 265 | NOECHO ?= @ |
| 266 | |
| 267 | # the logic to compile and link stuff is in here |
Travis Geiselbrecht | 5bcbd9d | 2009-01-24 20:15:32 -0800 | [diff] [blame] | 268 | include make/build.mk |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 269 | |
| 270 | clean: $(EXTRA_CLEANDEPS) |
Channagoud Kadabi | 02072a4 | 2014-02-28 19:15:40 -0800 | [diff] [blame] | 271 | rm -f $(ALLOBJS) $(DEPS) $(GENERATED) $(OUTBIN) $(OUTELF) $(OUTELF).lst $(OUTELF_STRIP) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 272 | |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 273 | install: all |
| 274 | scp $(OUTBIN) 192.168.0.4:/tftproot |
| 275 | |
| 276 | # generate a config.h file with all of the DEFINES laid out in #define format |
| 277 | configheader: |
| 278 | |
| 279 | $(CONFIGHEADER): configheader |
| 280 | @$(MKDIR) |
| 281 | @echo generating $@ |
| 282 | @rm -f $(CONFIGHEADER).tmp; \ |
| 283 | echo \#ifndef __CONFIG_H > $(CONFIGHEADER).tmp; \ |
| 284 | echo \#define __CONFIG_H >> $(CONFIGHEADER).tmp; \ |
Mayank Grover | 88647b5 | 2018-06-11 16:40:02 +0530 | [diff] [blame] | 285 | echo \#define BOARD $(BOARD_NAME) >> $(CONFIGHEADER).tmp; \ |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 286 | for d in `echo $(DEFINES) | tr [:lower:] [:upper:]`; do \ |
| 287 | echo "#define $$d" | sed "s/=/\ /g;s/-/_/g;s/\//_/g" >> $(CONFIGHEADER).tmp; \ |
| 288 | done; \ |
| 289 | echo \#endif >> $(CONFIGHEADER).tmp; \ |
| 290 | if [ -f "$(CONFIGHEADER)" ]; then \ |
| 291 | if cmp "$(CONFIGHEADER).tmp" "$(CONFIGHEADER)"; then \ |
| 292 | rm -f $(CONFIGHEADER).tmp; \ |
| 293 | else \ |
| 294 | mv $(CONFIGHEADER).tmp $(CONFIGHEADER); \ |
| 295 | fi \ |
| 296 | else \ |
| 297 | mv $(CONFIGHEADER).tmp $(CONFIGHEADER); \ |
| 298 | fi |
| 299 | |
| 300 | # Empty rule for the .d files. The above rules will build .d files as a side |
| 301 | # effect. Only works on gcc 3.x and above, however. |
| 302 | %.d: |
| 303 | |
| 304 | ifeq ($(filter $(MAKECMDGOALS), clean), ) |
| 305 | -include $(DEPS) |
| 306 | endif |
| 307 | |
| 308 | .PHONY: configheader |
Brian Swetland | f1e5afd | 2009-01-24 22:09:30 -0800 | [diff] [blame] | 309 | endif |
Travis Geiselbrecht | 78d0e6c | 2009-11-27 13:37:03 -0800 | [diff] [blame] | 310 | |
| 311 | endif # make spotless |