source: trunk/Makefile.am @ 1519

Last change on this file since 1519 was 1518, checked in by sam, 11 years ago

build: reorganise all the build stuff so that it lies in build/ and
make sure each .vcxproj file is with its corresponding source code.

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