aboutsummaryrefslogtreecommitdiff
path: root/bbl/bbl.mk.in
blob: 2bc96e12dd822e095e9139320eb99603d892e1fc (plain)
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
bbl_subproject_deps = \
	util \
  softfloat \
  machine \
  dummy_payload \

bbl_hdrs = \
  bbl.h \

bbl_c_srcs = \
  logo.c \

bbl_asm_srcs = \
  payload.S \
  raw_logo.S \

payload.o: bbl_payload

bbl_payload: $(BBL_PAYLOAD)
	if $(READELF) -h $< 2> /dev/null > /dev/null; then $(OBJCOPY) -O binary $< $@; else cp $< $@; fi

raw_logo.o: bbl_logo_file

bbl_logo_file: @BBL_LOGO_FILE@
	cat $^ | sed 's/$$/\r/' > $@

bbl_test_srcs =

bbl_install_prog_srcs = \
  bbl.c \