1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

fixed and extended makefile

This commit is contained in:
Marenz 2010-09-01 17:16:35 +02:00
parent 49939114ab
commit 19330a70ac
4 changed files with 9 additions and 6 deletions

View file

@ -1,7 +1,7 @@
CC=cc
dietlib:
/opt/diet/bin/diet ${CC} -c -Os parser.c -o libpsyc.o -DDEBUG
/opt/diet/bin/diet ${CC} -static -c -Os parser.c -o libpsyc.o -DDEBUG
/opt/diet/bin/diet ar rcs libpsyc.a libpsyc.o
lib:

View file

@ -85,7 +85,7 @@ inline int PSYC_parseElement(
* <0 on a parsing error.
* This invalidates all but the cursor
* out paramater. */
inline int PSYC_parseHeader(
int PSYC_parseHeader(
unsigned int* cursor,
const uint8_t * data, unsigned int dlength,
const uint8_t** name, unsigned int *nlength,

View file

@ -36,7 +36,7 @@
* <0 on a parsing error.
* This invalidates all but the cursor
* out paramater. */
extern int PSYC_parseHeader(
int PSYC_parseHeader(
unsigned int* cursor,
const uint8_t * data, unsigned int dlength,
const uint8_t** name, unsigned int *nlength,
@ -110,7 +110,7 @@ int PSYC_parseClosedBody(
* real length of the packet and thus
* searches for the terminator.
*/
extern int PSYC_parseOpenBody(
int PSYC_parseOpenBody(
unsigned int* cursor,
const uint8_t * data, unsigned int dlength,
const uint8_t** name, unsigned int *nlength,

View file

@ -1,3 +1,6 @@
CFLAGS=-L.. -I.. -DDEBUG -lpsyc
it: testParser
dietlib:
/opt/diet/bin/diet cc -L.. -I.. -DDEBUG -lpsyc testParser.c -lpsyc -o testParser
lib:
cc -L.. -I.. -DDEBUG -lpsyc testParser.c -lpsyc -o testParser