ScrapExplorer - Makefile

Home / arch / x86 / phoenix Lines: 1 | Size: 944 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1# SPDX-License-Identifier: GPL-3.0 2# Phoenix 3# 4# Main Makefile 5# 6# COPYRIGHT NOTICE 7# Copyright (C) 2024 0x4248 and phoenix contributors 8# Redistribution and use in source and binary forms, with or without 9# modification, are permitted provided that the license is not changed. 10# 11# This software is free and open source. Licensed under the GNU general 12# public license version 3.0 as published by the Free Software Foundation. 13 14# Directories 15SRC = src 16BIN = bin 17CLEAN = $(BIN) 18 19# Programs 20NASM = nasm 21 22# Targets 23all: init build 24 25init: 26 mkdir -p $(BIN) 27 28build: 29 $(NASM) $(SRC)/boot.s -o $(BIN)/boot.bin 30 $(NASM) $(SRC)/kernel.s -o $(BIN)/kenrel.bin 31 32 dd if=/dev/zero of=$(BIN)/floppy.img bs=512 count=2880 33 dd if=$(BIN)/boot.bin of=$(BIN)/floppy.img conv=notrunc bs=512 count=1 seek=0 34 dd if=$(BIN)/kenrel.bin of=$(BIN)/floppy.img conv=notrunc bs=512 count=2048 seek=1 35 36clean: 37 rm -rf $(CLEAN) 38 39run: 40 qemu-system-x86_64 -fda $(BIN)/floppy.img
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.