Make it compile.

This commit is contained in:
Jonathan Schleifer 2011-02-16 20:23:53 +01:00
parent e4f7e4b35f
commit 2fa82b833c
5 changed files with 20 additions and 6 deletions

View file

@ -1,7 +1,7 @@
all: tests/tests
tests/tests: tests/test.m src/XMPPConnection.m src/XMPPStanza.m src/XMPPJID.m
objfw-compile -o $@ $^ -lidn -Wall -Werror -Isrc
all:
cd src && ${MAKE} ${MFLAGS}
cd tests && ${MAKE} ${MFLAGS}
clean:
rm -f src/*.o tests/*.o tests/tests
cd src && ${MAKE} ${MFLAGS} clean
cd tests && ${MAKE} ${MFLAGS} clean

6
src/Makefile Normal file
View file

@ -0,0 +1,6 @@
all:
objfw-compile --lib 0.0 -o objxmpp *.m \
`pkg-config --cflags --libs libidn`
clean:
rm -f *.o *.so *.dylib *.dll

View file

@ -1,5 +1,6 @@
#import <ObjFW/ObjFW.h>
#import <XMPPJID.h>
#import "XMPPJID.h"
@class XMPPConnection;
@class XMPPIQ;

5
tests/Makefile Normal file
View file

@ -0,0 +1,5 @@
all:
objfw-compile -o tests *.m -I../src -L../src -lobjxmpp
clean:
rm -f tests *.o

View file

@ -1,5 +1,7 @@
#include <assert.h>
#import <ObjFW/ObjFW.h>
#import "XMPPConnection.h"
#import "XMPPStanza.h"