makefile
来自「SimpleGraphicOperatingSystem 32位图形化操作系统 」· 代码 · 共 22 行
TXT
22 行
AR = ar
AS = nasm -f coff
CC = gcc
INCLUDE = -I"../../../Include" -I"../../../Include/Kernel"
CFLAGS = -finline-functions -nostdinc $(INCLUDE) -c -ffreestanding -g
LDFALGS = -L../../../Output/Applications/dll -L../../../Output/Applications/exe --add-stdcall-alias -shared -losdll -lKernel32 --image-base 0x77BE0000
OBJS = abort.o ctype.o exit.o malloc.o math.o printf.o string.o vsprintf.o file.o crt.o eviron.o \
signal.o error.o float.o adjustfd.o except.o exec.o setjmp.o
OUTPUT = ../../../Output/Applications/dll/Msvcrt.dll
.c.o:
$(CC) $(CFLAGS) -o $@ $<
$(OUTPUT): $(OBJS)
$(LD) $(LDFALGS) -o $@ $(OBJS)
.PHONY:
clean:
rm -f *.o
rm -f *.bak
rm -f $(OUTPUT)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?