Make it compile.
This commit is contained in:
parent
e4f7e4b35f
commit
2fa82b833c
5 changed files with 20 additions and 6 deletions
10
Makefile
10
Makefile
|
@ -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
6
src/Makefile
Normal 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
|
|
@ -1,5 +1,6 @@
|
|||
#import <ObjFW/ObjFW.h>
|
||||
#import <XMPPJID.h>
|
||||
|
||||
#import "XMPPJID.h"
|
||||
|
||||
@class XMPPConnection;
|
||||
@class XMPPIQ;
|
||||
|
|
5
tests/Makefile
Normal file
5
tests/Makefile
Normal file
|
@ -0,0 +1,5 @@
|
|||
all:
|
||||
objfw-compile -o tests *.m -I../src -L../src -lobjxmpp
|
||||
|
||||
clean:
|
||||
rm -f tests *.o
|
|
@ -1,5 +1,7 @@
|
|||
#include <assert.h>
|
||||
|
||||
#import <ObjFW/ObjFW.h>
|
||||
|
||||
#import "XMPPConnection.h"
|
||||
#import "XMPPStanza.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue