makefile
来自「freedos32的源代码」· 代码 · 共 43 行
TXT
43 行
ifndef FDOS FDOS = ../..endififndef OSLIBOSLIB = ../../../oslibendififndef LIBFD32LIBFD32 = ../../../apps/libfd32endififndef NEWLIBCNEWLIBC = ../../../apps/newlibendifinclude $(FDOS)/config.mkINCL = -I$(NEWLIBC)/include -I$(LIBFD32)/include -I$(FDOS)/include -I.LIB_PATH = $(OSLIB)/lib/LIB_DIR = $(OSLIB)\libWIN32 = -D__WIN32__ -DWIN32_LEAN_AND_MEAN -D__WINB_DEBUG__C_OPT = -Wall -fexpensive-optimizations -O3 -finline-functions -nostdinc -mno-stack-arg-probe -ffreestanding $(WIN32) $(INCL)ASM_OPT += $(INCL)LINK_OPT = -Bstatic -L$(NEWLIBC)/libOBJS = kernel32.o user32.o advapi32.o oleaut32.o msvcrt.o init.oall: winb.oclean : $(RM) *.owinb.o: $(OBJS) $(LD) $(LINK_OPT) $(OBJS) -lc -lfd32 -r -s -o winb.o# Common rules%.o : %.c $(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -c $<%.s : %.c $(REDIR) $(CC) $(C_OPT) $(C_OUTPUT) -S $<%.o : %.s $(CC) $(ASM_OPT) -c $<
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?