-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlina.mak
76 lines (61 loc) · 1.39 KB
/
lina.mak
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# $Id: lina.mak,v 1.1 2018/01/18 19:18:55 albert Exp $
# Copyright (2017): Albert van der Horst {by GNU Public License 2}
# This generates all buildables from a source distribution of lina.
# This makefile contains the targets that can be build based on
# the assembler file.
# Sources these files may be used to generate other files
SRC = \
lina.fas \
forth.lab \
# That's all folks!
# Documentation
DOC = \
COPYING \
READMElina.txt \
lina.1 \
ci86.lina.texinfo \
ci86.lina.html \
ci86.lina.pdf \
ci86.lina.info \
ci86.lina.html \
ci86.lina.ps \
# That's all folks!
# Generated files
GEN = \
lina \
lina.html \
lina.info \
lina.pdf \
lina.ps \
# That's all folks!
# All files to be in a binary release
RELEASELINA = \
$(SRC) \
$(DOC) \
$(GEN) \
$(EXAMPLESRC) \
# That's all folks!
# gnu type destination
DESTDIR=/
# Define fasm as *the* assembler generating bin files.
%:%.fas ; fasm $< -m256000
build: $(GEN)
lina : ci86.lina.fas
fasm $< -m256000
#./ci86.lina -g 1000 lina
mv ci86.lina lina
clean :
rm -f $(GEN)
install : lina forth.lab
mkdir -p $(DESTDIR)/usr/bin
cp lina $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/lib
cp forth.lab $(DESTDIR)/usr/lib
lina.html : ci86.lina.html
cp -l $< $@
lina.info : ci86.lina.info
cp -l $< $@
lina.pdf : ci86.lina.pdf
cp -l $< $@
lina.ps : ci86.lina.ps
cp -l $< $@