In asxlat, translate ! to ~ (not operator; used with bic instruction)
[pdp11_as.git] / Makefile
1 LD=ld
2 INSTALL=install
3 #
4 # makefile for as
5 #
6
7 #AS=    /bin/as
8 #SEPFLAG= -i -X
9 #SEPFLAG=-i
10 CFLAGS=-m32 -g
11
12 all: as aslist asxlat
13
14 as: as0.o as2.o
15 #       ${LD} ${SEPFLAG} -o $@ ${STAGEDIR}/lib/crt0.o as0.o as2.o -lc
16 #       ${CC} ${SEPFLAG} -o $@ as0.o as2.o
17         ${CC} ${CFLAGS} -o $@ as0.o as2.o
18
19 as0.o: as0.c as0.h as2.h
20 as2.o: as2.c as0.h as2.h
21
22 aslist: aslist0.o aslist2.o
23         ${CC} ${CFLAGS} -o $@ aslist0.o aslist2.o
24
25 aslist0.o: as0.c as0.h as2.h
26         ${CC} ${CFLAGS} -DLISTING -o $@ -c $<
27
28 aslist2.o: as2.c as0.h as2.h
29         ${CC} ${CFLAGS} -DLISTING -o $@ -c $<
30
31 asxlat: asxlat0.o asxlat2.o
32         ${CC} ${CFLAGS} -o $@ asxlat0.o asxlat2.o
33
34 asxlat0.o: as0.c as0.h as2.h
35         ${CC} ${CFLAGS} -DTRANSLATE -o $@ -c $<
36
37 asxlat2.o: as2.c as0.h as2.h
38         ${CC} ${CFLAGS} -DTRANSLATE -o $@ -c $<
39
40 install: all
41         ${INSTALL} -s as aslist asxlat ${DESTDIR}/bin
42
43 clean:
44         rm -f *.o a.out as aslist asxlat core errs