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

21 lines
341 B
Makefile
Raw Normal View History

2020-11-25 06:00:24 -05:00
CCPREFIX = i686-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc
2020-11-25 13:10:00 -05:00
LD = $(CCPREFIX)ld
2020-11-25 06:00:24 -05:00
2020-11-25 04:50:29 -05:00
PROCMAN = procman
2020-11-25 08:55:20 -05:00
CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
2020-11-25 06:00:24 -05:00
all: $(PROCMAN)
2020-11-25 04:15:55 -05:00
clean:
2020-11-25 08:55:20 -05:00
rm -f $(PROCMAN) start.o
2020-11-25 06:00:24 -05:00
2020-11-25 08:55:20 -05:00
$(PROCMAN): start.o
2020-11-25 13:10:00 -05:00
$(LD) -o $@ -T linker.ld $^
2020-11-25 06:00:24 -05:00
2020-11-25 08:55:20 -05:00
start.o: start.c
$(CC) -c $< -o $@ $(CFLAGS)