📄 makefile.solaris
字号:
# environment dependent variables; change these to their appropriate# directory paths for the X11 and tcl/tk library and header paths# Solaris pathsTCL_LIB = /usr/local/libTCL_INC = /usr/local/includeX_LIB = /opt/x11r5/libX_INC = /usr/local/X11R5/include# Linux paths# TCL_LIB = /usr/lib# TCL_INC = /usr/include# X_LIB = /usr/X11R6/lib# X_INC = /usr/X11R6/include# change this to point to the existing directory where you would like# the package installed; no change is necessary for testingDEST = .# Uncomment this if you are using Tk4.0.# CPPFLAGS = -DTK40# Solaris may need the -lsocket and -lnsl flags added. Tk4.1 and newer# also require the -ldl flag.LLIBS = ${TCL_LIB}/libtcl7.6.a ${TCL_LIB}/libtk4.2.a -L${X_LIB} -lX11 -lnsl -lsocket -lm -ldl# LLIBS = ${TCL_LIB}/libtcl.so ${TCL_LIB}/libtk.so -L${X_LIB} -lX11 -lm -ldl# LLIBS = ${TCL_LIB}/libtcl.a ${TCL_LIB}/libtk.a -L${X_LIB} -lX11 -lm############################################################################ user should not change anything below this line###########################################################################CC = gccCFLAGS = ${CPPFLAGS} -O -I. -I${TCL_INC} -I${X_INC}TARGET = dlxviewOBJS = asm.o cop0.o getput.o io.o issue.o main.o script.o sim.o stop.o sym.o trap.o# source filesSRC = ${OBJS:.o=.c} # header files# HDR = asm.h cop0.h dlx.h gp.h io.h purdue.h script.h sym.h traps.h HDR = cop0.h dlx.h io.h purdue.h script.h sym.h # TCL script filesSCRIPT = disc.tcl mkDisc.tcl mkBasicPipe.tcl mkConfigure.tcl \ mkEdit.tcl mkGoStep.tcl mkLoad.tcl mkReset.tcl \ mkScoreboard.tcl mkStop.tcl mkTomasulo.tcl mkTrace.tcl# test filesTEST = f.d f.s f305.i f305.s f347.d f347.i f347.s bas sco tomPACKAGE = Makefile Makefile.solaris Makefile.linux README.1st \ help.html images $(HDR) $(SRC) $(TEST) all:# @$(MAKE) $(TARGET) "CFLAGS=$(CFLAGS) -DSCRIPT" @$(MAKE) $(TARGET) "CFLAGS=$(CFLAGS)"$(TARGET): $(OBJS) rm -f $(TARGET) $(CC) ${OBJS} ${LLIBS} -o $(TARGET)dist: -@mkdir dlxview0.9 -@cd dlxview0.9 -@for i in $(PACKAGE) \ ; do \ cp -r $$i dlxview0.9; \ done -@cd .. tar -cvf - dlxview0.9 | gzip > dlxview0.9.tar.gz -@rm -rf dlxview0.9linux_dist: $(TARGET) -@mkdir dlxview0.9 -@cd dlxview0.9 -@for i in $(PACKAGE) $(TARGET) \ ; do \ cp -r $$i dlxview0.9; \ done -@cd .. tar -cvf - dlxview0.9 | gzip > dlxview0.9.linux-elf.tar.gz -@rm -rf dlxview0.9solaris_dist: $(TARGET) -@mkdir dlxview0.9 -@cd dlxview0.9 -@for i in $(PACKAGE) $(TARGET) \ ; do \ cp -r $$i dlxview0.9; \ done -@cd .. tar -cvf - dlxview0.9 | gzip > dlxview0.9.solaris2.5.tar.gz -@rm -rf dlxview0.9hardfile: enscript -fCourier8 -2Gr -phardcopy.src Makefile $(HDR) $(SRC) install: -@chmod 755 $(TARGET) cp $(TARGET) $(DEST) -@chmod 644 $(TEST) -@for i in $(TEST); do \ cp $$i $(DEST); \ doneclean: #for i in $(PACKAGE); do \ # chmod 644 $$i; \ #done -@rm -rf ${OBJS} dlxview core hardcopy.src *.BAKrealclean: -@$(MAKE) clean -@rm $(TARGET)asm.o : asm.c dlx.h sym.hcop0.o : cop0.c dlx.hgetput.o : getput.c dlx.h sym.hio.o : io.c dlx.hissue.o: issue.c dlx.hmain.o : main.c dlx.hscript.o : script.c script.hsim.o : sim.c dlx.h sym.h stop.o : stop.c dlx.h sym.hsym.o : sym.c dlx.h sym.htrap.o : trap.c dlx.h sym.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -