source: trunk/Makefile.am @ 1363

Last change on this file since 1363 was 1235, checked in by sam, 9 years ago

orbital: add a skeleton project for Orbital.

File size: 2.0 KB
RevLine 
[92]1
[1168]2SUBDIRS = src test tools gfx
3SUBDIRS += deushax
4SUBDIRS += monsterz
5SUBDIRS += mrpigeon
[1235]6SUBDIRS += orbital
[785]7DIST_SUBDIRS = $(SUBDIRS)
[92]8
[1094]9EXTRA_DIST = bootstrap build-linux build-mingw build-mingw64 build-ps3 \
10             build-nacl32 build-nacl64 build/lol-build
[92]11AUTOMAKE_OPTIONS = dist-bzip2
12
[877]13bench:
14        cd test && $(MAKE) $(AM_MAKEFLAGS) $@
15.PHONY: bench
16
[938]17dist: lolunit-$(LOLUNIT_VERSION).tar.gz
[1119]18dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
[938]19
[1119]20.PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
[938]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
[1119]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
[1120]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' > \
[1119]38          lolremez-$(LOLREMEZ_VERSION)/real.cpp
[1129]39        cp $(top_srcdir)/test/math/NEWS.txt \
40           $(top_srcdir)/test/math/lolremez.sln \
[1124]41           $(top_srcdir)/test/math/remez.vcxproj \
42           $(top_srcdir)/test/math/remez.vcxproj.filters \
43          lolremez-$(LOLREMEZ_VERSION)/
[1119]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 \
[1124]47          lolremez-$(LOLREMEZ_VERSION)/lol/math/
[1119]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.