Commit 202a0ff3 authored by Mart Lubbers's avatar Mart Lubbers

Add library file and improve makefile

parent 64c37158
Pipeline #14908 passed with stage
in 1 minute and 43 seconds
......@@ -2,12 +2,14 @@ CLEAN_HOME?=/opt/clean
ifeq ($(OS), Windows_NT)
DETECTED_OS?=Windows
LIBFOLDER?=Libraries
else
DETECTED_OS?=POSIX
LIBFOLDER?=lib
endif
test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o
clm -dynamics -I $(DETECTED_OS) -I $(CLEAN_HOME)/lib/Platform -I $(CLEAN_HOME)/lib/Dynamics $(basename $<) -o $@
clm -I $(DETECTED_OS) -IL Platform $(basename $<) -o $@
Clean\ System\ Files/ctty.o: $(DETECTED_OS)/tty.c
mkdir -p Clean\ System\ Files
......@@ -19,9 +21,10 @@ Monitor.prj:
cpm project $@ set -h 2000m -s 20m -dynamics
cpm project $@ path add "$$PWD/POSIX"
install: Clean\ System\ Files/ctty.o
mkdir "$$CLEAN_HOME/lib/CleanSerial"
cp -R TTY.[id]cl iTasksTTY.[id]cl POSIX/Platform.[id]cl Clean\ System\ Files "$$CLEAN_HOME/lib/CleanSerial"
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"
clean:
$(RM) -r $(DETECTED_OS)/Clean\ System\ Files/* Clean\ System\ Files/* test
......@@ -7,7 +7,7 @@ import Text
import Platform
import code from "ctty."
import code from "ctty.o"
:: *TTY :== Int
......
kernel32.dll
QueryDosDeviceA@12
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