Skip to content

Commit

Permalink
Switch to SDK-compatible build
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevault committed Oct 14, 2014
1 parent f4b80ad commit 8f7de20
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.knightos/
bin/
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2014 The KnightOS Group

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 changes: 8 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
OUTDIR:=bin/
BINDIR:=$(OUTDIR)bin/
include .knightos/variables.make

DEPENDENCIES=../corelib/
# This is a list of files that need to be added to the filesystem when installing your program
ALL_TARGETS:=$(BIN)threadlist

all: package
# This is all the make targets to produce said files
$(BIN)threadlist: main.asm
mkdir -p $(BIN)
$(AS) $(ASFLAGS) --listing $(OUT)main.list main.asm $(BIN)threadlist

package: $(BINDIR)threadlist
kpack threadlist-0.1.0.pkg $(OUTDIR)

$(BINDIR)threadlist: threadlist.asm
mkdir -p $(BINDIR)
$(AS) $(ASFLAGS) --define "$(PLATFORM)" --include "$(INCLUDE);$(PACKAGEPATH)/threadlist/;$(DEPENDENCIES)" threadlist.asm $(BINDIR)threadlist

clean:
rm -rf $(OUTDIR)
rm -rf threadlist-0.1.0.pkg

install:
kpack -e -s threadlist-0.1.0.pkg $(PREFIX)

.PHONY: all clean
include .knightos/sdk.make
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# threadlist

KnightOS application switcher.

## Compiling

First, install the [KnightOS SDK](http://www.knightos.org/sdk).

$ knightos init
$ make
$ make run # to test
$ make package # to produce an installable package

## Installing

Use `make package` to get a package that you can install.

## Contributing

This project follows the same standards for contribution as the rest of the KnightOS userspace.
These standards are documented [at KnightOS/KnightOS on GitHub](https://github.com/KnightOS/KnightOS/blob/master/CONTRIBUTING).
File renamed without changes.
1 change: 1 addition & 0 deletions package.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ repo=core
version=1.0.0
description=KnightOS thread switching application
copyright=MIT/X11
-sdk-site-packages=core/castle

0 comments on commit 8f7de20

Please sign in to comment.