-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
38 lines (29 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Makefile
#
PROG = iomem_hunter
# you can use command "export CROSS_COMPILE=powerpc-eabi-" instead of
CROSS_COMPILE = powerpc-eabi-
#
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
CPP = $(CROSS_COMPILE)g++
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
STRIP = $(CROSS_COMPILE)strip
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
OBJCOPY = $(CROSS_COMPILE)objcopy
STRIP = $(CROSS_COMPILE)strip
LDSTATIC = -static
ELF2ECOFF = ${OBJCOPY} -O ecoff-bigmips
ELF2BIN = ${OBJCOPY} -O binary
SUBDIRS =
OBJS =
${PROG}.o: ${PROG}.S
$(AS) --defsym ${IOS}=1 --defsym _COPY=${COPY} --defsym _SIGNATURE=${SIGNATURE} -mregnames -o ${PROG}.elf ${PROG}.S
${PROG}.bin: ${PROG}.o
${ELF2BIN} ${PROG}.elf ${PROG}.bin
clean:
rm -f *.o core *.core ${PROG}.map ${PROG}.elf ${PROG}.bin