📄 makefile
字号:
# Makefile for cslib/xwindows directory# Last modified on Sat Oct 1 12:56:29 1994 by eroberts#****************************************************************OBJECTS = \ genlib.o \ exception.o \ strlib.o \ simpio.o \ random.o \ graphics.o \ xmanager.o \ xdisplay.o \ xcompat.o \ glibrary.oCSLIB = cslib.aCC = gccCFLAGS = -g -I. $(CCFLAGS)CONFIG = `csh config.csh -DHasPoll $(CC) -E -DHasPoll xcompat.c`# ***************************************************************# Entry to bring the package up to date# The "make all" entry should be the first real entryall: $(CSLIB) gccx# ***************************************************************# Standard entries to remove files from the directories# tidy -- eliminate unwanted files# clean -- delete derived files in preparation for rebuild# scratch -- synonym for cleantidy: rm -f ,* .,* *~ core a.out *.errclean scratch: tidy rm -f *.o *.a gccx# ***************************************************************# C compilationsgenlib.o: genlib.c genlib.h exception.h gcalloc.h $(CC) $(CFLAGS) -c genlib.cexception.o: exception.c exception.h genlib.h $(CC) $(CFLAGS) -c exception.cstrlib.o: strlib.c strlib.h genlib.h $(CC) $(CFLAGS) -c strlib.csimpio.o: simpio.c simpio.h strlib.h genlib.h $(CC) $(CFLAGS) -c simpio.crandom.o: random.c random.h genlib.h $(CC) $(CFLAGS) -c random.cgraphics.o: graphics.c graphics.h extgraph.h xmanager.h xcompat.h \ glibrary.h genlib.h gcalloc.h simpio.h strlib.h Makefile $(CC) $(CONFIG) $(CFLAGS) -c graphics.cxmanager.o: xmanager.c xmanager.h xdisplay.h xcompat.h glibrary.h \ genlib.h exception.h simpio.h Makefile $(CC) $(CONFIG) $(CFLAGS) -c xmanager.cxdisplay.o: xdisplay.c xdisplay.h xmanager.h glibrary.h genlib.h strlib.h \ Makefile $(CC) $(CONFIG) $(CFLAGS) -c xdisplay.cxcompat.o: xcompat.c xcompat.h Makefile $(CC) $(CONFIG) $(CFLAGS) -c xcompat.cglibrary.o: glibrary.c glibrary.h genlib.h $(CC) $(CFLAGS) -c glibrary.c# ***************************************************************# Entry to reconstruct the library archive$(CSLIB): $(OBJECTS) -rm -f $(CSLIB) ar cr $(CSLIB) $(OBJECTS) ranlib $(CSLIB)# ***************************************************************# Entry to reconstruct the gccx scriptgccx: Makefile @echo '#! /bin/csh -f' > gccx @echo 'set INCLUDE =' `pwd` >> gccx @echo 'set CSLIB = $$INCLUDE/cslib.a' >> gccx @echo 'set LIBRARIES = ($$CSLIB -lX11 -lm)' >> gccx @echo 'foreach x ($$*)' >> gccx @echo ' if ("x$$x" == "x-c") then' >> gccx @echo ' set LIBRARIES = ""' >> gccx @echo ' break' >> gccx @echo ' endif' >> gccx @echo 'end' >> gccx @echo 'gcc -g -I$$INCLUDE $$* $$LIBRARIES' >> gccx @chmod a+x gccx @echo '[gccx script created]'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -