uirc/Makefile

37 lines
877 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}
${CC} ${OPTIONS} -o uirc ${SRC} -lcurl -lm
2022-03-22 14:22:32 -06:00
debug: uirc
${CC} -g ${OPTIONS} -o d_uirc -O3 ${SRC} -lcurl -lm
2022-03-22 14:22:32 -06:00
gdb d_uirc
rm d_uirc
2022-03-07 18:34:17 -07:00
clean:
rm ./uirc
2022-03-07 18:34:17 -07:00
install: uirc
mkdir -p ${PREFIX}/bin
cp -f uirc ${PREFIX}/bin
chmod 755 ${PREFIX}/bin/uirc
mkdir -p ${MAN_PREFIX}/man1
cp -f uirc.1 ${MAN_PREFIX}/man1
2022-03-07 18:34:17 -07:00
2022-03-12 22:27:36 -07:00
uninstall:
rm ${PREFIX}/bin/uirc
rm ${MAN_PREFIX}/man1/uirc.1
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."
@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
2022-03-25 23:09:18 -06:00
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h -P ${INCLUDE_PREFIX}/stb
2022-03-12 22:27:36 -07:00
.PHONY: uirc clean install uninstall stb