struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / sdas / xa51 / Makefile.in
blob87c4756c60172852ebca23d66563cd9f5d65d26e
1 VPATH = @srcdir@
3 CC = gcc
4 CFLAGS = -ggdb -Wall
5 YACC = bison -y -d
6 LEX = flex -i
7 LEXLIB =
9 all: xa_rasm xa_link
11 OBJECTS = xa_main.o xa_rasm.tab.o xa_rasm.lex.o
13 xa_rasm: $(OBJECTS)
14 $(CC) -o xa_rasm $(OBJECTS) $(LEXLIB)
15 #strip xa_rasm
17 xa_rasm.lex.o: xa_rasm.lex.c xa_rasm.tab.h xa_main.h
18 $(CC) $(CFLAGS) -c xa_rasm.lex.c
20 xa_rasm.tab.o: xa_rasm.tab.c xa_rasm.tab.h xa_main.h
21 $(CC) $(CFLAGS) -c xa_rasm.tab.c
23 xa_main.o: xa_main.c xa_main.h xa_version.h
24 $(CC) $(CFLAGS) -Wall -c xa_main.c
26 xa_link.o: xa_link.c xa_main.h xa_version.h
27 $(CC) $(CFLAGS) -Wall -c xa_link.c
29 xa_rasm.tab.c xa_rasm.tab.h: xa_rasm.y
30 $(YACC) xa_rasm.y
31 mv y.tab.c xa_rasm.tab.c
32 mv y.tab.h xa_rasm.tab.h
34 xa_rasm.lex.c: xa_rasm.l
35 $(LEX) xa_rasm.l
36 mv lex.yy.c xa_rasm.lex.c
38 all: xa_rasm
40 clean:
41 rm -f *.tab.c *.tab.h *.lex.c *.o *.bak y.output *.hex *.lst *.obj
42 rm -f xa_rasm xa_link core *~