| [37457] | 1 | ACLOCAL_AMFLAGS = -I unix/m4 -I unix/m4-local |
|---|
| 2 | SUBDIRS = intl po unix/tests |
|---|
| 3 | EXTRA_DIST = windows |
|---|
| [37461] | 4 | bin_SCRIPTS = $(PACKAGE)$(EXEEXT) |
|---|
| [37457] | 5 | EXTRA_PROGRAMS = i3 i3_test mil_test mil_profile |
|---|
| [37462] | 6 | CLEANFILES = po/stamp-po *.gcno |
|---|
| 7 | DISTCLEANFILES = $(PACKAGE)$(EXEEXT) i3$(EXEEXT) |
|---|
| [37457] | 8 | BUILT_SOURCES = |
|---|
| [36540] | 9 | DISTCHECK_CONFIGURE_FLAGS = --disable-debug |
|---|
| [37201] | 10 | AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = |
|---|
| [17229] | 11 | |
|---|
| [37461] | 12 | $(PACKAGE)$(EXEEXT): i3$(EXEEXT) |
|---|
| [37454] | 13 | cp -f $< $@ |
|---|
| 14 | |
|---|
| 15 | DEFS += -DLOCALEDIR=\"$(localedir)\" # can't be written on configure.ac, |
|---|
| [37321] | 16 | # It conflicts with intl/Makefile |
|---|
| [37041] | 17 | |
|---|
| [37454] | 18 | LIBS += $(LIBINTL) # can't be written on configure.ac |
|---|
| 19 | # $(LIBINTL) can be intl/libintl.a |
|---|
| [37582] | 20 | LIBS += libmilobjcexceptionfilter.a |
|---|
| [37041] | 21 | |
|---|
| [37201] | 22 | if WITH_OS_WINDOWS |
|---|
| [37579] | 23 | AM_INSTALLCHECK_STD_OPTIONS_EXEMPT += $(PACKAGE)$(EXEEXT) |
|---|
| [37201] | 24 | endif |
|---|
| 25 | |
|---|
| [37041] | 26 | include unix/am/i3.am |
|---|
| 27 | include unix/am/i3_test.am |
|---|
| 28 | include unix/am/mil_test.am |
|---|
| 29 | include unix/am/mil_profile.am |
|---|
| [37307] | 30 | include unix/am/libobjcexceptionfilter.am |
|---|
| [37041] | 31 | |
|---|
| [17271] | 32 | # gcc precompiled header files |
|---|
| [33633] | 33 | if USE_GCC_PRECOMPILED_HEADER |
|---|
| [37454] | 34 | gch_source = $(srcdir)/src/mil/include/mil/PrecompiledHeaders.h |
|---|
| 35 | gch_file = $(gch_source).gch |
|---|
| 36 | BUILT_SOURCES += #$(gch_file) |
|---|
| 37 | CLEANFILES += $(gch_file) |
|---|
| [37464] | 38 | gch: $(gch_file) |
|---|
| 39 | $(gch_file): src/mil/include/mil/PrecompiledHeaders.h \ |
|---|
| 40 | src/mil/include/mil/os-windows/PrecompiledHeaders.h \ |
|---|
| 41 | src/mil/include/mil/os-unix/PrecompiledHeaders.h \ |
|---|
| 42 | src/mil/include/mil/gui-windows/PrecompiledHeaders.h \ |
|---|
| 43 | src/mil/include/mil/gui-cocoa/PrecompiledHeaders.h |
|---|
| 44 | $(CXXCOMPILE) -x $(GCH_LANG) -c $(gch_source) -o $@ |
|---|
| [33633] | 45 | else |
|---|
| [33828] | 46 | gch: |
|---|
| [33633] | 47 | endif |
|---|
| [17271] | 48 | |
|---|
| [16064] | 49 | dist-hook: |
|---|
| [37454] | 50 | chmod -R u+rw $(distdir)/unix $(distdir)/src |
|---|
| 51 | cp -pR $(srcdir)/unix $(srcdir)/src $(distdir) |
|---|
| 52 | chmod -R u+rx $(distdir)/unix/scripts |
|---|
| 53 | test -r $(distdir)/unix/scripts/ac_init_version.sh |
|---|
| 54 | cd $(distdir) && $(SHELL) ./unix/scripts/clean_distdir.sh |
|---|
| [15982] | 55 | |
|---|
| [37454] | 56 | dist2_distdir = dist2.$(CONFIGURE_DATE) |
|---|
| [36187] | 57 | dist2-hook: |
|---|
| [37454] | 58 | bash -n $(srcdir)/configure |
|---|
| 59 | test -r $(srcdir)/unix/scripts/ac_init_version.sh |
|---|
| 60 | test -x $(srcdir)/unix/scripts/ac_init_version.sh |
|---|
| 61 | test "$(PACKAGE_VERSION)" = "`$(SHELL) $(srcdir)/unix/scripts/ac_init_version.sh`" |
|---|
| [36136] | 62 | svn status > /dev/null |
|---|
| [36132] | 63 | test "`svn status | grep -v '^\?'`" = "" |
|---|
| [37454] | 64 | rm -rf $(dist2_distdir) |
|---|
| 65 | svn co `LC_ALL=en svn info | grep URL | cut -f 2 -d " "` $(dist2_distdir) |
|---|
| 66 | cd $(dist2_distdir) && autoreconf -i && ./configure |
|---|
| [36092] | 67 | |
|---|
| [36187] | 68 | dist2: dist2-hook |
|---|
| [37454] | 69 | cd $(dist2_distdir) && $(MAKE) dist |
|---|
| [36187] | 70 | |
|---|
| 71 | distcheck2: dist2-hook |
|---|
| [37454] | 72 | cd $(dist2_distdir) && $(MAKE) distcheck |
|---|
| [36187] | 73 | |
|---|
| [36171] | 74 | check2: |
|---|
| [37454] | 75 | flawfinder $(srcdir)/src |
|---|
| [37457] | 76 | find $(srcdir)/src -name "*.cc" -type f | xargs rats |
|---|
| 77 | find $(srcdir)/src -name "*.h" -type f | xargs rats |
|---|
| [36171] | 78 | |
|---|
| [15675] | 79 | # copy locale file for windows |
|---|
| 80 | windows-locale: |
|---|
| [37454] | 81 | $(PERL) unix/scripts/windows-locale.pl $(PACKAGE_NAME) |
|---|
| [16064] | 82 | |
|---|
| [32716] | 83 | if WITH_OS_WINDOWS |
|---|
| [36280] | 84 | |
|---|
| 85 | DISTCHECK_CONFIGURE_FLAGS += --enable-threads=win32 |
|---|
| 86 | |
|---|
| [32716] | 87 | if WITH_GUI_WINDOWS |
|---|
| 88 | |
|---|
| [37579] | 89 | windows/bin/$(PACKAGE).win9x.exe: $(PACKAGE).exe |
|---|
| [37454] | 90 | $(MKDIR_P) windows/bin |
|---|
| [37579] | 91 | cp -f $< $@ |
|---|
| [34675] | 92 | |
|---|
| [15963] | 93 | # dist |
|---|
| [32716] | 94 | windows-dist: \ |
|---|
| [37461] | 95 | windows/bin/$(PACKAGE).Release.Win32.exe \ |
|---|
| 96 | windows/bin/$(PACKAGE).Release.x64.exe \ |
|---|
| 97 | windows/bin/$(PACKAGE).win9x.exe |
|---|
| 98 | $(PERL) unix/scripts/windows-dist.pl $(PACKAGE) $(VERSION) |
|---|
| [16064] | 99 | |
|---|
| [32716] | 100 | endif |
|---|
| 101 | endif |
|---|
| 102 | |
|---|
| [37565] | 103 | EXTRA_PROGRAMS += nls_test |
|---|
| 104 | nls_test_SOURCES = tmp/nls.cc |
|---|
| [36205] | 105 | |
|---|
| [37458] | 106 | deb: dist-gzip #dist2-hook |
|---|
| [37457] | 107 | rm -fr debpackage |
|---|
| 108 | $(MKDIR_P) debpackage |
|---|
| [37454] | 109 | cp $(PACKAGE)-$(VERSION).tar.gz debpackage/$(PACKAGE)_$(VERSION).orig.tar.gz |
|---|
| [37457] | 110 | cd debpackage && \ |
|---|
| 111 | tar zxf $(PACKAGE)_$(VERSION).orig.tar.gz && \ |
|---|
| 112 | cd $(PACKAGE)-$(VERSION) && \ |
|---|
| 113 | cp -pR unix/debian . && \ |
|---|
| 114 | debuild -uc -us |
|---|
| [36744] | 115 | |
|---|
| [37458] | 116 | rpm: dist-gzip |
|---|
| [37454] | 117 | rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz |
|---|
| [37187] | 118 | |
|---|
| [37457] | 119 | |
|---|
| 120 | |
|---|