diff options
| author | Druid520 <r.ustydruid520@proton.me> | 2026-08-09 14:59:40 -0700 |
|---|---|---|
| committer | Druid520 <r.ustydruid520@proton.me> | 2026-08-09 14:59:40 -0700 |
| commit | a555dd7d7c93fc28e57748f57b7f7cd439bccd1e (patch) | |
| tree | 407d3bd21c9eab8f91860c8cf14bdd182583e4e5 /st-config.mk | |
| parent | 21f51f22586a8a71d0154c1db6e9ea0209f39b6a (diff) | |
MOD: update
Diffstat (limited to 'st-config.mk')
| -rw-r--r-- | st-config.mk | 36 |
1 files changed, 36 insertions, 0 deletions
| diff --git a/st-config.mk b/st-config.mk new file mode 100644 index 0000000..6055c4d --- /dev/null +++ b/st-config.mk | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | # st version | ||
| 2 | VERSION = 0.9.3 | ||
| 3 | |||
| 4 | # Customize below to fit your system | ||
| 5 | |||
| 6 | # paths | ||
| 7 | PREFIX = /usr/local | ||
| 8 | MANPREFIX = $(PREFIX)/share/man | ||
| 9 | |||
| 10 | X11INC = /usr/X11R6/include | ||
| 11 | X11LIB = /usr/X11R6/lib | ||
| 12 | |||
| 13 | PKG_CONFIG = pkg-config | ||
| 14 | |||
| 15 | # includes and libs | ||
| 16 | INCS = -I$(X11INC) \ | ||
| 17 | `$(PKG_CONFIG) --cflags fontconfig` \ | ||
| 18 | `$(PKG_CONFIG) --cflags freetype2` | ||
| 19 | LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \ | ||
| 20 | `$(PKG_CONFIG) --libs fontconfig` \ | ||
| 21 | `$(PKG_CONFIG) --libs freetype2` | ||
| 22 | |||
| 23 | # flags | ||
| 24 | STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 | ||
| 25 | STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=native -mtune=native -pipe -flto -O2 | ||
| 26 | STLDFLAGS = $(LIBS) $(LDFLAGS) -march=native -mtune=native -pipe -flto -O2 | ||
| 27 | |||
| 28 | # OpenBSD: | ||
| 29 | #CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE | ||
| 30 | #LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \ | ||
| 31 | # `$(PKG_CONFIG) --libs fontconfig` \ | ||
| 32 | # `$(PKG_CONFIG) --libs freetype2` | ||
| 33 | #MANPREFIX = ${PREFIX}/man | ||
| 34 | |||
| 35 | # compiler and linker | ||
| 36 | # CC = c99 | ||
