revert: i think doing the env script in the tty instead of dwm breaks my stuff but I had to rebase my thing again, on the other hand - st: ligatures added

This commit is contained in:
DarthMooMancer
2025-09-17 21:02:15 -04:00
parent 805d64bb14
commit 21f42fad07
25 changed files with 6927 additions and 134 deletions
+45
View File
@@ -0,0 +1,45 @@
.POSIX:
PREFIX = /usr/local
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
PKG_CONFIG = pkg-config
# includes and libs
INCS = $(shell pkg-config --cflags x11 fontconfig freetype2) # -I$(X11INC)
LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
`$(PKG_CONFIG) --libs fontconfig` \
`$(PKG_CONFIG) --libs freetype2`
# flags
STCPPFLAGS = -D_XOPEN_SOURCE=600
STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
STLDFLAGS = $(LIBS) $(LDFLAGS)
# compiler and linker
CC = gcc
SRC = st.c x.c
OBJ = $(SRC:.c=.o)
.c.o:
$(CC) $(STCFLAGS) -c $<
st.o: config.h st.h win.h
x.o: arg.h config.h st.h win.h
$(OBJ): config.h
st: $(OBJ)
$(CC) -o $@ $(OBJ) $(STLDFLAGS)
clean:
rm -f st $(OBJ)
install: st
install -Dm755 st $(DESTDIR)$(PREFIX)/bin/st
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/st