blob: 0d02651837d3c17c8eb75a6e125ef37cfb635f1d [file] [log] [blame] [raw]
# 工具箱在 Windows 上的重要辅助库的 Makefile
ifeq ($(AR),ar)
AR = i586-mingw32msvc-ar
endif
ifeq ($(CC),cc)
CC = i586-mingw32msvc-gcc
endif
CFLAGS = -O1 -Wall
#OBJS = open.o read.o write.o close.o
OBJS = \
close.o \
creat.o \
dup.o \
fdopen.o \
fileno.o \
fsync.o \
isatty.o \
lseek.o \
open.o \
read.o \
write.o
libposixio.a: $(OBJS)
$(AR) -r $@ $^
clean:
rm -f *.o
distclean: clean
rm -f libposixio.a