Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minimalOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ty2-yuen
minimalOS
Commits
ad9cb72a
Commit
ad9cb72a
authored
4 years ago
by
ty2-yuen
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Delete Makefile"
This reverts commit
4dd94f2a
parent
5614833b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
minimalOS/Makefile
+38
-0
38 additions, 0 deletions
minimalOS/Makefile
with
38 additions
and
0 deletions
minimalOS/Makefile
0 → 100644
+
38
−
0
View file @
ad9cb72a
# Author: UWE
# Desc: Makefile to build Minimal Operating System
# Goal: Provide students with the bare minimum to
# boot first OS
OSNAME
=
minimal.bin
CDROM
=
minimal.iso
AS
=
i686-elf-as
CC
=
i686-elf-gcc
CFLAGS
=
-ffreestanding
-O2
-std
=
gnu99
-Wall
-Wextra
LFLAGS
=
-ffreestanding
-O2
-nostdlib
-lgcc
OBJS
=
boot.o kernel.o
%.o
:
%.s
$(
AS
)
-o
$@
$<
%.o
:
%.c
$(
CC
)
-c
-o
$@
$<
$(
CFLAGS
)
$(CDROM)
:
$(OSNAME) grub.cfg
cp
$(
OSNAME
)
isodir/boot/
$(
OSNAME
)
cp
grub.cfg isodir/boot/grub
grub-mkrescue
-o
$@
isodir
$(OSNAME)
:
$(OBJS)
$(
CC
)
-T
linker.ld
-o
$@
$(
LFLAGS
)
$^
.PHONY
:
clean
clean
:
rm
isodir/boot/
$(
OSNAME
)
rm
isodir/boot/grub/grub.cfg
rm
*
.o
rm
$(
OSNAME
)
rm
$(
CDROM
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment