source: trunk/Makefile.am @ 1168

Last change on this file since 1168 was 1168, checked in by sam, 8 years ago

mrpigeon: create source tree for MrPigeon.

File size: 2.0 KB
Line 
1
2SUBDIRS = src test tools gfx
3SUBDIRS += deushax
4SUBDIRS += monsterz
5SUBDIRS += mrpigeon
6DIST_SUBDIRS = $(SUBDIRS)
7
8EXTRA_DIST = bootstrap build-linux build-mingw build-mingw64 build-ps3 \
9             build-nacl32 build-nacl64 build/lol-build
10AUTOMAKE_OPTIONS = dist-bzip2
11
12bench:
13        cd test && $(MAKE) $(AM_MAKEFLAGS) $@
14.PHONY: bench
15
16dist: lolunit-$(LOLUNIT_VERSION).tar.gz
17dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
18
19.PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
20lolunit-$(LOLUNIT_VERSION).tar.gz:
21        rm -rf lolunit-$(LOLUNIT_VERSION)
22        mkdir lolunit-$(LOLUNIT_VERSION)
23        mkdir lolunit-$(LOLUNIT_VERSION)/lol
24        cp $(top_srcdir)/src/lol/unit.h lolunit-$(LOLUNIT_VERSION)/lol
25        tar cvzf lolunit-$(LOLUNIT_VERSION).tar.gz lolunit-$(LOLUNIT_VERSION)
26        rm -rf lolunit-$(LOLUNIT_VERSION)
27
28.PHONY: lolremez-$(LOLREMEZ_VERSION).tar.gz
29lolremez-$(LOLREMEZ_VERSION).tar.gz:
30        rm -rf lolremez-$(LOLREMEZ_VERSION)
31        mkdir lolremez-$(LOLREMEZ_VERSION)
32        mkdir lolremez-$(LOLREMEZ_VERSION)/lol
33        mkdir lolremez-$(LOLREMEZ_VERSION)/lol/math
34        cat $(top_srcdir)/test/math/remez.cpp | sed '/#if/,/^$$/d' > \
35          lolremez-$(LOLREMEZ_VERSION)/remez.cpp
36        cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' | sed '/#if/,/^$$/d' > \
37          lolremez-$(LOLREMEZ_VERSION)/real.cpp
38        cp $(top_srcdir)/test/math/NEWS.txt \
39           $(top_srcdir)/test/math/lolremez.sln \
40           $(top_srcdir)/test/math/remez.vcxproj \
41           $(top_srcdir)/test/math/remez.vcxproj.filters \
42          lolremez-$(LOLREMEZ_VERSION)/
43        cp $(top_srcdir)/src/lol/math/real.h \
44           $(top_srcdir)/src/lol/math/matrix.h \
45           $(top_srcdir)/src/lol/math/remez.h \
46          lolremez-$(LOLREMEZ_VERSION)/lol/math/
47        printf 'remez: real.cpp remez.cpp\n' > lolremez-$(LOLREMEZ_VERSION)/Makefile
48        printf '\t$$(CXX) -I. -O2 -g -ggdb $$^ -o $$@\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
49        printf 'clean:\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
50        printf '\trm -f remez\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
51        tar cvzf lolremez-$(LOLREMEZ_VERSION).tar.gz lolremez-$(LOLREMEZ_VERSION)
52        rm -rf lolremez-$(LOLREMEZ_VERSION)
53
Note: See TracBrowser for help on using the repository browser.