1
0
uboot-1.1.4-kirkwood/tools/Makefile_doimage

42 lines
605 B
Plaintext
Raw Normal View History

2024-01-07 23:58:22 +01:00
STRIP = strip
#
# Include the make variables (CC, etc...)
#
LD = ld
CC = gcc
OBJCOPY = objcopy
OBJDUMP = objdump
CFLAGS = -DMV_CPU_LE
LDFLAGS =
BIN = doimage
all: $(BIN)
doimage: doimage.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(STRIP) $@
doimage.o: doimage.c
$(CC) -g $(CFLAGS) -c $<
clean:
find . -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o' -o -name '*.a' \) -print \
| xargs rm -f
rm -f $(ELF) $(SREC) $(BIN) $(DIS) bootstrap.map