-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_make.txt
55 lines (42 loc) · 1.21 KB
/
app_make.txt
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
50
51
52
53
54
55
include ../configure.txt
default :
$(MAKE) $(APP).hrb
$(APP).bim : $(APP).obj $(APILIBPATH)nnlib.lib ../stdlib/printf.obj Makefile ../app_make.txt
$(OBJ2BIM) @$(RULEFILE) out:$(APP).bim map:$(APP).map stack:$(STACK) \
$(APP).obj $(APILIBPATH)nnlib.lib ../stdlib/printf.obj
nnos.img : ../nnos/ipl.bin ../nnos/nnos.sys $(APP).hrb \
Makefile ../app_make.txt
$(EDIMG) imgin:$(TOOLPATH)fdimg0at.tek \
wbinimg src:../nnos/ipl.bin len:512 from:0 to:0 \
copy from:../nnos/nnos.sys to:@: \
copy from:$(APP).hrb to:@: \
imgout:$@
%.gas : %.c ../nnos.h Makefile ../app_make.txt
$(CC1) -o $*.gas $*.c
%.nas : %.gas Makefile ../app_make.txt
$(GAS2NASK) $*.gas $*.nas
%.obj : %.nas Makefile ../app_make.txt
$(NASK) $*.nas $*.obj $*.lst
%.org : %.bim Makefile ../app_make.txt
$(BIM2HRB) $*.bim $*.org $(MALLOC)
%.hrb : %.org Makefile ../app_make.txt
$(BIM2BIN) -osacmp in:$*.org out:$*.hrb
run :
$(MAKE) nnos.img
$(COPY) $(TOOLPATH)qemu/fdimage0.bin
$(MAKE) -C $(TOOLPATH)qemu
full :
$(MAKE) -C nnos a_nask.obj
$(MAKE) $(APP).hrb
run_full :
$(MAKE) -C nnos a_nask.obj
$(MAKE) -C ../nnos
$(MAKE) run
clean :
-$(DEL) *.lst
-$(DEL) *.obj
-$(DEL) *.bim
-$(DEL) *.map
src_only :
$(MAKE) clean
-$(DEL) $(APP).hrb