compiled newlib, need to hook up the system calls
This commit is contained in:
20
rocklibc/makefile
Normal file
20
rocklibc/makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
CC = i686-elf-gcc
|
||||
AR = i686-elf-ar
|
||||
CFLAGS = -ffreestanding -O2 -Wall -Wextra -Iinclude -DHAVE_MMAP=0 -DLACKS_SYS_MMAN_H=1 -DUSE_LOCKS=0 -DLACKS_SYS_PARAM_H=1
|
||||
TARGET = rlibc.a
|
||||
|
||||
SRCS = $(shell find src -name "*.c")
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(AR) rcs $@ $(OBJS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user