# $Id: Makefile.in,v 1.13 2003/06/24 20:56:52 wojtekka Exp $

CC = alpha-linux-gnu-gcc
CFLAGS = -D_REENTRANT -g -O2 -Wall -pthread -g -O2 -Wall -pthread    -I/usr/include/python2.4 -DWITH_IOCTLD -DIOCTLD_PATH=\"${prefix}/lib/ekg/ioctld\" -I.. -I../lib -I../src
LIBS =   -pthread 
MAKE = /usr/bin/make

OBJS = -lgadu

all:	register-sync register-async conn-async send remind-async remind-sync httphash

register-sync: register.c $(OBJS)
	$(CC) $(CFLAGS) register.c -o register-sync $(OBJS) $(LIBS)

register-async: register.c $(OBJS)
	$(CC) $(CFLAGS) register.c -o register-async -DASYNC $(OBJS) $(LIBS)

remind-sync: remind.c $(OBJS)
	$(CC) $(CFLAGS) remind.c -o remind-sync $(OBJS) $(LIBS)

remind-async: remind.c $(OBJS)
	$(CC) $(CFLAGS) remind.c -o remind-async -DASYNC $(OBJS) $(LIBS)

send:	send.c $(OBJS)
	$(CC) $(CFLAGS) send.c -o send $(OBJS) $(LIBS)

httphash: httphash.c $(OBJS)
	$(CC) $(CFLAGS) httphash.c -o httphash $(OBJS) $(LIBS)

conn-async: conn-async.c $(OBJS)
	$(CC) $(CFLAGS) conn-async.c -o conn-async $(OBJS) $(LIBS)

$(OBJS):
	cd ../lib && $(MAKE)

#

clean: 	
	rm -f *~ *.o send conn-async register-{sync,async} remind-{sync,async} httphash

distclean: clean
	rm -f Makefile
    
