From 1c3039d21a53d533991a316816d0b7a5c5fdbc51 Mon Sep 17 00:00:00 2001 From: Shivesh Mandalia Date: Sat, 11 Feb 2023 20:49:06 +0000 Subject: compile with gcc, fix compile error, restore st desktop install --- Makefile | 5 ++--- config.h | 2 +- config.mk | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 50112f1..5152b8b 100644 --- a/Makefile +++ b/Makefile @@ -50,12 +50,11 @@ install: st tic -sx st.info @echo Please see the README file regarding the terminfo entry of st. mkdir -p $(DESTDIR)$(PREFIX)/share/applications - # Use tabbed to launch st - # cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications + cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/st rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 - # rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop + rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop .PHONY: all options clean dist install uninstall diff --git a/config.h b/config.h index e14c6bd..96e97f4 100644 --- a/config.h +++ b/config.h @@ -138,7 +138,7 @@ static const char *colorname[] = { */ unsigned int defaultfg = 258; unsigned int defaultbg = 259; -static unsigned int defaultcs = 256; +unsigned int defaultcs = 256; static unsigned int defaultrcs = 257; /* diff --git a/config.mk b/config.mk index c56c4bd..00977b5 100644 --- a/config.mk +++ b/config.mk @@ -38,4 +38,4 @@ STLDFLAGS = $(LIBS) $(LDFLAGS) #MANPREFIX = ${PREFIX}/man # compiler and linker -CC = tcc +CC = gcc -- cgit v1.2.3