(Merged by Marcus Meissner <marcus@jet.franken.de>)
[wine] / debugger / Makefile.in
1 DEFS      = -DWINELIB
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 MODULE    = none
7 PROGRAMS  = winedbg
8 IMPORTS   = user32 gdi32 kernel32
9
10 C_SRCS = \
11         break.c \
12         db_disasm.c \
13         display.c \
14         editline.c \
15         expr.c \
16         hash.c \
17         info.c \
18         memory.c \
19         module.c \
20         msc.c \
21         registers.c \
22         source.c \
23         stabs.c \
24         stack.c \
25         types.c \
26         winedbg.c
27
28 SPEC_SRCS = winedbg.spec
29
30 EXTRA_SRCS = dbg.y debug.l
31 EXTRA_OBJS = y.tab.o lex.yy.o
32
33 all: $(PROGRAMS)
34
35 depend: y.tab.h
36
37 @MAKE_RULES@
38
39 y.tab.c y.tab.h: dbg.y
40         $(YACC) -d -t $(SRCDIR)/dbg.y
41
42 lex.yy.c: debug.l
43         $(LEX) -8 -I $(SRCDIR)/debug.l
44
45 winedbg: $(OBJS)
46         $(CC) -o $@ $(OBJS) $(DLL_LINK) $(LIBS)
47
48 install:: $(PROGRAMS)
49         [ -d $(bindir) ] || $(MKDIR) $(bindir)
50         $(INSTALL_PROGRAM) winedbg $(bindir)/winedbg
51
52 uninstall::
53         $(RM) $(bindir)/winedbg
54
55 ### Dependencies: