summaryrefslogtreecommitdiff
path: root/util/marvell/doimage_mv/Makefile.mk
blob: 6f3a401feaca2794a4204e19ec307e62abe0938b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## SPDX-License-Identifier: GPL-2.0-only
TOP            = $(abspath ../../..)
DOIMAGE_FOLDER = marvell/doimage_mv
DOIMAGE_BINARY = doimage

CFLAGS_doimage  = -g -O1 -I./../inc -DMV_CPU_LE -I $(TOP)/src/commonlib/bsd/include

$(objutil)/$(DOIMAGE_FOLDER):
	mkdir -p $@

$(objutil)/$(DOIMAGE_FOLDER)/doimage.o: $(top)/util/marvell/doimage_mv/doimage.c $(objutil)/$(DOIMAGE_FOLDER)
	$(HOSTCC) $(CFLAGS_doimage) -c $< -o $@

$(objutil)/$(DOIMAGE_FOLDER)/$(DOIMAGE_BINARY): $(objutil)/$(DOIMAGE_FOLDER)/doimage.o
	$(HOSTCC) $(CFLAGS_doimage) -o $@ $^