diff --git a/Makefile b/Makefile index 8a74843..4e53739 100644 --- a/Makefile +++ b/Makefile @@ -20,9 +20,12 @@ SOURCE := $(addprefix ${SOURCE.d}, ${SOURCE}) HEADER := config.inc log.h bot.h HEADER := $(addprefix ${SOURCE.d}, ${HEADER}) -${OUT}: ${SOURCE} ${HEADER} +${OUT}: ${CC} ${CFLAGS} -o $@ ${SOURCE} ${LDLIBS} +static: ${SOURCE} ${HEADER} + ${CC} -static ${CFLAGS} $$(pkg-config --libs openssl) -o $@ ${SOURCE} ${LDLIBS} + run: ${OUT} ${OUT} irc.rizon.net:6665 "#/g/test" @@ -31,6 +34,7 @@ test: ${OUT} install: m4 script/hibot.m4 > ${INSTALL_TARGET} + chmod 755 ${INSTALL_TARGET} clean: -rm ${OUT}