add $(EXEEXT) to executable targets during installation for MinGW
[suif.git] / Makefile.local
blob6258ebc97c2a6acfa2f4278f0ef08fed174e1a93
2 # Makefile to compile and install the SUIF compiler
5 # default variables -- these may be overridden
6 WORKDIR =       $(MACHINE)
7 LOGFILE =       install.log
8 SHELL =         /bin/sh
9 LIBRARIES =     general hawg flow simple suif math deptest \
10                 builder dependence suifmath looptrans transform
11 SUBDIRS =       general hawg flow sharlit simple suif math deptest \
12                 builder dependence suifmath looptrans transform \
13                 expander fixfortran inline ipa it mgen mexp oldsuif newsuif \
14                 oynk porky printsuif pgen prom reads readsimple scc sf2c \
15                 skweel snot snoot snout spp writesuif F77 I77
17 # read the standard definitions
18 include $(SUIFHOME)/Makefile.defs
20 MACHINCL =      $(MACHDIR)/include
22 default: build
24 install install-bin:
25         @for dir in $(SUBDIRS); do \
26             if test -d $(WORKDIR)/$$dir; then \
27                 ( cd $(WORKDIR)/$$dir; \
28                   $(MAKE) --no-print-directory $@ );\
29             fi; \
30         done
32 build:
33         @for dir in $(SUBDIRS); do \
34             if test -d $(WORKDIR)/$$dir; then \
35                 ( cd $(WORKDIR)/$$dir; $(MAKE) --no-print-directory ); \
36             fi; \
37         done
39 clean:
40         @-for dir in $(SUBDIRS); do \
41                 if test -d $$dir; then \
42                     ( cd $(WORKDIR)/$$dir; $(MAKE) --no-print-directory \
43                                 clean ); \
44                 fi \
45         done