CC	= g++
AR	= ar

CCFLAGS	= -O0 -Wall -fno-builtin -ffreestanding -nostdlib -fno-rtti -fno-exceptions -nostdinc -Wno-long-long -fomit-frame-pointer -I ../include
ARFLAGS	= rcs

OBJECTS	= ctype.o string.o stdio.o stdlib.o
TARGET	= libc.o

%.o:%.c
	$(CC) $(CCFLAGS) -c -o $@ $<

all: $(OBJECTS)
	$(LD) -r -o $(TARGET) $(OBJECTS)

clean:
	rm -f $(TARGET) $(OBJECTS)
