blob: 059703f265bb0ceb4dd7ab2c11f85cb06b20d88e (
plain)
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
34
35
36
37
38
39
|
# See COPYING for copyright and license details
include ../config.mk
TARGET=dwbem
BASEDIR = ..
CFLAGS += -I$(BASEDIR)/$(DWB_LIB_DIRS)
OBJ = $(patsubst %.c, %.o, $(wildcard *.c)) $(BASEDIR)/$(OBJLIB)
SYSTEM_EXTENSION_DIR=$(PREFIX)/share/dwb/extensions
CFLAGS := $(CFLAGS)
CFLAGS += -std=c99
CFLAGS += -Wall -g
CFLAGS += -Wextra -Werror=format-security
CFLAGS += $(shell pkg-config --cflags $(LIBS))
CFLAGS += -DSYSTEM_EXTENSION_DIR=\"$(SYSTEM_EXTENSION_DIR)\"
LDFLAGS := $(LDFLAGS)
LDFLAGS += $(shell pkg-config --libs $(LIBS))
all: $(TARGET)
$(TARGET): $(OBJ)
@echo $(CC) -o $@
@$(CC) $(OBJ) -o $@ $(LDFLAGS)
%.o: %.c
@echo $(CC) $<
@$(CC) $(CFLAGS) -c $< -o $@ $(CPPFLAGS)
clean:
rm -f $(TARGET) $(OBJ)
.PHONY: clean
|