makefile

来自「Lexmark 2070 Color Jetprinter 打印机驱动例子」· 代码 · 共 46 行

TXT
46
字号
## makefile - simple makefile for the Lexmark 2070 color driver## Copyright 1999, Christian Kornblum### Important compiler and linker optionsCC=gccLD=gccCFLAGS=LDFLAGS=# Required librariesLDLIBS=# Source files and modulesSRC=c2070.cSHAREDHEADER=MOD=$(SRC:.c=.o)# Standard production rule.c.o: 	$(CC) -c $< $(CFLAGS)# make allall: c2070# linking the modulesc2070: $(MOD)	$(LD) -o $@ $(MOD) $(LDLIBS) $(LDFLAGS)# dependencies, here a shared header$(SRC): $(SHAREDHEADER) # clear up the mess to start overclean: 	rm *.o c2070#install the driverinstall: all	cp c2070 /usr/bin	chmod a+x /usr/bin/c2070

⌨️ 快捷键说明

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