Subversion Repositories HelenOS-historic

Rev

Rev 376 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
455 decky 1
.PHONY: build clean
162 decky 2
 
455 decky 3
CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -I../include
1 jermar 4
 
5
build: boot.bin
376 jermar 6
	cp boot.bin ../../../load.bin
1 jermar 7
 
210 decky 8
boot.bin: boot.o main.o
455 decky 9
	$(LD) -no-check-sections -N -T _link.ld boot.o main.o -o $@
1 jermar 10
 
210 decky 11
boot.o: boot.S
12
	$(CC) $(CFLAGS) -c boot.S -o $@
1 jermar 13
 
210 decky 14
main.o: main.c
15
	$(CC) $(CFLAGS) -c main.c -o $@
16
 
1 jermar 17
clean:
455 decky 18
	-rm -f boot.o main.o boot.bin ../../../load.bin