-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 779 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (22 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CC=gcc
CFLAGS=-g -Wall -Wextra -fsanitize=signed-integer-overflow,address,undefined,leak -pedantic-errors -fstack-protector
CLIBS=-lX11 -lcrypt
PROGRAMS = txstart txbar txlock txdm txwm
BUILD_DIR = build
TARGETS = $(addprefix $(BUILD_DIR)/, $(PROGRAMS))
all: $(BUILD_DIR) $(TARGETS)
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
$(BUILD_DIR)/txstart: utils/txstart.c core.c
$(CC) $(CFLAGS) -I. $^ -o $@ $(CLIBS)
$(BUILD_DIR)/txbar: utils/txbar.c core.c
$(CC) $(CFLAGS) -I. $^ -o $@ $(CLIBS)
$(BUILD_DIR)/txlock: utils/txlock.c core.c
$(CC) $(CFLAGS) -I. $^ -o $@ $(CLIBS)
$(BUILD_DIR)/txdm: utils/txdm.c core.c
$(CC) $(CFLAGS) -I. $^ -o $@ $(CLIBS)
$(BUILD_DIR)/txwm: utils/txwm.c core.c
$(CC) $(CFLAGS) -I. $^ -o $@ $(CLIBS)
clean:
rm -rf $(BUILD_DIR)
.PHONY: all clean