SILC_INCLUDE_PATH = /usr/include/silc SILC_LIB_PATH = /usr/lib64 CFLAGS += -std=c99 -g -I${SILC_INCLUDE_PATH} LDFLAGS += -lsilc -lsilcclient -lsqlite3 -lpthread -L${SILC_LIB_PATH} # GNU: CFLAGS += -D_GNU_SOURCE LDFLAGS += -ldl # BSD: #LDFLAGS += liconv OBJECTS = elmo.o ops_db.o sqlite_helpers.o bot_commands.o bot_messages.o # Enable chat logging: CFLAGS += -DWITH_LOGGING OBJECTS += chatlog.o all: elmo test: elmo ./elmo elmo: ${OBJECTS} gcc ${LDFLAGS} -o elmo $^ clean: @rm -f elmo ${OBJECTS} tidy: clean @rm *~