summaryrefslogtreecommitdiff
path: root/Makefile
blob: fbf7414a460b5b492c27c392a04dc3a31745c6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# makefile for uirc
# to configure install locations and compiler settings, see config.mk
include config.mk

SRC = uirc.c

uirc: ${SRC}
	${CC}${OPTIONS} -lcurl -lm -o uirc -O3 ${SRC}

debug: uirc
	${CC} -g${OPTIONS} -lcurl -lm -o d_uirc -O3 ${SRC} 
	gdb d_uirc
	rm d_uirc

install: uirc
	mkdir -p ${PREFIX}
	cp -f uirc ${PREFIX}
	chmod 755 ${PREFIX}/uirc

uninstall:
	rm ${PREFIX}/uirc
	test -s ${INCLUDE_PREFIX}/uirc && rm -r ${INCLUDE_PREFIX}/uirc

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 instead. Otherwise, quit with ^C"
	@read
	mkdir -p ${INCLUDE_PREFIX}/stb
	wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h -P ${INCLUDE_PREFIX}/stb

.PHONY: uirc install stb