14 lines
456 B
Bash
Executable file
14 lines
456 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -ex;
|
|
|
|
PROTOCOL_IMPLEMENTATIONS="wayland-protos/wlr-output-management-unstable-v1.c"
|
|
SOURCES="main.c output_manager.c accel_monitor.c usb_device_detection.c"
|
|
CFLAGS="-std=c2x -Wall -Wextra -pedantic $CFLAGS -Iwayland-protos"
|
|
LIBS="-lwayland-client -lusb-1.0 $PROTOCOL_IMPLEMENTATIONS"
|
|
OUTPUT=convertablet
|
|
|
|
SOURCES_PATH=""
|
|
for file in $SOURCES; do SOURCES_PATH="$SOURCES_PATH daemon/$file"; done;
|
|
|
|
clang $CFLAGS $LIBS $SOURCES_PATH -o $OUTPUT
|