blob: 9315de7e2d054b0d42873c512b69447a52e8df38 [file] [log] [blame] [raw]
AR = i586-mingw32msvc-ar
CC = i586-mingw32msvc-gcc
LD = i586-mingw32msvc-ld
CFLAGS += -Iinclude -I../ntdll/include -O1 -Wall
LDFLAGS += --shared -e _DllMainCRTStartup --enable-stdcall-fixup
MOD = \
assert.o \
char-io.o \
getcwd.o \
link.o \
malloc.o \
mkdir.o \
sleep.o \
symlink.o \
unlink.o \
posix-io/close.o \
posix-io/creat.o \
posix-io/dup.o \
posix-io/lseek.o \
posix-io/open.o \
posix-io/read.o \
posix-io/tty-fd.o \
posix-io/write.o \
process/abort.o \
process/exit.o \
process/getpid.o \
string/strdup.o \
string/strnlen.o
first: libc.a
libc.a: $(MOD)
$(AR) r $@ $(MOD)
c.dll: dllcrt.o $(MOD)
$(LD) $(LDFLAGS) $^ -o $@ -L. -lntdll -lgcc
clean:
rm -f dllcrt.o $(MOD) libc.a c.dll