直流电机转速测控

源代码在线查看: makefile

软件大小: 133 K
上传用户: xinlanwj1226
关键词: 直流电机 转速测控
下载地址: 免注册下载 普通下载 VIP

相关代码

				#####################################################################
				#																	 
				#	Created by u'nSP IDE		16:22:50	06/03/07
				#
				#####################################################################
				
				
				
				
				APPDIR	= D:\凌阳单~1\安装
				
				OUTDIR	= .\Debug
				
				CC	= $(APPDIR)\gcc
				
				AS	= $(APPDIR)\xasm16
				
				LD	= $(APPDIR)\xlink16
				
				AR	= $(APPDIR)\xLib16
				
				RESC	= $(APPDIR)\resc
				
				RM	= $(APPDIR)\rm -f
				
				INCLUDES	= -I"E:/2001/DC_SpeedCtrl"
				
				BODY	= -body SPCE060A_061A -bfile "D:\凌阳单片机\安装\Body\SPCE060A_061A.cpt"
				
				BINFILE	= "$(OUTDIR)\DC_SpeedCtrl.S37"
				
				ARYFILE	= "$(OUTDIR)\DC_SpeedCtrl.ary"
				
				SBMFILE	= "$(OUTDIR)\DC_SpeedCtrl.sbm"
				
				OPT	= -S -gstabs -Wall -mglobal-var-iram
				
				ASFLAGS	= -t2 -d
				
				CASFLAGS	= -t2 
				
				CFLAGS	= $(OPT) -B$(APPDIR)\ $(INCLUDES) 
				
				BINTYPE	= -as
				
				LDFLAGS	= 
				
				EXTRAFLAGS	= 
				
				
				OBJFILES	= \
					"$(OUTDIR)\0_16k.res" \
					"$(OUTDIR)\1_16k.res" \
					"$(OUTDIR)\2_16k.res" \
					"$(OUTDIR)\3_16k.res" \
					"$(OUTDIR)\4_16k.res" \
					"$(OUTDIR)\5_16k.res" \
					"$(OUTDIR)\6_16k.res" \
					"$(OUTDIR)\7_16k.res" \
					"$(OUTDIR)\8_16k.res" \
					"$(OUTDIR)\9_16k.res" \
					"$(OUTDIR)\10_16k.res" \
					"$(OUTDIR)\bai_16k.res" \
					"$(OUTDIR)\DQSDSMM_16k.res" \
					"$(OUTDIR)\qian_16k.res" \
					"$(OUTDIR)\ZHUAN_16k.res" \
					"$(OUTDIR)\Resource.obj" \
					"$(OUTDIR)\Key.obj" \
					"$(OUTDIR)\main.obj" \
					"$(OUTDIR)\DCMotor.obj" \
					"$(OUTDIR)\ISR.obj" \
					"$(OUTDIR)\hardware.obj" \
					"$(OUTDIR)\DataOSforLCD.obj" \
					"$(OUTDIR)\SPLC501Driver_IO.obj" \
					"$(OUTDIR)\SPLC501User.obj" \
					"$(OUTDIR)\Mychar.obj" 
				
				"$(OUTDIR)\0_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\0.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\0.16k" "$(OUTDIR)\0_16k.res" RES_0_16K 
				
				"$(OUTDIR)\1_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\1.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\1.16k" "$(OUTDIR)\1_16k.res" RES_1_16K 
				
				"$(OUTDIR)\2_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\2.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\2.16k" "$(OUTDIR)\2_16k.res" RES_2_16K 
				
				"$(OUTDIR)\3_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\3.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\3.16k" "$(OUTDIR)\3_16k.res" RES_3_16K 
				
				"$(OUTDIR)\4_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\4.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\4.16k" "$(OUTDIR)\4_16k.res" RES_4_16K 
				
				"$(OUTDIR)\5_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\5.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\5.16k" "$(OUTDIR)\5_16k.res" RES_5_16K 
				
				"$(OUTDIR)\6_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\6.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\6.16k" "$(OUTDIR)\6_16k.res" RES_6_16K 
				
				"$(OUTDIR)\7_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\7.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\7.16k" "$(OUTDIR)\7_16k.res" RES_7_16K 
				
				"$(OUTDIR)\8_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\8.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\8.16k" "$(OUTDIR)\8_16k.res" RES_8_16K 
				
				"$(OUTDIR)\9_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\9.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\9.16k" "$(OUTDIR)\9_16k.res" RES_9_16K 
				
				"$(OUTDIR)\10_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\10.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\10.16k" "$(OUTDIR)\10_16k.res" RES_10_16K 
				
				"$(OUTDIR)\bai_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\bai.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\bai.16k" "$(OUTDIR)\bai_16k.res" RES_BAI_16K 
				
				"$(OUTDIR)\DQSDSMM_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\DQSDSMM.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\DQSDSMM.16k" "$(OUTDIR)\DQSDSMM_16k.res" RES_DQSDSMM_16K 
				
				"$(OUTDIR)\qian_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\qian.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\qian.16k" "$(OUTDIR)\qian_16k.res" RES_QIAN_16K 
				
				"$(OUTDIR)\ZHUAN_16k.res": "E:\2001\DC_SpeedCtrl\2000(16)\ZHUAN.16k"
					$(RESC) "E:\2001\DC_SpeedCtrl\2000(16)\ZHUAN.16k" "$(OUTDIR)\ZHUAN_16k.res" RES_ZHUAN_16K 
				
				"$(OUTDIR)\Resource.obj": "E:\2001\DC_SpeedCtrl\Resource.asm" 
					$(AS) $(ASFLAGS) $(INCLUDES) -l "$(OUTDIR)\Resource.lst" -o "$(OUTDIR)\Resource.obj" "E:\2001\DC_SpeedCtrl\Resource.asm" 
				
				"$(OUTDIR)\Key.obj": "E:\2001\DC_SpeedCtrl\Key.asm" 
					$(AS) $(ASFLAGS) $(INCLUDES) -l "$(OUTDIR)\Key.lst" -o "$(OUTDIR)\Key.obj" "E:\2001\DC_SpeedCtrl\Key.asm" 
				
				"$(OUTDIR)\main.asm": "E:\2001\DC_SpeedCtrl\main.c" 
					$(CC) $(CFLAGS) -o "$(OUTDIR)/main.asm" "E:/2001/DC_SpeedCtrl/main.c" 
				
				"$(OUTDIR)\main.obj": "$(OUTDIR)\main.asm"
					$(AS) $(CASFLAGS) $(INCLUDES) -l "$(OUTDIR)\main.lst" -o "$(OUTDIR)\main.obj" "$(OUTDIR)\main.asm" 
				
				"$(OUTDIR)\DCMotor.obj": "E:\2001\DC_SpeedCtrl\DCMotor.asm" 
					$(AS) $(ASFLAGS) $(INCLUDES) -l "$(OUTDIR)\DCMotor.lst" -o "$(OUTDIR)\DCMotor.obj" "E:\2001\DC_SpeedCtrl\DCMotor.asm" 
				
				"$(OUTDIR)\ISR.obj": "E:\2001\DC_SpeedCtrl\ISR.asm" 
					$(AS) $(ASFLAGS) $(INCLUDES) -l "$(OUTDIR)\ISR.lst" -o "$(OUTDIR)\ISR.obj" "E:\2001\DC_SpeedCtrl\ISR.asm" 
				
				"$(OUTDIR)\hardware.obj": "E:\2001\DC_SpeedCtrl\hardware.asm" 
					$(AS) $(ASFLAGS) $(INCLUDES) -l "$(OUTDIR)\hardware.lst" -o "$(OUTDIR)\hardware.obj" "E:\2001\DC_SpeedCtrl\hardware.asm" 
				
				"$(OUTDIR)\DataOSforLCD.obj": "D:\凌阳单片机\实验设备与配套模组\模组资料\SPLC501液晶模组\DriverV20\DataOSforLCD.asm" 
					$(AS) $(ASFLAGS) $(INCLUDES) -l "$(OUTDIR)\DataOSforLCD.lst" -o "$(OUTDIR)\DataOSforLCD.obj" "D:\凌阳单片机\实验设备与配套模组\模组资料\SPLC501液晶模组\DriverV20\DataOSforLCD.asm" 
				
				"$(OUTDIR)\SPLC501Driver_IO.obj": "D:\凌阳单片机\实验设备与配套模组\模组资料\SPLC501液晶模组\DriverV20\SPLC501Driver_IO.asm" "D:\凌阳单片机\实验设备与配套模组\模组资料\SPLC501液晶模组\DriverV20\SPLC501Driver_IO.inc" 
					$(AS) $(ASFLAGS) $(INCLUDES) -l "$(OUTDIR)\SPLC501Driver_IO.lst" -o "$(OUTDIR)\SPLC501Driver_IO.obj" "D:\凌阳单片机\实验设备与配套模组\模组资料\SPLC501液晶模组\DriverV20\SPLC501Driver_IO.asm" 
				
				"$(OUTDIR)\SPLC501User.asm": "D:\凌阳单片机\实验设备与配套模组\模组资料\SPLC501液晶模组\DriverV20\SPLC501User.c" "D:\凌阳单片机\实验设备与配套模组\模组资料\SPLC501液晶模组\DriverV20\SPLC501User.h" 
					$(CC) $(CFLAGS) -o "$(OUTDIR)/SPLC501User.asm" "D:/凌阳单片机/实验设备与配套模组/模组资料/SPLC501液晶模组/DriverV20/SPLC501User.c" 
				
				"$(OUTDIR)\SPLC501User.obj": "$(OUTDIR)\SPLC501User.asm"
					$(AS) $(CASFLAGS) $(INCLUDES) -l "$(OUTDIR)\SPLC501User.lst" -o "$(OUTDIR)\SPLC501User.obj" "$(OUTDIR)\SPLC501User.asm" 
				
				"$(OUTDIR)\Mychar.asm": "D:\xmm\DC_SpeedCtrl\Mychar.c" 
					$(CC) $(CFLAGS) -o "$(OUTDIR)/Mychar.asm" "D:/xmm/DC_SpeedCtrl/Mychar.c" 
				
				"$(OUTDIR)\Mychar.obj": "$(OUTDIR)\Mychar.asm"
					$(AS) $(CASFLAGS) $(INCLUDES) -l "$(OUTDIR)\Mychar.lst" -o "$(OUTDIR)\Mychar.obj" "$(OUTDIR)\Mychar.asm" 
				
				
				.SUFFIXES : .c .asm .obj .s37 .tsk .res
				
				all :	 "$(OUTDIR)" $(BINFILE)
				
				"$(OUTDIR)" :
					if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
				
				$(BINFILE) : $(OBJFILES) 
					$(LD) $(BINTYPE) $(ARYFILE) $(BINFILE) $(LDFLAGS) $(BODY) $(EXTRAFLAGS)
				
				compile :	 $(OBJFILES)
				
				clean :
					$(RM) "$(OUTDIR)\0_16k.res" 
					$(RM) "$(OUTDIR)\1_16k.res" 
					$(RM) "$(OUTDIR)\2_16k.res" 
					$(RM) "$(OUTDIR)\3_16k.res" 
					$(RM) "$(OUTDIR)\4_16k.res" 
					$(RM) "$(OUTDIR)\5_16k.res" 
					$(RM) "$(OUTDIR)\6_16k.res" 
					$(RM) "$(OUTDIR)\7_16k.res" 
					$(RM) "$(OUTDIR)\8_16k.res" 
					$(RM) "$(OUTDIR)\9_16k.res" 
					$(RM) "$(OUTDIR)\10_16k.res" 
					$(RM) "$(OUTDIR)\bai_16k.res" 
					$(RM) "$(OUTDIR)\DQSDSMM_16k.res" 
					$(RM) "$(OUTDIR)\qian_16k.res" 
					$(RM) "$(OUTDIR)\ZHUAN_16k.res" 
					$(RM) "$(OUTDIR)\Resource.obj" 
					$(RM) "$(OUTDIR)\Resource.lst" 
					$(RM) "$(OUTDIR)\Key.obj" 
					$(RM) "$(OUTDIR)\Key.lst" 
					$(RM) "$(OUTDIR)\main.obj" 
					$(RM) "$(OUTDIR)\main.lst" 
					$(RM) "$(OUTDIR)\main.asm" 
					$(RM) "$(OUTDIR)\DCMotor.obj" 
					$(RM) "$(OUTDIR)\DCMotor.lst" 
					$(RM) "$(OUTDIR)\ISR.obj" 
					$(RM) "$(OUTDIR)\ISR.lst" 
					$(RM) "$(OUTDIR)\hardware.obj" 
					$(RM) "$(OUTDIR)\hardware.lst" 
					$(RM) "$(OUTDIR)\DataOSforLCD.obj" 
					$(RM) "$(OUTDIR)\DataOSforLCD.lst" 
					$(RM) "$(OUTDIR)\SPLC501Driver_IO.obj" 
					$(RM) "$(OUTDIR)\SPLC501Driver_IO.lst" 
					$(RM) "$(OUTDIR)\SPLC501User.obj" 
					$(RM) "$(OUTDIR)\SPLC501User.lst" 
					$(RM) "$(OUTDIR)\SPLC501User.asm" 
					$(RM) "$(OUTDIR)\Mychar.obj" 
					$(RM) "$(OUTDIR)\Mychar.lst" 
					$(RM) "$(OUTDIR)\Mychar.asm" 
					$(RM) $(BINFILE) $(SBMFILE) 
				
				.c.asm:
					$(CC) $(CFLAGS) $(INCLUDES) -o "$(OUTDIR)/$@" $<
				
				.asm.obj:
					$(AS) $(ASFLAGS) $(INCLUDES) -o "$(OUTDIR)/$@" $<
				
							

相关资源