mirror of
https://github.com/Fennix-Project/Lynx.git
synced 2025-05-25 22:14:44 +00:00
23 lines
335 B
Makefile
23 lines
335 B
Makefile
include ../../Makefile.conf
|
|
|
|
NAME=loader.bin
|
|
NASM = /usr/bin/nasm
|
|
|
|
ASM_SOURCES = $(shell find ./ -type f -name '*.asm')
|
|
OBJ = $(ASM_SOURCES:.asm=.o)
|
|
|
|
prepare:
|
|
$(info Nothing to prepare)
|
|
|
|
$(NAME): $(OBJ)
|
|
cat boot.o second.o > $@
|
|
|
|
build: $(NAME)
|
|
|
|
%.o: %.asm
|
|
$(info Compiling $<)
|
|
$(NASM) $< -f bin -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJ) $(NAME)
|