Added a test program to connect to a XMPP server and send a client stream
[cascardo/chat.git] / Makefile
index 33f423a..d855658 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
-OBJECTS = sort_udns.o tcp_connect.o
+OBJECTS = sort_udns.o tcp_connect.o iksemel_extra.o tictactoe.o
 CC = gcc
-CFLAGS = -g -Wall
-LIBS = -ludns
+CFLAGS = -g -Wall `pkg-config --cflags iksemel`
+LIBS = -ludns `pkg-config --libs iksemel`
 
-all: $(OBJECTS)
+all: tictactoe
+
+tictactoe: $(OBJECTS)
+       $(CC) $(CFLAGS) $(LIBS) -o tictactoe $(OBJECTS)
 
 .c.o:
        $(CC) $(CFLAGS) -c $< -o $@
 
 clean:
-       rm -f $(OBJECTS)
+       rm -f $(OBJECTS) tictactoe