1,7 → 1,7 |
|
CC = gcc |
|
CFLAGS = -c -O2 -fomit-frame-pointer |
CFLAGS = -c -O2 -fomit-frame-pointer -DBUILD_DLL |
LDFLAGS = -nostdlib -shared -s -T libcdll.lds --out-implib libcimp.a --image-base 0 |
|
LIBC_TOPDIR = . |
21,11 → 21,12 |
crt/exit.S \ |
pe/crtloader.c |
|
DLL_SRCS:= \ |
crt/crtbegin.c \ |
LIBDLL_SRCS:= \ |
crt/dllstart.c \ |
crt/chkstk.S \ |
crt/exit.S \ |
crt/pseudo-reloc.c \ |
crt/chkstk.S \ |
crt/exit.S |
crt/setjmp.S |
|
|
LIBCDLL_SRCS:= \ |
39,7 → 40,6 |
crt/start.S \ |
crt/chkstk.S \ |
crt/crt3.c \ |
crt/crtbegin.o \ |
pe/crtloader.c |
|
CORE_SRCS:= \ |
306,7 → 306,7 |
|
LIBCRT_OBJS = $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBCRT_SRCS))) |
|
DLL_OBJS = $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(DLL_SRCS))) |
LIBDLL_OBJS = $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBDLL_SRCS))) |
|
LIBCDLL_OBJS = $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBCDLL_SRCS))) |
|
374,13 → 374,10 |
libcrt.a: $(LIBCRT_OBJS) Makefile |
ar rc libcrt.a $(LIBCRT_OBJS) |
|
libdll.a: $(DLL_OBJS) Makefile |
ar rc libdll.a $(DLL_OBJS) |
libdll.a: $(LIBDLL_OBJS) Makefile |
ar rc libdll.a $(LIBDLL_OBJS) |
|
libc.obj: $(NAME).dll |
fasm pe/libc.asm ./libc.obj |
|
|
static: $(NAME).a |
|
$(NAME).a: $(LIB_OBJS) $(SRC_DEP) Makefile |