blob: 60aa952577fd875d48bb44e8ada6aaa915bf1e13 (
plain)
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
|
CFLAGS=-O
LDFLAGS=-s
LIBDIR=/usr/bin
BINDIR=/usr/bin
OBJS =as.o assemble.o errors.o express.o \
genbin.o genlist.o genobj.o gensym.o \
keywords.o macro.o mops.o pops.o readsrc.o \
scan.o table.o typeconv.o alloc.o
all: as86 as86_encap
as86: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $@
as86_encap: as86_encap.sh
sed -e "s:%%LIBDIR%%:$(LIBDIR):" -e "s:%%BINDIR%%:$(BINDIR):" \
< as86_encap.sh > tmp
@mv -f tmp $@
chmod +x $@
install: all
install -d $(LIBDIR)
install -m 755 as86 $(LIBDIR)
install -d $(BINDIR)
install -m 755 as86_encap $(BINDIR)/as86_encap
-@rm -f tmp
clean realclean clobber:
rm -f *.o as86 as86_encap
.c.o:
$(CC) $(CFLAGS) -c $<
$(OBJS): const.h errors.h
as.o: const.h type.h byteord.h macro.h file.h flag.h globvar.h
assemble.o: const.h type.h address.h globvar.h opcode.h scan.h
error.o: const.h type.h
express.o: const.h type.h address.h globvar.h scan.h source.h
genbin.o: const.h type.h address.h file.h globvar.h
genlist.o: const.h type.h address.h flag.h file.h globvar.h macro.h scan.h \
source.h
genobj.o: const.h type.h address.h file.h globvar.h
gensym.o: const.h type.h flag.h file.h globvar.h
keywords.o: const.h type.h globvar.h opcode.h
macro.o: const.h type.h globvar.h scan.h macro.h
mops.o: const.h type.h globvar.h opcode.h scan.h address.h
pops.o: const.h type.h address.h flag.h globvar.h opcode.h scan.h
readsrc.o: const.h type.h flag.h file.h globvar.h macro.h scan.h source.h
scan.o: const.h type.h globvar.h scan.h
table.o: const.h type.h globvar.h opcode.h scan.h
|