irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit cb77fdfab1f23fb964fda156884d711202178d15
parent fe500740281a41bb5d0aa41777c93f956e015882
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue,  7 Feb 2012 01:29:42 +0100

rewrite makefile, use dynamic linking, link against ssl for recent libirclient

Diffstat:
Makefile | 20++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,28 +1,16 @@ -# $Id: Makefile.in 42 2004-10-10 16:16:15Z gyunaev $ CC = gcc -CXX = g++ CFLAGS = -Wall -g -DENABLE_THREADS -D_REENTRANT -LIBS = /usr/lib/libircclient.a -lpthread -lnsl -INCLUDES=-I../include - -EXAMPLES=irctk +LIBS = -lpthread -lnsl -lssl -lircclient all: irctk -irctk: irctk.o - $(CC) -o irctk irctk.o $(LIBS) +irctk: irctk.c + $(CC) $(CFLAGS) $(LIBS) -o irctk irctk.c clean: - -rm -f $(EXAMPLES) *.o *.exe + -rm -f irctk *.o distclean: clean -rm -f Makefile *.log -.c.o: - @echo "Compiling $<" - $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< - -.cpp.o: - @echo "Compiling $<" - $(CXX) $(CFLAGS) $(INCLUDES) -c -o $@ $<