Added the devcpp/ subdirectory, containing two Dev-C++ projects corresponding to the SDL and PDCurses clients. The PDCurses project assumes curses.h and pdcurses.lib to be in "../../PDCurses/" and the SDL project assumes SDL's lib/ and include/ to be in "../../SDL-1.2.15/". Once either executables are compiled, PDCurses.dll and/or SDL.dll must be copied into the same directory as the corresponding executable.
parent
0c5dc4c822
commit
82e63acdc0
|
@ -0,0 +1,35 @@
|
|||
# Project: timesynk-pdcurses
|
||||
# Makefile created by Dev-C++ 5.4.2
|
||||
|
||||
CPP = g++.exe
|
||||
CC = gcc.exe
|
||||
WINDRES = windres.exe
|
||||
OBJ = ../main.o ../interface/curses.o ../net/sockets.o
|
||||
LINKOBJ = ../main.o ../interface/curses.o ../net/sockets.o
|
||||
LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc ../../PDCurses/pdcurses.lib
|
||||
INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../PDCurses"
|
||||
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../PDCurses"
|
||||
BIN = timesynk-pdcurses.exe
|
||||
CXXFLAGS = $(CXXINCS)
|
||||
CFLAGS = $(INCS)
|
||||
RM = rm -f
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before $(BIN) all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
${RM} $(OBJ) $(BIN)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
$(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
|
||||
|
||||
../main.o: ../main.c
|
||||
$(CC) -c ../main.c -o ../main.o $(CFLAGS)
|
||||
|
||||
../interface/curses.o: ../interface/curses.c
|
||||
$(CC) -c ../interface/curses.c -o ../interface/curses.o $(CFLAGS)
|
||||
|
||||
../net/sockets.o: ../net/sockets.c
|
||||
$(CC) -c ../net/sockets.c -o ../net/sockets.o $(CFLAGS)
|
|
@ -0,0 +1,122 @@
|
|||
[Project]
|
||||
FileName=timesynk-pdcurses.dev
|
||||
Name=timesynk-pdcurses
|
||||
Type=1
|
||||
Ver=2
|
||||
ObjFiles=
|
||||
Includes=..\..\PDCurses
|
||||
Libs=
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=
|
||||
CppCompiler=
|
||||
Linker=../../PDCurses/pdcurses.lib_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=
|
||||
ObjectOutput=
|
||||
LogOutput=
|
||||
LogOutputEnabled=0
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=timesynk-pdcurses.exe
|
||||
HostApplication=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
CommandLine=
|
||||
Folders=interface,net
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000000
|
||||
UnitCount=7
|
||||
|
||||
[VersionInfo]
|
||||
Major=1
|
||||
Minor=0
|
||||
Release=0
|
||||
Build=0
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=1.0.0.0
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=1.0.0.0
|
||||
AutoIncBuildNr=0
|
||||
SyncProduct=1
|
||||
|
||||
[Unit1]
|
||||
FileName=..\common.h
|
||||
CompileCpp=0
|
||||
Folder=timesynk-pdcurses
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit2]
|
||||
FileName=..\main.c
|
||||
CompileCpp=0
|
||||
Folder=timesynk-pdcurses
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit3]
|
||||
FileName=..\main.h
|
||||
CompileCpp=0
|
||||
Folder=timesynk-pdcurses
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit4]
|
||||
FileName=..\stubs.h
|
||||
CompileCpp=0
|
||||
Folder=timesynk-pdcurses
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit5]
|
||||
FileName=..\interface\curses.c
|
||||
CompileCpp=0
|
||||
Folder=interface
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit6]
|
||||
FileName=..\interface\curses.h
|
||||
CompileCpp=0
|
||||
Folder=interface
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit7]
|
||||
FileName=..\net\sockets.c
|
||||
CompileCpp=0
|
||||
Folder=net
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
[Editor_0]
|
||||
CursorCol=1
|
||||
CursorRow=1
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
Open=0
|
||||
Top=0
|
||||
[Editors]
|
||||
Order=
|
||||
Focused=-1
|
||||
[Editor_1]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=1
|
||||
CursorRow=1
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
[Editor_2]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=1
|
||||
CursorRow=1
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
[Editor_3]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_4]
|
||||
Open=0
|
||||
Top=0
|
||||
CursorCol=22
|
||||
CursorRow=35
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
[Editor_5]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_6]
|
||||
Open=0
|
||||
Top=0
|
|
@ -0,0 +1,122 @@
|
|||
[Project]
|
||||
FileName=timesynk-sdl.dev
|
||||
Name=timesynk-sdl
|
||||
Type=0
|
||||
Ver=2
|
||||
ObjFiles=
|
||||
Includes=..\..\SDL-1.2.15\include
|
||||
Libs=..\..\SDL-1.2.15\lib
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=
|
||||
CppCompiler=
|
||||
Linker=-lsdl -lSDLmain_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=
|
||||
ObjectOutput=
|
||||
LogOutput=
|
||||
LogOutputEnabled=0
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=timesynk-sdl.exe
|
||||
HostApplication=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
CommandLine=
|
||||
Folders=interface,net
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000000
|
||||
UnitCount=7
|
||||
|
||||
[VersionInfo]
|
||||
Major=1
|
||||
Minor=0
|
||||
Release=0
|
||||
Build=0
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=1.0.0.0
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=1.0.0.0
|
||||
AutoIncBuildNr=0
|
||||
SyncProduct=1
|
||||
|
||||
[Unit1]
|
||||
FileName=..\common.h
|
||||
CompileCpp=0
|
||||
Folder=timesynk-sdl
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit2]
|
||||
FileName=..\main.c
|
||||
CompileCpp=0
|
||||
Folder=timesynk-sdl
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit3]
|
||||
FileName=..\main.h
|
||||
CompileCpp=0
|
||||
Folder=timesynk-sdl
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit4]
|
||||
FileName=..\stubs.h
|
||||
CompileCpp=0
|
||||
Folder=timesynk-sdl
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit5]
|
||||
FileName=..\interface\sdl.c
|
||||
CompileCpp=0
|
||||
Folder=interface
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit6]
|
||||
FileName=..\interface\sdl.h
|
||||
CompileCpp=0
|
||||
Folder=interface
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[Unit7]
|
||||
FileName=..\net\sockets.c
|
||||
CompileCpp=0
|
||||
Folder=net
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
[Editor_0]
|
||||
CursorCol=1
|
||||
CursorRow=1
|
||||
TopLine=1
|
||||
LeftChar=1
|
||||
Open=0
|
||||
Top=0
|
||||
[Editors]
|
||||
Order=
|
||||
Focused=-1
|
||||
[Editor_1]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_2]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_3]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_4]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_5]
|
||||
Open=0
|
||||
Top=0
|
||||
[Editor_6]
|
||||
Open=0
|
||||
Top=0
|
|
@ -1,4 +1,4 @@
|
|||
#include <ncurses.h>
|
||||
#include <curses.h>
|
||||
#include "curses.h"
|
||||
#include "../main.h"
|
||||
#include "../common.h"
|
||||
|
@ -32,7 +32,7 @@ void interfaceLoop() {
|
|||
switch (key) {
|
||||
case 'q':
|
||||
case 'Q':
|
||||
is_running = false;
|
||||
is_running = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue