shufflecake/Makefile
Tommaso Gagliardoni 894db78bdd refactor:Unified Makefiles
Created main (root-level) Makefile which calls the related ones for building together kernel module and userland tool
2023-06-06 11:50:19 +02:00

52 lines
1.8 KiB
Makefile

# Copyright The Shufflecake Project Authors (2022)
# Copyright The Shufflecake Project Contributors (2022)
# Copyright Contributors to the The Shufflecake Project.
# See the AUTHORS file at the top-level directory of this distribution and at
# <https://www.shufflecake.net/permalinks/shufflecake-userland/AUTHORS>
# This file is part of the program shufflecake-c, which is part of the Shufflecake
# Project. Shufflecake is a plausible deniability (hidden storage) layer for
# Linux. See <https://www.shufflecake.net>.
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version. This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details. You should have received a copy of the
# GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.
# Just a passthrough Makefile for both kernel module and userland tool
default:
make -C dm-sflc
cp dm-sflc/bin/dm-sflc.ko ./dm-sflc.ko
make -C userland
cp userland/bin/proj_build/shufflecake ./shufflecake
debug:
make -C dm-sflc debug
cp dm-sflc/bin/dm-sflc.ko ./dm-sflc.ko
make -C userland debug
cp userland/bin/proj_build/shufflecake ./shufflecake
install:
make -C dm-sflc install
cp dm-sflc/bin/dm-sflc.ko ./dm-sflc.ko
make -C userland install
cp userland/bin/proj_build/shufflecake ./shufflecake
clean:
make -C dm-sflc clean
rm ./dm-sflc.ko
make -C userland clean
rm ./shufflecake