summaryrefslogtreecommitdiff
path: root/xxx/boot2/Makefile
blob: f2537ced291256b449af39793e48c105b88c4319 (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
#master boot record

include ../Makefile.common

.PHONY: all clean

STAGE2=stage2.bin
MP=mp.bin
CONFIG=config.inc



ASM_SOURCES=$(wildcard *.asm)

all: $(STAGE2) $(MP)

$(CONFIG): ../kernel/config.h
	cat ../kernel/config.h  | grep "^#define" | sed -e "s/#/%/" -e  "s/\/\/.*//" > $@

$(STAGE2): $(ASM_SOURCES) $(CONFIG)
$(MP): $(ASM_SOURCES)

clean: 
	-rm $(STAGE2) $(MP) $(CONFIG)