]> git.plutz.net Git - stereofy/blob - Makefile
cleaned up fprintf function, fixing last compiler warning, enabled hard optimization...
[stereofy] / Makefile
1 CC = gcc
2 CCFLAGS = -Wall -O3
3 BINDIR = /usr/local/bin
4
5 all: anaglyph
6
7 ${BINDIR}:
8         echo -e "\n\n====\n The specified executable directory (${BINDIR}) does not exist.\n Please adjust the BINDIR variable in the Makefile.\n Alternatively create the directory and make sure it is in the users executable path (\$$PATH)"
9         exit 1
10
11 anaglyph: anaglyph.c
12         ${CC} ${CCFLAGS} -oanaglyph anaglyph.c
13
14 install: ${BINDIR} anaglyph stereofy.sh
15         cp anaglyph ${BINDIR}/anaglyph
16         chmod a+x ${BINDIR}/anaglyph
17         cp stereofy.sh ${BINDIR}/stereofy
18         chmod a+rx ${BINDIR}/stereofy
19
20 clean:
21         rm anaglyph