* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / as / Makefile
blob60aa952577fd875d48bb44e8ada6aaa915bf1e13
2 CFLAGS=-O
3 LDFLAGS=-s
4 LIBDIR=/usr/bin
5 BINDIR=/usr/bin
7 OBJS =as.o assemble.o errors.o express.o \
8 genbin.o genlist.o genobj.o gensym.o \
9 keywords.o macro.o mops.o pops.o readsrc.o \
10 scan.o table.o typeconv.o alloc.o
12 all: as86 as86_encap
14 as86: $(OBJS)
15 $(CC) $(LDFLAGS) $(OBJS) -o $@
17 as86_encap: as86_encap.sh
18 sed -e "s:%%LIBDIR%%:$(LIBDIR):" -e "s:%%BINDIR%%:$(BINDIR):" \
19 < as86_encap.sh > tmp
20 @mv -f tmp $@
21 chmod +x $@
23 install: all
24 install -d $(LIBDIR)
25 install -m 755 as86 $(LIBDIR)
26 install -d $(BINDIR)
27 install -m 755 as86_encap $(BINDIR)/as86_encap
28 -@rm -f tmp
30 clean realclean clobber:
31 rm -f *.o as86 as86_encap
33 .c.o:
34 $(CC) $(CFLAGS) -c $<
36 $(OBJS): const.h errors.h
38 as.o: const.h type.h byteord.h macro.h file.h flag.h globvar.h
39 assemble.o: const.h type.h address.h globvar.h opcode.h scan.h
40 error.o: const.h type.h
41 express.o: const.h type.h address.h globvar.h scan.h source.h
42 genbin.o: const.h type.h address.h file.h globvar.h
43 genlist.o: const.h type.h address.h flag.h file.h globvar.h macro.h scan.h \
44 source.h
45 genobj.o: const.h type.h address.h file.h globvar.h
46 gensym.o: const.h type.h flag.h file.h globvar.h
47 keywords.o: const.h type.h globvar.h opcode.h
48 macro.o: const.h type.h globvar.h scan.h macro.h
49 mops.o: const.h type.h globvar.h opcode.h scan.h address.h
50 pops.o: const.h type.h address.h flag.h globvar.h opcode.h scan.h
51 readsrc.o: const.h type.h flag.h file.h globvar.h macro.h scan.h source.h
52 scan.o: const.h type.h globvar.h scan.h
53 table.o: const.h type.h globvar.h opcode.h scan.h