diff Makefile @ 0:ee781c291790

Initial
author Atarwn Gard <a@qwa.su>
date Fri, 10 Oct 2025 13:40:59 +0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Fri Oct 10 13:40:59 2025 +0500
@@ -0,0 +1,18 @@
+TARGET = gbwm
+CC ?= cc
+CFLAGS ?= -O2 -Wall
+PREFIX ?= /usr/local
+
+$(TARGET):
+	$(CC) $(CFLAGS) gbwm.c -o $@ -lX11 -lXft -I/usr/include/freetype2/
+
+.PHONY: install uninstall clean
+
+install: $(TARGET)
+	install -Dm755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
+
+uninstall:
+	rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
+
+clean:
+	rm -f $(TARGET)
\ No newline at end of file