We planned to upgrade GitLab and Mattermost to the latest version this Friday morning. Expect some downtime!

Commit ba88df68 authored by Mart Lubbers's avatar Mart Lubbers

notes about windows

parent 202a0ff3
Pipeline #14911 passed with stage
in 1 minute and 36 seconds
......@@ -3,6 +3,7 @@ CLEAN_HOME?=/opt/clean
ifeq ($(OS), Windows_NT)
DETECTED_OS?=Windows
LIBFOLDER?=Libraries
CC=gcc
else
DETECTED_OS?=POSIX
LIBFOLDER?=lib
......@@ -23,8 +24,8 @@ Monitor.prj:
install: Clean\ System\ Files/ctty.o $(LIBFILE)
mkdir $(CLEAN_HOME)/$(LIBFOLDER)/CleanSerial
cp -R TTY.[id]cl iTasksTTY.[id]cl $(DETECTED_OS)/Platform.[id]cl "Clean System Files" $(CLEAN_HOME)/lib/CleanSerial
cp -f $(DETECTED_OS)/CleanSerial_library "$(CLEAN_HOME)/lib/CleanSerial"
cp -R TTY.[id]cl iTasksTTY.[id]cl $(DETECTED_OS)/Platform.[id]cl "Clean System Files" $(CLEAN_HOME)/$(LIBFOLDER)/CleanSerial
cp -f $(DETECTED_OS)/CleanSerial_library "$(CLEAN_HOME)/$(LIBFOLDER)/CleanSerial"
clean:
$(RM) -r $(DETECTED_OS)/Clean\ System\ Files/* Clean\ System\ Files/* test
......@@ -2,6 +2,9 @@
Serial port library for [clean](http://clean.cs.ru.nl). Build with `make`.
Linux and mac are fully supported. Windows support is only available at the
moment as a stub. The functions are not implemented so it will crash.
## How to use
TODO
......@@ -15,10 +18,8 @@ IDE/`cpm` or `clm`.
Run `make install`.
### Windows
Run `make install` from a mingw msys shell.
Windows support is only available at the moment as a stub.
The functions are not implemented so it will crash.
Not sure, if I compile the object file with mingw it doesn't work. Cross
compiling works...
### Build the windows version on a linux machine
### Build the windows version on another OS
Install `gcc-mingw-w64` and run `DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc make`
......@@ -15,6 +15,7 @@ rm -rf "./Clean System Files/*"
DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc make -B 'Clean System Files/ctty.o'
mv 'Clean System Files' CleanSerial
cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial
cp Windows/CleanSerial_library CleanSerial/Clean\ System\ Files
zip -rv CleanSerial-win64.zip CleanSerial
rm -r CleanSerial
......@@ -24,5 +25,6 @@ rm -rf "./Clean System Files/*"
DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc-win32 make -B 'Clean System Files/ctty.o'
mv 'Clean System Files' CleanSerial
cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial
cp Windows/CleanSerial_library CleanSerial/Clean\ System\ Files
zip -rv CleanSerial-win32.zip CleanSerial
rm -r CleanSerial
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment