Mercurial > gbwm
comparison Makefile @ 10:77da93f91cbc default tip
i was wrong about this (Makefile)
author | Atarwn Gard <a@qwa.su> |
---|---|
date | Mon, 13 Oct 2025 11:37:26 +0500 |
parents | 1d9dacd8fe55 |
children |
comparison
equal
deleted
inserted
replaced
9:1d9dacd8fe55 | 10:77da93f91cbc |
---|---|
3 HGVERSION = $(shell hg log -r . --template "{latesttag}-{latesttagdistance}-{node|short}" 2>/dev/null) | 3 HGVERSION = $(shell hg log -r . --template "{latesttag}-{latesttagdistance}-{node|short}" 2>/dev/null) |
4 VERSION = $(if $(HGVERSION),$(HGVERSION),dev) | 4 VERSION = $(if $(HGVERSION),$(HGVERSION),dev) |
5 CFLAGS ?= -O3 -std=c99 -Wall -DVERSION=\"$(VERSION)\" | 5 CFLAGS ?= -O3 -std=c99 -Wall -DVERSION=\"$(VERSION)\" |
6 PREFIX ?= /usr/local | 6 PREFIX ?= /usr/local |
7 | 7 |
8 build: config.h | 8 $(TARGET): config.h |
9 $(CC) $(CFLAGS) gbwm.c -o $@ -lX11 -lXft -I/usr/include/freetype2/ -lXtst | 9 $(CC) $(CFLAGS) gbwm.c -o $@ -lX11 -lXft -I/usr/include/freetype2/ -lXtst |
10 | 10 |
11 config.h: default.config.h | 11 config.h: default.config.h |
12 cp default.config.h config.h | 12 cp default.config.h config.h |
13 | 13 |