11version =$(shell cat VERSION)
2- pkgname =minisphere -$(version )
2+ pkgname =sphere -$(version )
33os =$(shell uname)
44
55ifndef prefix
@@ -19,7 +19,7 @@ ifndef CFLAGS
1919CFLAGS =-O3
2020endif
2121
22- engine_sources =src/minisphere /main.c \
22+ engine_sources =src/neosphere /main.c \
2323 src/shared/api.c \
2424 src/shared/compress.c \
2525 src/shared/console.c \
@@ -35,40 +35,40 @@ engine_sources=src/minisphere/main.c \
3535 src/shared/vector.c \
3636 src/shared/wildmatch.c \
3737 src/shared/xoroshiro.c \
38- src/minisphere /animation.c \
39- src/minisphere /atlas.c \
40- src/minisphere /audio.c \
41- src/minisphere /blend_op.c \
42- src/minisphere /byte_array.c \
43- src/minisphere /color.c \
44- src/minisphere /debugger.c \
45- src/minisphere /dispatch.c \
46- src/minisphere /event_loop.c \
47- src/minisphere /font.c \
48- src/minisphere /galileo.c \
49- src/minisphere /game.c \
50- src/minisphere /geometry.c \
51- src/minisphere /image.c \
52- src/minisphere /input.c \
53- src/minisphere /kev_file.c \
54- src/minisphere /legacy.c \
55- src/minisphere /logger.c \
56- src/minisphere /map_engine.c \
57- src/minisphere /module.c \
58- src/minisphere /obstruction.c \
59- src/minisphere /package.c \
60- src/minisphere /pegasus.c \
61- src/minisphere /profiler.c \
62- src/minisphere /screen.c \
63- src/minisphere /script.c \
64- src/minisphere /source_map.c \
65- src/minisphere /spriteset.c \
66- src/minisphere /table.c \
67- src/minisphere /tileset.c \
68- src/minisphere /transform.c \
69- src/minisphere /utility.c \
70- src/minisphere /vanilla.c \
71- src/minisphere /windowstyle.c
38+ src/neosphere /animation.c \
39+ src/neosphere /atlas.c \
40+ src/neosphere /audio.c \
41+ src/neosphere /blend_op.c \
42+ src/neosphere /byte_array.c \
43+ src/neosphere /color.c \
44+ src/neosphere /debugger.c \
45+ src/neosphere /dispatch.c \
46+ src/neosphere /event_loop.c \
47+ src/neosphere /font.c \
48+ src/neosphere /galileo.c \
49+ src/neosphere /game.c \
50+ src/neosphere /geometry.c \
51+ src/neosphere /image.c \
52+ src/neosphere /input.c \
53+ src/neosphere /kev_file.c \
54+ src/neosphere /legacy.c \
55+ src/neosphere /logger.c \
56+ src/neosphere /map_engine.c \
57+ src/neosphere /module.c \
58+ src/neosphere /obstruction.c \
59+ src/neosphere /package.c \
60+ src/neosphere /pegasus.c \
61+ src/neosphere /profiler.c \
62+ src/neosphere /screen.c \
63+ src/neosphere /script.c \
64+ src/neosphere /source_map.c \
65+ src/neosphere /spriteset.c \
66+ src/neosphere /table.c \
67+ src/neosphere /tileset.c \
68+ src/neosphere /transform.c \
69+ src/neosphere /utility.c \
70+ src/neosphere /vanilla.c \
71+ src/neosphere /windowstyle.c
7272engine_libs = \
7373 -lallegro_acodec \
7474 -lallegro_audio \
@@ -133,13 +133,13 @@ LINKER_ARGS=-Wl,-rpath,\$$ORIGIN
133133CHAKRACORE_URL =https://aka.ms/chakracore/cc_osx_x64_1_11_15
134134else
135135LINKER_ARGS=-Wl,-rpath =\$$ORIGIN
136- OPTIONS =-DMINISPHERE_MNG_SUPPORT
136+ OPTIONS =-DNEOSPHERE_MNG_SUPPORT
137137engine_libs+ =-lmng
138138CHAKRACORE_URL =https://aka.ms/chakracore/cc_linux_x64_1_11_15
139139endif
140140
141141.PHONY : all
142- all : minisphere spherun cell ssj
142+ all : neosphere spherun cell ssj
143143
144144.PHONY : deps
145145deps :
@@ -151,11 +151,11 @@ deps:
151151installdeps :
152152 cp dep/lib/* $(installdir ) /lib
153153
154- .PHONY : minisphere
155- minisphere : bin/minisphere
154+ .PHONY : neosphere
155+ neosphere : bin/neosphere
156156
157157.PHONY : spherun
158- spherun : bin/minisphere bin/spherun
158+ spherun : bin/neosphere bin/spherun
159159
160160.PHONY : cell
161161cell : bin/cell
@@ -169,43 +169,43 @@ dist: all
169169 cp -r assets desktop docs license manpages src dist/$(pkgname )
170170 cp Makefile VERSION dist/$(pkgname )
171171 cp CHANGELOG.md LICENSE.txt README.md dist/$(pkgname )
172- cd dist && tar czf $(pkgname ) .tar.gz $(pkgname ) && rm -rf dist/$(pkgname )
172+ cd dist && tar czf $(pkgname ) -src .tar.gz $(pkgname ) && rm -rf dist/$(pkgname )
173173
174174.PHONY : install
175175install : all
176176 mkdir -p $(installdir ) /bin
177177 mkdir -p $(installdir ) /lib
178- mkdir -p $(installdir ) /share/minisphere
178+ mkdir -p $(installdir ) /share/sphere
179179 mkdir -p $(installdir ) /share/applications
180- mkdir -p $(installdir ) /share/doc/minisphere
180+ mkdir -p $(installdir ) /share/doc/sphere
181181 mkdir -p $(installdir ) /share/icons/hicolor/scalable/mimetypes
182182 mkdir -p $(installdir ) /share/mime/packages
183183 mkdir -p $(installdir ) /share/man/man1
184184 mkdir -p $(installdir ) /share/pixmaps
185- cp bin/minisphere bin/spherun bin/cell bin/ssj $(installdir ) /bin
186- cp -r bin/system $(installdir ) /share/minisphere
187- gzip docs/sphere2-core-api.txt -c > $(installdir ) /share/doc/minisphere /sphere2-core-api.gz
188- gzip docs/sphere2-hl-api.txt -c > $(installdir ) /share/doc/minisphere /sphere2-hl-api.gz
189- gzip docs/cellscript-api.txt -c > $(installdir ) /share/doc/minisphere /cellscript-api.gz
190- gzip manpages/minisphere .1 -c > $(installdir ) /share/man/man1/minisphere .1.gz
185+ cp bin/neosphere bin/spherun bin/cell bin/ssj $(installdir ) /bin
186+ cp -r bin/system $(installdir ) /share/sphere
187+ gzip docs/sphere2-core-api.txt -c > $(installdir ) /share/doc/sphere /sphere2-core-api.gz
188+ gzip docs/sphere2-hl-api.txt -c > $(installdir ) /share/doc/sphere /sphere2-hl-api.gz
189+ gzip docs/cellscript-api.txt -c > $(installdir ) /share/doc/sphere /cellscript-api.gz
190+ gzip manpages/neosphere .1 -c > $(installdir ) /share/man/man1/neosphere .1.gz
191191 gzip manpages/spherun.1 -c > $(installdir ) /share/man/man1/spherun.1.gz
192192 gzip manpages/cell.1 -c > $(installdir ) /share/man/man1/cell.1.gz
193193 gzip manpages/ssj.1 -c > $(installdir ) /share/man/man1/ssj.1.gz
194- cp desktop/minisphere .desktop $(installdir ) /share/applications
194+ cp desktop/neosphere .desktop $(installdir ) /share/applications
195195 cp desktop/sphere-icon.svg $(installdir ) /share/pixmaps
196- cp desktop/mimetypes/minisphere .xml $(installdir ) /share/mime/packages
196+ cp desktop/mimetypes/neosphere .xml $(installdir ) /share/mime/packages
197197 cp desktop/mimetypes/* .svg $(installdir ) /share/icons/hicolor/scalable/mimetypes
198198
199199.PHONY : clean
200200clean :
201201 rm -rf bin
202202 rm -rf dist
203203
204- bin/minisphere :
204+ bin/neosphere :
205205 mkdir -p bin
206- $(CC ) -o bin/minisphere $(CFLAGS ) \
206+ $(CC ) -o bin/neosphere $(CFLAGS ) \
207207 -fno-omit-frame-pointer \
208- -Idep/include -Isrc/shared -Isrc/minisphere \
208+ -Idep/include -Isrc/shared -Isrc/neosphere \
209209 -Ldep/lib \
210210 $(LINKER_ARGS ) \
211211 $(OPTIONS ) \
@@ -216,11 +216,11 @@ bin/spherun:
216216 mkdir -p bin
217217 $(CC ) -o bin/spherun $(CFLAGS ) \
218218 -fno-omit-frame-pointer \
219- -Idep/include -Isrc/shared -Isrc/minisphere \
219+ -Idep/include -Isrc/shared -Isrc/neosphere \
220220 -Ldep/lib \
221221 $(LINKER_ARGS ) \
222222 $(OPTIONS ) \
223- -DMINISPHERE_SPHERUN \
223+ -DNEOSPHERE_SPHERUN \
224224 $(engine_sources ) $(engine_libs )
225225
226226bin/cell :
0 commit comments