blob: bde9466111cd6fd17f430492041e868534ceb7b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
CFLAGS += -Wall -Wextra -Wwrite-strings -Wno-missing-field-initializers -std=c99 -D_BSD_SOURCE -D_DEFAULT_SOURCE
LDLIBS := -lev
NET_OBJS := src/checksum.o src/client.o src/server.o
OBJS := src/udpastcp.o $(NET_OBJS)
udpastcp: $(OBJS)
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
# networking code needs aliasing to work at all
$(NET_OBJS): CFLAGS+=-fno-strict-aliasing -Wno-sign-compare
clean:
$(RM) $(OBJS)
|