47 lines · 891 B · Makefile
RawDownload
TARGET=ttfsDESTDIR?=PREFIX?=/usr/localBIN=${DESTDIR}${PREFIX}/binMAN=${DESTDIR}${PREFIX}/share/man/man1SDL_TTF_CFLAGS=$$(pkg-config --cflags sdl2 SDL2_ttf)SDL_TTF_LDFLAGS=$$(pkg-config --libs sdl2 SDL2_ttf)CFLAGS?=-ggdb -O2CFLAGS+=-Wall -Wextra ${SDL_TTF_CFLAGS}LDFLAGS?=LDFLAGS+=${SDL_TTF_LDFLAGS} OBJS=\	charset.o\	parg.o\	subfont.o\	${TARGET}.o\ .PHONY: all default install uninstall clean all: default default: ${TARGET} install: ${TARGET}	install -d ${BIN}	install -m 755 ${TARGET} ${BIN}	install -d ${MAN}	install -m 644 ${TARGET}.1 ${MAN} uninstall:	rm -f ${BIN}/${TARGET} ${MAN}/${TARGET}.1 clean:	rm -f ${TARGET} ${OBJS} ${TARGET}: ${OBJS}	${CC} -o $@ ${OBJS} ${LDFLAGS} .SUFFIXES: .c .o.c.o:	${CC} -o $@ -c $< ${CFLAGS} pjw.h: pjw.ttf	od -A n -t x1 -v < pjw.ttf | sed -E 's/^[ ]+/	0x/g;s/[ ]+/, 0x/g;s/$$/,/g' > $@ || rm -f $@ ${TARGET}.o: pjw.h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t