| 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 |
on |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
TOP := . |
| 34 |
include $(TOP)/Makefile.cfg |
| 35 |
|
| 36 |
|
| 37 |
ALLDIRS := common compiler2 repgen xsdconvert |
| 38 |
|
| 39 |
ifndef MINGW |
| 40 |
ALLDIRS += mctr2 core core2 loggerplugins |
| 41 |
endif |
| 42 |
|
| 43 |
|
| 44 |
ifneq ($(PLATFORM), WIN32) |
| 45 |
ifeq ($(JNI), yes) |
| 46 |
ALLDIRS += JNI |
| 47 |
endif |
| 48 |
endif |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
DEPDIRS := $(ALLDIRS) |
| 54 |
|
| 55 |
ALLDIRS += usrguide |
| 56 |
|
| 57 |
|
| 58 |
INSTALLDIRS := $(ALLDIRS) |
| 59 |
|
| 60 |
INSTALLDIRS += etc help hello |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
all run clean distclean: |
| 65 |
@for dir in $(ALLDIRS); do \ |
| 66 |
$(MAKE) -C $$dir $@ || exit; \ |
| 67 |
done |
| 68 |
|
| 69 |
dep tags: |
| 70 |
@for dir in $(DEPDIRS); do \ |
| 71 |
$(MAKE) -C $$dir $@ || exit; \ |
| 72 |
done |
| 73 |
|
| 74 |
install: |
| 75 |
if test -h $(TTCN3_DIR); then \ |
| 76 |
echo $(TTCN3_DIR) is a symlink, you cannot be serious; exit 1; fi |
| 77 |
ifdef MINGW |
| 78 |
$(info cross your fingers...) |
| 79 |
endif |
| 80 |
-rm -rf $(TTCN3_DIR) |
| 81 |
ifeq ($(INCLUDE_EXTERNAL_LIBS), yes) |
| 82 |
mkdir -p $(TTCN3_DIR)/lib |
| 83 |
cp -d $(OPENSSL_DIR)/lib/libcrypto.so* $(TTCN3_DIR)/lib |
| 84 |
cp -d $(XMLDIR)/lib/libxml2.so* $(TTCN3_DIR)/lib |
| 85 |
endif |
| 86 |
@for dir in $(INSTALLDIRS); do \ |
| 87 |
$(MAKE) -C $$dir $@ || exit; \ |
| 88 |
done |
| 89 |
ifeq ($(LICENSING), yes) |
| 90 |
mkdir -p $(ETCDIR)/licensegen |
| 91 |
cp licensegen/license.dat $(ETCDIR)/license |
| 92 |
endif |
| 93 |
chmod -R +r,go-w $(TTCN3_DIR) |
| 94 |
@echo "***********************************" |
| 95 |
@echo "Installation successfully completed" |
| 96 |
@echo "***********************************" |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
check: |
| 101 |
compiler2/compiler -v |
| 102 |
|
| 103 |
ifneq (,$(findstring prereq,$(MAKECMDGOALS))) |
| 104 |
|
| 105 |
export |
| 106 |
endif |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
.PHONY: all clean distclean dep tags install psi dox check confess prereq |
| 112 |
|
| 113 |
|
| 114 |
Makefile.personal: SHELL:=/bin/bash |
| 115 |
Makefile.personal: |
| 116 |
if [ -f $(TOP)/makefiles/$@.$${HOSTNAME:=$${COMPUTERNAME}} ]; then ln -s $(TOP)/makefiles/$@.$${HOSTNAME} $@; else touch $@; fi |