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-23 20:45:20 -06:00
|
|
|
${CC} -l curl -o uirc -O ${SRC} -lm
|
2022-03-22 14:22:32 -06:00
|
|
|
|
|
|
|
debug: uirc
|
|
|
|
${CC} -g -o d_uirc -O ${SRC} -lm
|
|
|
|
gdb d_uirc
|
|
|
|
rm d_uirc
|
2022-03-07 18:34:17 -07:00
|
|
|
|
|
|
|
install: uirc
|
2022-03-12 22:42:44 -07:00
|
|
|
mkdir -p ${PREFIX}
|
|
|
|
cp -f uirc ${PREFIX}
|
|
|
|
chmod 755 ${PREFIX}/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:
|
2022-03-12 22:42:44 -07:00
|
|
|
rm ${PREFIX}/uirc
|
2022-03-12 22:27:36 -07:00
|
|
|
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:
|
2022-03-14 14:31:03 -06:00
|
|
|
@echo "It is best to download the stb library from your system's package manager."
|
2022-03-15 10:52:23 -06:00
|
|
|
@echo "Press ENTER to manually install the stb headers needed instead. Otherwise, quit with ^C"
|
2022-03-12 22:27:36 -07:00
|
|
|
@read
|
2022-03-14 14:31:03 -06:00
|
|
|
mkdir -p ${INCLUDE_PREFIX}/stb
|
|
|
|
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h -P /usr/include/stb/stb_image.h
|
2022-03-12 22:27:36 -07:00
|
|
|
|
|
|
|
.PHONY: uirc install stb
|