~sircmpwn/bunnix

b70189c1e72ca6c935edbb3a6343908180cd6b8f — Drew DeVault 2 months ago aae381c
ports: add doom to base system
4 files changed, 19 insertions(+), 0 deletions(-)

M Makefile
M ports/doom/.gitignore
A ports/doom/doom1.wad
M ports/ports.mk
M Makefile => Makefile +1 -0
@@ 103,6 103,7 @@ ifeq ($(INSTALL_SRC), 1)
$(SYSROOT)/usr/src:
	@mkdir -p $(SYSROOT)/usr/src
	git archive HEAD | tar -C $(SYSROOT)/usr/src -x
	rm -f $(SYSROOT)/usr/src/ports/doom/doom1.wad

.PHONY: $(SYSROOT)/usr/src


M ports/doom/.gitignore => ports/doom/.gitignore +1 -0
@@ 8,3 8,4 @@
.vs/
Debug/
Release/
/doomgeneric/doom

A ports/doom/doom1.wad => ports/doom/doom1.wad +0 -0
M ports/ports.mk => ports/ports.mk +17 -0
@@ 23,6 23,23 @@ clean-advent:
.PHONY: clean-advent
clean-ports: clean-advent

#### doom

ports/doom/doomgeneric/doom: $(SYSROOT)/usr/lib/libc.a
	make -C ports/doom/doomgeneric -f Makefile.bunnix

$(SYSROOT)/usr/bin/doom: ports/doom/doomgeneric/doom
	cp ports/doom/doomgeneric/doom $(SYSROOT)/usr/bin/
	mkdir -p $(SYSROOT)/usr/share/games/doom/
	cp ports/doom/doom1.wad $(SYSROOT)/usr/share/games/doom/

$(SYSROOT)/usr/bin: $(SYSROOT)/usr/bin/doom

clean-doom:
	make -C ports/doom/doomgeneric -f Makefile.bunnix clean
.PHONY: clean-doom
clean-ports: clean-doom

#### gzip

ports/build-gzip/gzip: $(SYSROOT)/usr/lib/libc.a