4 DIVINCL = -I$(TOPSRC)/include
7 DIVDEFS = -DUSE_READLINE
8 COMPILE = $(CC) $(CFLAGS) $(DIVINCL) $(DIVDEFS)
10 LDCOMBINEFLAGS = @LDCOMBINEFLAGS@
16 SRCS = break.c db_disasm.c hash.c info.c registers.c stack.c
18 OBJS = $(SRCS:.c=.o) dbg.tab.o lex.yy.o
20 all: $(MODULE).o dbg.tab.o lex.yy.o
23 $(BISON) -b dbg -d dbg.y
26 $(BISON) -b dbg -d dbg.y
28 lex.yy.c: debug.l dbg.tab.h dbg.tab.h
32 $(COMPILE) -c -o $*.o $<
35 (cd readline; $(MAKE) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'LD=$(LD)' 'LDCOMBINEFLAGS=$(LDCOMBINEFLAGS)')
36 $(LD) $(LDCOMBINEFLAGS) $(OBJS) readline/readline.o -o $(MODULE).o
39 sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
40 $(CC) $(DIVINCL) $(XINCL) -MM *.c >> tmp_make
45 (cd readline; $(MAKE) clean)
46 rm -f *.o \#*\# *~ dbg.tab.c dbg.tab.h lex.yy.c y.tab.c y.tab.h tmp_make
49 (cd readline; $(MAKE) distclean)
57 for i in $(NAMES); do \
58 if test `grep -c WINELIB $$i.c` -ne 0; then \