📄 makefile
字号:
# Makefile for bc# A makefile for bc. This is part of the bc/sbc distribution.### Make sure these have the correct directories for your machine.## LIBDIR and BINDIR are where bc and libmath.b will be put.#PREFIX = /usrLIBDIR = $(PREFIX)/libBINDIR = $(PREFIX)/bin## Programs definitions for use by make.#SHELL = /bin/shYACC = yacc#YACC = bison -yLEX = flex -I8#LEX = lexCC = ccCFLAGS = -m -D_POSIX_SOURCELDFLAGS = -i##OFILES = scan.o util.o main.o number.o storage.o load.o execute.o #SUBDIRS = Examples Test#all: bcbc: $& config.h bc.o $(OFILES) global.o $(CC) -o bc $(LDFLAGS) bc.o $(OFILES) global.osbc: sbc.o $(OFILES) global.o $(CC) -o sbc $(LDFLAGS) sbc.o $(OFILES) global.omath.h: libmath.b $(MAKE) -$(MAKEFLAGS) fbc ./fbc -c libmath.b </dev/null >math.h ./fix_math.h rm -f ./fbcfbc: $(OFILES) bc.o echo \"\" > math.h $(CC) -c $(CFLAGS) global.c $(CC) -o fbc $(LDFLAGS) bc.o $(OFILES) global.oinstall: $(BINDIR)/bc $(LIBDIR)/libmath.b$(BINDIR)/bc: bc install -cs -o bin $? $@$(LIBDIR)/libmath.b: libmath.b install -c -o bin $? $@clean: rm -f *.o *.bak core math.h bc sbcscan.c: scan.l $(LEX) scan.l mv lex.yy.c scan.cy.tab.h bc.c: bc.y @echo "expect 1 shift/reduce conflict" $(YACC) -d bc.y mv y.tab.c bc.csbc.c: sbc.y $(YACC) -d sbc.y mv y.tab.c sbc.cglobal.o: bcdefs.h global.h math.hbc.o: bcdefs.h global.h execute.o: bcdefs.h global.hload.o: bcdefs.h global.h main.o: bcdefs.h global.h version.hnumber.o: bcdefs.hsbc.o: bcdefs.h global.h scan.o: y.tab.h bcdefs.h global.hstorage.o: bcdefs.h global.hutil.o: bcdefs.h global.h version.hbcdefs.h: number.h const.h config.h touch bcdefs.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -