-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fed3d5
commit 60dbc84
Showing
13 changed files
with
3,690 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Oops, something went wrong.