makefile

来自「这是又一个C语言解释器, 我们可以方便地扩展其功能, 并将其用于我们的工作中」· 代码 · 共 74 行

TXT
74
字号
######################################## define local information first        TOP = ../../..INCLUDES =  -I$(TOP)/include  -I$(TOP)/src  -I. -I-LOCAL_LIB =  $(TOP)/lib/libstdClib.a	   ########################################include $(TOP)/make.proj########################################SRCS = $(fopenSRCS) $(ctypeSRCS) $(printfSRCS) $(scanfSRCS)install::#############fopenSRCS = testfopen.cfopenOBJS = $(fopenSRCS:.c=.o)testfopen: $(fopenOBJS)	$(CC) -o $@ $(fopenOBJS) $(LOCAL_LIB) -lmall::testfopenclean::	$(RM) testfopen $(fopenOBJS)clobber::clean###########################ctypeSRCS = testctype.cctypeOBJS = $(ctypeSRCS:.c=.o)testctype: $(ctypeOBJS)	$(CC) -o $@ $(ctypeOBJS) $(LOCAL_LIB) -lmall::testctypeclean::	$(RM) testctype $(ctypeOBJS)clobber::clean#########################printfSRCS = testprintf.cprintfOBJS = $(printfSRCS:.c=.o)testprintf: $(printfOBJS)	$(CC) -o $@ $(printfOBJS) $(LOCAL_LIB) -lmall::testprintfclean::	$(RM) testprintf $(printfOBJS)clobber::clean#########################scanfSRCS = testscanf.cscanfOBJS = $(scanfSRCS:.c=.o)testscanf: $(scanfOBJS)	$(CC) -o $@ $(scanfOBJS) $(LOCAL_LIB) -lmall::testscanfclean::	$(RM) testscanf $(scanfOBJS)clobber::clean########################################################################include $(CONFIG_DIR)/make.rules

⌨️ 快捷键说明

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