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:
parent
d0c0958ddf
commit
eb7876b2d5
4 changed files with 9 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue