Skip to content

Commit

Permalink
Ported code
Browse files Browse the repository at this point in the history
  • Loading branch information
aristarh2704 committed Nov 8, 2019
1 parent 4fed3d5 commit 60dbc84
Show file tree
Hide file tree
Showing 13 changed files with 3,690 additions and 0 deletions.
339 changes: 339 additions & 0 deletions COPYING

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
OUTFILE = bin/21days
CXX = g++
OBJS = obj/main.o obj/game.o obj/interface.o obj/sys.o

CXXFLAGS = -Wno-write-strings

all: $(OUTFILE)

dirs:
test -d bin || mkdir -p bin
test -d obj || mkdir -p obj

$(OUTFILE): dirs $(OBJS)
$(CXX) -o $(OUTFILE) $(OBJS)

obj/%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@ -D__linux__

clean:
rm -f $(OBJS) $(OUTFILE)
rm -rf bin
rm -rf obj

rebuild: clean $(OUTFILE)

.PHONY: dirs clean rebuild
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# 21days
Game "21days" ported to Linux from KolibriOS
Game for programmers, only on Russian
It's needed to change font size for better looking
7 changes: 7 additions & 0 deletions Tupfile.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if tup.getconfig("NO_GCC") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_menuetlibc.lua")
CFLAGS = CFLAGS .. " -Wno-write-strings -D _KOS32 "
compile_gcc{"main.cpp", "game.cpp", "interface.cpp", "sys.cpp"}
link_gcc("21days")
Loading

0 comments on commit 60dbc84

Please sign in to comment.