summaryrefslogtreecommitdiff
path: root/tools/Makefile
blob: 7552350e0997d3725e06b7146eee45aaf01bc297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TARGET=dwbem

CFLAGS += -g -std=c99 -Wall
LDFLAGS += -lreadline

all: $(TARGET)

dwb_em: dwb_em.in
	@echo gen $@
	$(shell sed 's#@SYSTEM_DIR@#$(DATADIR)/$(REAL_NAME)/$(EXTENSIONDIR)#' $< > $@)
	@chmod 755 $@

$(TARGET): dwbem.c
	@echo $(CC) $< -o $@
	@$(CC) $(CFLAGS) $(LDFLAGS) $(shell pkg-config --cflags --libs libsoup-2.4) $< -o $@

clean: 
	rm -f $(TARGET)

.PHONY: clean