forked from mdennehy/PICRat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.bak
executable file
·49 lines (34 loc) · 1021 Bytes
/
makefile.bak
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
45
46
47
48
49
#######################################################################
# PICRat Makefile
# Mark Dennehy, BA, BAI
# 12/97
#
#######################################################################
PICRAT = ..
VPATH = src;lib
AS = /Progra~1/MPLAB/mpasm
LINK = /Progra~1/MPLAB/mplink
LIB = /Progra~1/MPLAB/mplib
FILES = USART \
Messages \
SelfTest \
AnalogTree \
DigitalTree \
CounterTree \
PWMTree \
MotorControlTree \
TimerTree \
Main \
.SUFFIXES :
.SUFFIXES : .O
#######################################################################
%.O : %.asm
$(AS) /olib\\$(@F) /q $(addprefix src\\,$(<F))
all: clean hex
hex: library
cd bin;$(LINK) /m picrat.map /o picrat.hex /n 0 picrat.lkr ..\\lib\\picrat.lib ..\\lib\\main.o
library: objects
cd lib ; $(LIB) /c picrat.lib $(addsuffix .O,$(FILES))
objects: $(addsuffix .O,$(FILES))
clean :
rm -f lib/*.O lib/*.lib src/*.ERR src/*.LST bin/*.map bin/*.hex bin/*.COD bin/*.ERR bin/*.LST