Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (34 sloc) 593 Bytes
CFLAGS = \
-MD \
-Os \
-Wall \
-Wextra \
-Wpedantic \
-ffreestanding \
-g \
-nostdlib \
-std=c99
CPPFLAGS = -Iinclude
OBJS = \
src/ctype/isspace.o \
src/stdio/sprintf.o \
src/stdlib/itoa.o \
src/string/memcmp.o \
src/string/memcpy.o \
src/string/memmove.o \
src/string/memset.o \
src/string/strlen.o \
src/string/strnlen.o
DEPS = $(OBJS:.o=.d)
.PHONY: all
all: libflibc.a
libflibc.a: $(OBJS)
$(AR) rcs libflibc.a $(OBJS)
.PHONY: test
test: libflibc.a
$(MAKE) -C test test
.PHONY: clean
clean:
$(RM) libflibc.a $(OBJS) $(DEPS)
$(MAKE) -C test clean
-include $(DEPS)
You can’t perform that action at this time.