move env to a nix flake
This commit is contained in:
+10
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user