restructured
This commit is contained in:
parent
a3e10085c4
commit
e0eff6e624
9 changed files with 13 additions and 15 deletions
|
@ -55,7 +55,7 @@ add_executable(
|
||||||
tm-11.cpp
|
tm-11.cpp
|
||||||
tty.cpp
|
tty.cpp
|
||||||
utils.cpp
|
utils.cpp
|
||||||
windows/win32.cpp
|
win32.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
include(CheckIPOSupported)
|
include(CheckIPOSupported)
|
||||||
|
|
15
README.md
15
README.md
|
@ -3,19 +3,22 @@ Kek is a DEC PDP-11 (11/70) emulator capable of running UNIX-v6.
|
||||||
|
|
||||||
To build for e.g. linux:
|
To build for e.g. linux:
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
make kek
|
make kek
|
||||||
|
|
||||||
|
Required:
|
||||||
|
* libncursesw5-dev
|
||||||
|
|
||||||
To build for e.g. windows:
|
To build for e.g. windows:
|
||||||
|
|
||||||
|
mkdir build-win32
|
||||||
|
cd build-win32
|
||||||
|
cmake -DCMAKE_TOOLCHAIN_FILE=../mingw64.cmake ..
|
||||||
make kek-win32
|
make kek-win32
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Required:
|
|
||||||
|
|
||||||
* libncursesw5-dev
|
|
||||||
|
|
||||||
|
|
||||||
To run a disk image:
|
To run a disk image:
|
||||||
|
|
||||||
./kek -R filename.rk -b 2> /dev/null
|
./kek -R filename.rk -b 2> /dev/null
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include "bus.h"
|
#include "bus.h"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#include "windows/win32.h"
|
#include "win32.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
2
log.cpp
2
log.cpp
|
@ -12,7 +12,7 @@
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "windows/win32.h"
|
#include "win32.h"
|
||||||
|
|
||||||
|
|
||||||
static const char *logfile = strdup("/tmp/myip.log");
|
static const char *logfile = strdup("/tmp/myip.log");
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
# cmake -DCMAKE_TOOLCHAIN_FILE=mingw64.cmake ..
|
|
||||||
|
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
|
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include "windows/win32.h"
|
#include "win32.h"
|
||||||
|
|
||||||
|
|
||||||
void setBit(uint16_t & v, const int bit, const bool vb)
|
void setBit(uint16_t & v, const int bit, const bool vb)
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=mingw64.cmake ..
|
|
||||||
|
|
||||||
make kek-win32
|
|
Loading…
Add table
Reference in a new issue