Fix for parseThat build failures
[dyninst.git] / parseThat / Makefile
1
2 TO_SCRIPTS = ../../scripts
3 USES_DWARF_DEBUG = true
4 USES_LIBELF = true
5
6 include ../make.config
7 VPATH = $(PLATFORM)
8
9 ABS_PROGRAM_DEST = `cd $(PROGRAM_DEST); pwd`
10
11 all:  $(PLATFORM)/parseThat
12
13 $(PLATFORM)/parseThat: $(PLATFORM)/Makefile
14         $(MAKE) -C $(PLATFORM)
15
16 $(PLATFORM)/Makefile: Makefile.in
17         @if [ -d $(PLATFORM) ]; then \
18                 echo "directory $(PLATFORM) exists"; \
19         else \
20                 mkdir $(PLATFORM); \
21         fi; \
22    cd $(PLATFORM); \
23    if [ -d $(ABS_PROGRAM_DEST) ]; then \
24                 ../configure --with-dyninst-lib=$(LIBRARY_DEST) --with-dyninst-include=$(INCLUDE_DEST) --prefix=$(ABS_PROGRAM_DEST); \
25    else \
26                 ../configure --with-dyninst-lib=$(LIBRARY_DEST) --with-dyninst-include=$(INCLUDE_DEST); \
27    fi; \
28
29 clean:
30         cd $(PLATFORM); $(MAKE) clean;
31
32 distclean:
33         rm -rf $(PLATFORM)
34
35 install:
36         cd $(PLATFORM); $(MAKE) install;