makefile
来自「c语言在LINUX平台下开发PWM驱动程序.可以实现波形的调整」· 代码 · 共 34 行
TXT
34 行
# This is my first makefile --- PIT module makefileINCLUDEDIR1 = /root/8347pc/linuxppc-2.4/include/linux INCLUDEDIR2 = /root/8347pc/linuxppc-2.4/arch/ppcINCLUDEDIR3 = /root/8347pc/linuxppc-2.4/includeINCLUDEDIR4= /root/8347pc/linuxppc-2.4/include/asmLIBS = stdcxLIB2 = /opt/eldk/ppc_6xx/usr/lib/gcc-lib/ppc-linux/3.3.3GCC = /opt/mtwk/usr/local/powerpc-linux-gnuspe/gcc-3.4.3-e500-glibc-2.3.3-spe/powerpc-linux-gnuspe/bin/gcc#GCC= /opt/eldk/usr/bin/ppc_6xx-gccLD = /opt/mtwk/usr/local/powerpc-linux-gnuspe/gcc-3.4.3-e500-glibc-2.3.3-spe/powerpc-linux-gnuspe/bin/ldCFLAGS = -D__KERNEL__ -DMODULE -DCONFIG_83xx -I$(INCLUDEDIR2) -I$(INCLUDEDIR3) -O -Wall -hifdef CONFIG_SMPCFLAGS += -D__SMP__ -DSMPendifall: driver_pwm.o testpwm.elf movefiledriver_pwm.o: driver_pwm.c $(GCC) $(CFLAGS) -c $^ -o $@testpwm.elf: testpwm.c $(GCC) -I$(INCLUDEDIR3) -o $@ -g $^ movefile: cp driver_pwm.o ../../lib/module cp testpwm.elf ../../usr/appclean: rm -f *.o *.core *.elf
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?