ops(MP/daemon): add daemon build system
This commit is contained in:
4
src/06-mini-project/.gitignore
vendored
4
src/06-mini-project/.gitignore
vendored
@@ -4,4 +4,6 @@
|
||||
*.mod.c
|
||||
*.mod.o
|
||||
*.ko.cmd
|
||||
*.mod.cmd
|
||||
*.mod.cmd
|
||||
|
||||
daemon/daemon
|
||||
7
src/06-mini-project/daemon/Makefile
Normal file
7
src/06-mini-project/daemon/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
EXE=daemon
|
||||
SRCS=$(shell find . -name "*.c")
|
||||
LDFLAGS+=-lpthread
|
||||
EXTRA_CFLAGS+=-I.
|
||||
|
||||
# Include the standard application Makefile for the CSEL1 labs
|
||||
include ../../appl.mk
|
||||
9
src/06-mini-project/daemon/justfile
Normal file
9
src/06-mini-project/daemon/justfile
Normal file
@@ -0,0 +1,9 @@
|
||||
@default:
|
||||
just --list
|
||||
|
||||
@build:
|
||||
make
|
||||
|
||||
@clean:
|
||||
make clean
|
||||
rm -f -- daemon
|
||||
@@ -1,13 +1,16 @@
|
||||
mod kernel
|
||||
mod daemon
|
||||
|
||||
@default:
|
||||
just --list
|
||||
|
||||
@build:
|
||||
just kernel::build
|
||||
just daemon::build
|
||||
|
||||
@clean:
|
||||
just kernel::clean
|
||||
just daemon::clean
|
||||
rm -rf build
|
||||
rm -rf .obj
|
||||
rm -f -- mini-project
|
||||
|
||||
Reference in New Issue
Block a user