1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/procman/Makefile

19 lines
271 B
Makefile
Raw Normal View History

2020-11-25 06:00:24 -05:00
CCPREFIX = i686-elf-
AR = $(CCPREFIX)ar
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc
2020-11-25 04:50:29 -05:00
PROCMAN = procman
2020-11-25 06:00:24 -05:00
all: $(PROCMAN)
2020-11-25 04:15:55 -05:00
clean:
2020-11-25 06:00:24 -05:00
rm -f $(PROCMAN) main.o
$(PROCMAN): main.o
$(CC) -T linker.ld -o $@ -ffreestanding -nostdlib -lgcc $^
main.o: main.asm
nasm -f elf32 $< -o $@