source: trunk/Makefile.am @ 1309

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

orbital: add a skeleton project for Orbital.

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