-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.in
executable file
·51 lines (42 loc) · 1.28 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: all install clean distclean test
INSTALL=@INSTALL@
BINDIR=@OMNI_HOME@/bin
T_FJMODULE=@T_FJMODULE@
T_FJMODULE_REMOTE=http://omni-compiler.org/T_FJModule/20170523
T_FJMODULE_LOCAL=T_FJModule
SUBDIRS=C-FrontEnd/src F-FrontEnd/src XcodeML-Common C-BackEnd F-BackEnd Driver/bin
FALSE=1
TRUE=0
NEED_MAKE_MOD2XMOD=@NEED_MAKE_MOD2XMOD@
ifeq ($(NEED_MAKE_MOD2XMOD), $(TRUE))
SUBDIRS+=F-FrontEnd/gnu_module
endif
IS_ATOOL=@ATOOL@
ifeq ($(IS_ATOOL), $(TRUE))
SUBDIRS+=Driver/atool
endif
all:
@for subdir in $(SUBDIRS) ; do \
$(MAKE) -C $$subdir ; \
if test $$? -ne 0; then exit 1; fi ; \
done
test: all
cd F-FrontEnd/src && bash ./compile_all_test.sh
cd test/C99; make clean; make CC=$(CC)
install:
@for subdir in $(SUBDIRS) ; do \
$(MAKE) -C $$subdir install ; \
if test $$? -ne 0; then exit 1; fi ; \
done; \
if test $(T_FJMODULE) -eq $(TRUE); then \
wget $(T_FJMODULE_REMOTE) -O $(DESTDIR)$(BINDIR)/$(T_FJMODULE_LOCAL) || \
echo "Please download $(T_FJMODULE_REMOTE) and copy it at $(DESTDIR)$(BINDIR)/$(T_FJMODULE_LOCAL)"; \
chmod +x $(DESTDIR)$(BINDIR)/$(T_FJMODULE_LOCAL); \
fi
clean:
@for subdir in $(SUBDIRS) ; do \
$(MAKE) -C $$subdir clean ; \
if test $$? -ne 0; then exit 1; fi; \
done
distclean: clean
rm -rf autom4te.cache config.log config.status