uirc/Makefile

30 lines
794 B
Makefile
Raw Normal View History

2022-03-07 16:12:40 -07:00
# makefile for uirc
2022-03-07 18:34:17 -07:00
# to configure install locations and compiler settings, see config.mk
include config.mk
2022-03-07 16:12:40 -07:00
SRC = uirc.c
uirc: ${SRC}
2022-03-07 18:34:17 -07:00
${CC} -o uirc -O ${SRC}
install: uirc
mkdir -p ${PREFIX}/bin
cp -f uirc ${PREFIX}/bin
chmod 755 ${PREFIX}/bin/uirc
2022-03-12 22:27:36 -07:00
mkdir -p ${LIB_PREFIX}/uirc
cp -f LICENSE ${LIB_PREFIX}/uirc
2022-03-07 18:34:17 -07:00
2022-03-12 22:27:36 -07:00
uninstall:
rm ${PREFIX}/bin/uirc
rm -r ${LIB_PREFIX}/uirc
test -s ${INCLUDE_PREFIX}/uirc || rm -r ${INCLUDE_PREFIX}/uirc
2022-03-07 16:12:40 -07:00
2022-03-12 22:27:36 -07:00
stb:
@echo "It is best to download the stb library from your system's package manager.
@echo "Press ENTER to manually install the stb headers needed. Otherwise, quit with ^C"
@read
mkdir -p ${INCLUDE_PREFIX}/uirc
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h -P /usr/include/uirc/stb_image.h
.PHONY: uirc install stb