aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 9aa9a5918e2a0f23d3e6d2987f4a5e60196e75aa (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
include config.mk

MAIN=dwmclock
SRC=dwmclock.c
OBJ=$(SRC:.c=.o)

all: $(SRC) $(MAIN)

$(MAIN): $(OBJ)
	$(CC) $(LDFLAGS) -o $@ $(OBJ)

.c.o:
	$(CC) -c $(CFLAGS) $< -o $@

clean:
	-rm -f $(MAIN) $(OBJ)

install: $(MAIN)
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp $(MAIN) $(DESTDIR)$(PREFIX)/bin/$(MAIN)

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/$(MAIN)

.PHONY: all clean install uninstall