mirror of
git://erdgeist.org/opentracker
synced 2025-02-17 06:31:30 +08:00
Fix port again ;) Include headers in Makefile dependencies
This commit is contained in:
parent
b9efc8e22b
commit
ed0edcaae8
3
Makefile
3
Makefile
@ -2,9 +2,10 @@ CC?=gcc
|
|||||||
CFLAGS+=-I../libowfat -Wall -pipe -O2
|
CFLAGS+=-I../libowfat -Wall -pipe -O2
|
||||||
LDFLAGS+=-L../libowfat/ -lowfat -s -lm
|
LDFLAGS+=-L../libowfat/ -lowfat -s -lm
|
||||||
|
|
||||||
|
HEADERS=trackerlogic.h scan_urlencoded_query.h
|
||||||
SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c
|
SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c
|
||||||
|
|
||||||
opentracker: $(SOURCES)
|
opentracker: $(SOURCES) $(HEADERS)
|
||||||
$(CC) $(SOURCES) -o opentracker $(CFLAGS) $(LDFLAGS)
|
$(CC) $(SOURCES) -o opentracker $(CFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -46,7 +46,7 @@ static const ot_byte PEER_FLAG_COMPLETED = 0x40;
|
|||||||
static const ot_byte PEER_FLAG_STOPPED = 0x20;
|
static const ot_byte PEER_FLAG_STOPPED = 0x20;
|
||||||
|
|
||||||
#define OT_SETIP( peer, ip ) MEMMOVE((peer),(ip),4);
|
#define OT_SETIP( peer, ip ) MEMMOVE((peer),(ip),4);
|
||||||
#define OT_SETPORT( peer, port ) MEMMOVE(((ot_byte*)peer)+6,(port),2);
|
#define OT_SETPORT( peer, port ) MEMMOVE(((ot_byte*)peer)+4,(port),2);
|
||||||
#define OT_FLAG(peer) (((ot_byte*)(peer))[6])
|
#define OT_FLAG(peer) (((ot_byte*)(peer))[6])
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user