blob: a86dac84c079266432d4f680d5b3b098ce27e8e1 [file] [log] [blame] [raw]
AR = i586-mingw32msvc-ar
CC = i586-mingw32msvc-gcc
LD = i586-mingw32msvc-ld
CFLAGS += -Iinclude -I../ntdll/include -O1
LDFLAGS += --shared -e _DllMainCRTStartup
MOD = \
abort.o \
assert.o \
char-io.o \
exit.o \
malloc.o \
sleep.o \
string.o
first: libc.a
libc.a: $(MOD)
$(AR) r $@ $(MOD)
c.dll: dllcrt.o $(MOD)
$(LD) $(LDFLAGS) $^ -o $@ -L. -lntdll -lgcc
clean:
rm -f $(MOD) libc.a c.dll