diff options
author | mutantturkey <crazycal00@gmail.com> | 2010-04-21 17:46:39 -0400 |
---|---|---|
committer | mutantturkey <crazycal00@gmail.com> | 2010-04-21 17:46:39 -0400 |
commit | ff046f06fd21e48fda0777fde06fdb01bef3f1f3 (patch) | |
tree | 61312e503eddb4b92578d8324f07cf9e00b205e5 /Makefile |
initially putting on github
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c3db02a --- /dev/null +++ b/Makefile @@ -0,0 +1,50 @@ +# surf - simple browser +# See LICENSE file for copyright and license details. + +include config.mk + +SRC = mocicon.c +OBJ = ${SRC:.c=.o} + +all: options mocicon + +options: + @echo mocicon build options: + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" + +.c.o: + @echo CC $< + @${CC} -c ${CFLAGS} $< + +${OBJ}: config.mk + + +mocicon: ${OBJ} + @echo CC -o $@ + @${CC} -o $@ mocicon.o ${LDFLAGS} + +clean: + @echo cleaning + @rm -f mocicon ${OBJ} mocicon-${VERSION}.tar.gz + +dist: clean + @echo creating dist tarball + @mkdir -p mocicon-${VERSION} + @cp -R CHANGELOG Makefile README config.mk ${SRC} mocicon-${VERSION} + @tar -cf mocicon-${VERSION}.tar mocicon-${VERSION} + @bzip2 mocicon-${VERSION}.tar + @rm -rf mocicon-${VERSION} + +install: all + @echo installing executable file to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f mocicon ${DESTDIR}${PREFIX}/bin + @chmod 755 ${DESTDIR}${PREFIX}/bin/mocicon + +uninstall: + @echo removing executable file from ${DESTDIR}${PREFIX}/bin + @rm -f ${DESTDIR}${PREFIX}/bin/mocicon + +.PHONY: all options clean dist install uninstall |