restructured

This commit is contained in:
folkert van heusden 2023-03-27 13:02:46 +02:00
parent a3e10085c4
commit e0eff6e624
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
9 changed files with 13 additions and 15 deletions

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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");

View file

@ -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)

View file

@ -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)

View file

@ -1,3 +0,0 @@
cmake -DCMAKE_TOOLCHAIN_FILE=mingw64.cmake ..
make kek-win32