⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 minux的源代码,一个非常小的操作系统
💻
字号:
# Makefile for lib/i86/fphook.

# The ACK ANSI C compiler has an nice trick to reduce the size of programs
# that do not use floating point.  If a program uses floating point then the
# compiler generates an external reference to the label '_fp_hook'.  This makes
# the loader bring in the floating point printing and conversion routines
# '_f_print' and 'strtod' from the library libd.a.  Otherwise two dummy
# routines are found in libc.a.  (The printf and scanf need floating point
# for the %f formats, whether you use them or not.)

CFLAGS	= -O -D_MINIX -D_POSIX_SOURCE
CC1	= $(CC) $(CFLAGS) -c

LIBD	= ../libd.a
LIBC	= ../libc.a

all:	$(LIBD) $(LIBC)

$(LIBD):	fphook.c
	$(CC1) fphook.c
	aal cr $@ fphook.o
	rm fphook.o

$(LIBC):	$(LIBC)(fltpr.o) $(LIBC)(strtod.o)
	aal cr $@ *.o
	rm *.o

$(LIBC)(fltpr.o):
	$(CC1) fltpr.c

$(LIBC)(strtod.o):
	$(CC1) strtod.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -