makefile

来自「Self-made library for GPIOs on BCM6348」· 代码 · 共 15 行

TXT
15
字号
all: shared staticshared:	$(CC) -c -fPIC gpio_bcm963xx.c -o gpio_bcm963xx_shared.o	$(CC) -shared -Wl,-soname,libgpio_bcm963xx.so.0 -o libgpio_bcm963xx.so.0.0.1 gpio_bcm963xx_shared.o	ln -s libgpio_bcm963xx.so.0.0.1 libgpio_bcm963xx.so.0	ln -s libgpio_bcm963xx.so.0.0.1 libgpio_bcm963xx.sostatic:	$(CC) -c gpio_bcm963xx.c -o gpio_bcm963xx_static.o	$(AR) rcs libgpio_bcm963xx.a gpio_bcm963xx_static.oclean:	rm -rf *.o *.so* *.a

⌨️ 快捷键说明

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