fixed and extended makefile

This commit is contained in:
Mathias Laurenz Baumann 2010-09-01 17:16:35 +02:00
parent d0c0958ddf
commit eb7876b2d5
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