1 #######################################################
3 # a56 - a DSP56001 assembler
5 # Written by Quinn C. Jensen
8 #######################################################
10 # Copyright (C) 1990-1998 Quinn C. Jensen
12 # Permission to use, copy, modify, distribute, and sell this
13 # software and its documentation for any purpose is hereby granted
14 # without fee, provided that the above copyright notice appear in all
15 # copies and that both that copyright notice and this permission
16 # notice appear in supporting documentation. The author makes no
17 # representations about the suitability of this software for any
18 # purpose. It is provided "as is" without express or implied
21 # environment definitions
22 # uncomment the ones you like
44 # Delorie's DOS gcc (from ftp://omnigate.clarkson.edu/pub/msdos/djgpp)
52 #POSTPROCESS = coff2exe
54 # gcc cross-compile to go32 environment
64 #######################################################
67 #DEBUG = -O -Olimit 3000
70 SRCS = main.c a56.y lex.c subs.c getopt.c kparse.key
71 OBJS = main.o gram.o lex.o toktab.o subs.o getopt.o kparse.o
74 #DEFINES = -DYYDEBUG -DLDEBUG $(CCDEFS)
76 CFLAGS = $(DEBUG) $(DEFINES)
81 $(CC) $(CFLAGS) -o a56 $(OBJS) -lm
84 keybld: keybld.o ksubs.o
85 $(HOSTCC) $(CFLAGS) -o keybld keybld.o ksubs.o
86 @$(POSTPROCESS) keybld
89 $(HOSTCC) $(CFLAGS) -c keybld.c
92 $(HOSTCC) $(CFLAGS) -c subs.c
97 kparse.c: a56.key keybld
98 ./keybld < a56.key > kparse.c
101 @echo "[expect 2 shift/reduce conflicts here]"
103 $(MV) $(YTABC) gram.c
104 $(MV) $(YTABH) gram.h
107 awk -f tok.awk < gram.h > toktab.c
113 $(CC) -o toomf $(CFLAGS) toomf.o
114 @$(POSTPROCESS) toomf
116 torom: torom.o subs.o
117 $(CC) -o torom $(CFLAGS) torom.o subs.o
120 csh -c 'tar cvbf 1 - `cat files` | gzip > a56.tar.gz'
122 main.o gram.o lex.o: a56.h
124 clean: ; rm -f a56 toomf y.output *.o *.out tmp *.bak a56.tar.gz keybld
127 rm -f gram.c lexyy.c gram.h toktab.c kparse.c