📄 mymakefile
字号:
# Compilation:# ./Make depend# ./Make#/***************************************************************************# MyMakefile - Makefile for use without autoconf# -------------------# begin : Mon Apr 17 2000# copyright : (C) 2000 by Jan Nikit靚ko# email : xnikit00@stud.fee.vutbr.cz# ***************************************************************************/##/***************************************************************************# * *# * This program is free software; you can redistribute it and/or modify *# * it under the terms of the GNU General Public License as published by *# * the Free Software Foundation; either version 2 of the License, or *# * (at your option) any later version. *# * *# ***************************************************************************/CXXFLAGS = -Wall -pedantic -ansi -O0 -g3 #-static -O3 -sYFLAGS = -difdef TERMCXX = c++ $(CXXFLAGS)#CXX = gcc $(CFLAGS)LINK = c++ $(CXXFLAGS) -o $@elseCXX = gcc $(CXXFLAGS)LINK = gxx $(CXXFLAGS) -o $@endifYACC = yaccLEX = flexSED = sedRM = rm -fMV = mvTDASM = tdasm.SUFFIXES:.SUFFIXES: .cc .o.cc.o: $(CXX) -c $<tdasm_LDADD = printyylex.otdasm_OBJECTS = instrtogenerate.o debuglog.o opervalueoption.o \opervaluepattern.o opernumeric.o operandbase.o codeatom.o output.o \targetcode.o compiler.o operoption.o execpattern.o operand.o bitfield.o \instruction.o executable.o expression.o number.o tablelex.o tablecomp.o \tdasm.o table.o source.o pattern.o error.o enum.o context.o allowed.oall: $(TDASM)$(TDASM): $(tdasm_OBJECTS) $(tdasm_LDADD) $(LINK) $(tdasm_OBJECTS) $(tdasm_LDADD)tablecomp.o: tablecomp.cc $(CXX) -Wno-parentheses -Wno-unu$(SED) -c $<tablelex.o: tablelex.cc $(CXX) -Wno-unu$(SED) -c $<tablecomp.cc tablecomp.h: tablecomp.yy $(YACC) $(YFLAGS) $< && \ $(SED) -e 's/\"y\.tab\.c\"/\"tablecomp\.cc\"/g' <y.tab.c >tablecomp.cc && \ $(MV) y.tab.h tablecomp.h && \ $(RM) y.tab.cprintyylex.cc: tablecomp.h printyylex.sed $(SED) -f printyylex.sed <tablecomp.h >printyylex.cctablelex.cc: tablelex.ll tablecomp.h $(LEX) $(LEXFLAGS) -t $< >$@clean: $(RM) .depend $(RM) $(TDASM) *.o tablecomp.cc tablecomp.h tablelex.cc printyylex.cc $(TDASM).exe *~ $(RM) gdb-transcript .kdbgrc.tdasm *.out *.log *.lst $(RM) ../tables/*.out ../tables/*.log ../tables/*.lst ../tables/$(TDASM) ../tables/$(TDASM).exe## dependencies#depend dep: tablecomp.cc tablelex.cc printyylex.cc $(CXX) -c -MM *.cc > .dependifeq (.depend,$(wildcard .depend))include .dependendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -