forked from TZlindra/ELEC291Project2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.mk
44 lines (33 loc) · 1006 Bytes
/
main.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHELL=cmd
CC=c51 --model-large # Need Added to Path
COMPORT = $(shell type COMPORT.inc)
OBJS=main.obj JDY40.obj global.obj movement.obj inductance.obj speaker.obj
main.hex: $(OBJS)
$(CC) $(OBJS)
@del *.asm *.lst *.lkr 2> nul
@echo Done!
main.obj: main.c JDY40.h
$(CC) -c main.c
global.obj: global.c global.h
$(CC) -c global.c
JDY40.obj: JDY40.c JDY40.h inductance.h
$(CC) -c JDY40.c
movement.obj: movement.c movement.h
$(CC) -c movement.c
inductance.obj: inductance.c inductance.h
$(CC) -c inductance.c
speaker.obj: speaker.c speaker.h
$(CC) -c speaker.c
clean:
@del $(OBJS) *.asm *.lkr *.lst *.map *.hex *.map 2> nul
LoadFlash:
@taskkill /im putty.exe /F 2>NUL | wait 500
..\EFM8_prog\EFM8_prog.exe -ft230 -r main.hex
cmd /c start putty -serial $(COMPORT) -sercfg 115200,8,n,1,N
putty:
@Taskkill /IM putty.exe /F 2>NUL | wait 500
@cmd /c start putty -serial $(COMPORT) -sercfg 115200,8,n,1,N
Dummy: main.hex main.Map
@echo Nothing to see here!
explorer:
cmd /c start explorer .