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