Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import st as contrib submodule #1416

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ba2724f
contrib/st: add submodule
panantoni01 Aug 13, 2023
a11d772
contrib/st: add Makefile
panantoni01 Aug 13, 2023
c693804
contrib/st: add config.patch
panantoni01 Aug 14, 2023
1e6beb6
contrib/st: add font.c.patch
panantoni01 Aug 14, 2023
0d131ee
contrib/st: add font.h.patch
panantoni01 Aug 14, 2023
13b2af5
contrib/st: add input.c.patch
panantoni01 Aug 14, 2023
b429245
contrib/st: add input.h.patch
panantoni01 Aug 14, 2023
eba05a5
contrib/st: add kbio.patch
panantoni01 Aug 14, 2023
3841630
contrib/st: add kdbtable.patch
panantoni01 Aug 14, 2023
f4de9eb
contrib/st: add st.c.patch
panantoni01 Aug 17, 2023
a6f559c
contrib/st: add x.c.patch
panantoni01 Aug 18, 2023
96e72ca
fb: add VSCREENINFO ioctls
panantoni01 Aug 18, 2023
52227b8
[libc] Add pselect stub
panantoni01 Aug 18, 2023
7509b56
[libc] Add tcsendbreak stub
panantoni01 Aug 19, 2023
4d24c4a
contrib/st: generate files to build/ directory
panantoni01 Aug 27, 2023
53b6777
Merge branch 'master' into new-st
panantoni01 Nov 22, 2023
84a561c
etc: add spleen font
panantoni01 Nov 27, 2023
e341afa
[libc] add pselect
panantoni01 Nov 27, 2023
f9ff401
etc/Makefile: add font file to FILES
panantoni01 Nov 28, 2023
4060a10
Merge branch 'master' into new-st
panantoni01 Jan 9, 2024
ce00054
Merge branch 'master' into new-st
panantoni01 Jan 24, 2024
e3b3b83
Merge branch 'master' into new-st
panantoni01 Feb 9, 2024
428ff7a
contrib/st: change fb_dev to /dev/vga
panantoni01 Feb 10, 2024
658f3a4
Get rid of fb_var_screeninfo
panantoni01 Feb 12, 2024
4ad3959
contrib/st: open fb_dev in O_WRONLY mode
panantoni01 Feb 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@
path = contrib/sinit/sinit
url = git://git.suckless.org/sinit
ignore = dirty
[submodule "contrib/st/st"]
path = contrib/st/st
url = https://git.suckless.org/st
2 changes: 1 addition & 1 deletion contrib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

TOPDIR = $(realpath ..)

SUBDIR = atto lua sbase sinit ubase # doom mish evtest
SUBDIR = atto lua sbase sinit st ubase # doom mish evtest

all: build

Expand Down
45 changes: 45 additions & 0 deletions contrib/st/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
TOPDIR = $(realpath ../..)

NEW_SRC = font.c input.c
SRC = st.c x.c
HDR = arg.h st.h win.h

PROGRAM = st
LDLIBS = -lutil
BINDIR = bin
BUILDDIR = build/
SOURCES = $(addprefix st/,$(SRC)) $(addprefix $(BUILDDIR)st/,$(NEW_SRC))
FORMAT-EXCLUDE = $(addprefix st/,$(SRC)) $(addprefix st/,$(HDR))

include $(TOPDIR)/build/build.prog.mk

# Rules for newly created source files:

define new_src_build =
$$(addprefix $(BUILDDIR)st/,$(1)): build-before
endef

$(foreach new_src,$(NEW_SRC),$(eval $(call new_src_build,$(new_src))))

define new_src_include =
CFLAGS.$(BUILDDIR)st/$(1) += -Ist/
endef

$(foreach new_src,$(NEW_SRC),$(eval $(call new_src_include,$(new_src))))

# Main rules for downloading st and patching:

download-here: st/.git

build-before: quilt-patch

clean-here: quilt-unpatch

# Rules for generating config.h:

$(OBJECTS): $(BUILDDIR)st/config.h

$(BUILDDIR)%.h: %.def.h
cp $< $@

CPPFLAGS += -I$(BUILDDIR)/st
Loading
Loading