mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-18 21:02:34 +03:00
21 lines
299 B
Makefile
21 lines
299 B
Makefile
|
CC=gcc
|
||
|
AS=gcc
|
||
|
LD=ld
|
||
|
OBJCOPY=objcopy
|
||
|
READELF=readelf
|
||
|
MCOPY=mcopy
|
||
|
RM=rm -rf
|
||
|
|
||
|
CFLAGS=-c -m32 -O2 -I$(ROOT)/include/
|
||
|
ASFLAGS=-c -m32
|
||
|
LDFLAGS=-nostdlib -T kolibri.ld -melf_i386
|
||
|
OBJCOPYFLAGS=-O binary
|
||
|
READELFFLAGS=--syms
|
||
|
MCOPYFLAGS=-D o
|
||
|
|
||
|
.c.o:
|
||
|
$(CC) $(CFLAGS) -o $*.o $<
|
||
|
|
||
|
.s.o:
|
||
|
$(AS) $(ASFLAGS) $*.o $<
|