-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
62 lines (56 loc) · 1.97 KB
/
Makefile.am
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
52
53
54
55
56
57
58
59
60
61
62
AUTOMAKE_OPTIONS = foreign dist-xz
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = build/linux data gemlib po aes vdi util zlib libpng src
EXTRA_DIST = \
include \
doc/license.txt
CROSS_WIN32_HOST = i686-pc-mingw32
CROSS_WIN32_PREFIX = $(CROSS_WIN32_HOST)-
CROSS_WIN64_HOST = x86_64-w64-mingw32
CROSS_WIN64_PREFIX = $(CROSS_WIN64_HOST)-
CROSS_MINT_HOST = m68k-atari-mint
CROSS_MINT_PREFIX = $(CROSS_MINT_HOST)-
CONFIGURE_ARGS = --enable-warnings --enable-fatal-warnings
TMPDIR=$(HOME)/tmp/rscview
DOWNLOADS=$(HOME)/webgo24/home/www/download
bindist:
$(MAKE) clean
./configure $(CONFIGURE_ARGS) --host=$(CROSS_WIN32_HOST)
$(MAKE) -j8
-rm -rf $(TMPDIR)
-mkdir -p $(TMPDIR)
$(CROSS_WIN32_PREFIX)strip src/rscview.exe
cp -a src/rscview.exe $(TMPDIR)
cp -a /usr/$(CROSS_WIN32_HOST)/sys-root/mingw/bin/zlib1.dll $(TMPDIR)
cp -a /usr/lib/gcc/$(CROSS_WIN32_HOST)/libgcc_s_dw2-1.dll $(TMPDIR)
$(RM) $(DOWNLOADS)/rscview-$(VERSION)-win32.zip
(cd $(TMPDIR)/..; zip -r $(DOWNLOADS)/rscview-$(VERSION)-win32.zip rscview)
$(MAKE) clean
./configure $(CONFIGURE_ARGS) --host=$(CROSS_WIN64_HOST)
$(MAKE) -j8
-rm -rf $(TMPDIR)
-mkdir -p $(TMPDIR)
$(CROSS_WIN64_PREFIX)strip src/rscview.exe
cp -a src/rscview.exe $(TMPDIR)
cp -a /usr/$(CROSS_WIN64_HOST)/sys-root/mingw/bin/zlib1.dll $(TMPDIR)
cp -a /usr/lib/gcc/$(CROSS_WIN64_HOST)/libgcc_s_sjlj-1.dll $(TMPDIR)
$(RM) $(DOWNLOADS)/rscview-$(VERSION)-win64.zip
(cd $(TMPDIR)/..; zip -r $(DOWNLOADS)/rscview-$(VERSION)-win64.zip rscview)
$(MAKE) clean
./configure $(CONFIGURE_ARGS) --host=$(CROSS_MINT_HOST)
$(MAKE) -j8
$(CROSS_MINT_PREFIX)strip src/rscview
(cd src; mv rscview rscview.ttp; zip -r $(DOWNLOADS)/rscview-$(VERSION)-mint.zip rscview.ttp; rm -f rscview.ttp)
$(MAKE) clean
./configure $(CONFIGURE_ARGS)
$(MAKE) -j8
strip src/rscview
(cd src; \
tar cvfj $(DOWNLOADS)/rscview-$(VERSION)-linux.tar.bz2 rscview)
$(MAKE) clean
bd:
$(MAKE) clean
$(MAKE) -j8
strip src/rscview
(cd src; \
tar cvfj $(DOWNLOADS)/rscview-$(VERSION)-linux.tar.bz2 rscview)