move env to a nix flake

This commit is contained in:
2026-09-27 10:18:24 +02:00
parent 52a53f773a
commit b773e55eb2
8 changed files with 97 additions and 45 deletions
+10 -1
View File
@@ -1,7 +1,16 @@
PREFIX := /usr
CC := cc
CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os
LDFLAGS := -lX11
LDFLAGS :=
PKG_CONFIG := pkg-config
# compiler and linker flags
X11INC = $(shell $(PKG_CONFIG) --cflags x11 xft xrandr xinerama fontconfig freetype2)
X11LIB = $(shell $(PKG_CONFIG) --libs x11 xft xrandr xinerama fontconfig freetype2)
CFLAGS += $(X11INC)
LDFLAGS += $(X11LIB)
# FreeBSD (uncomment)
#LDFLAGS += -L/usr/local/lib -I/usr/local/include