2023-06-03 19:52:10 +00:00
|
|
|
TARGET = ciadpi
|
|
|
|
CC ?= gcc
|
2023-06-12 08:01:40 +00:00
|
|
|
CFLAGS += -std=c99 -O2 -D_XOPEN_SOURCE=500
|
2024-04-23 05:47:27 +00:00
|
|
|
SOURCES = packets.c main.c conev.c proxy.c desync.c mpool.c extend.c
|
2024-04-23 12:48:37 +00:00
|
|
|
WIN_SOURCES = win_service.c
|
2023-06-03 19:52:10 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
$(CC) $(CFLAGS) $(SOURCES) -I . -o $(TARGET)
|
|
|
|
|
2024-02-18 20:20:52 +00:00
|
|
|
windows:
|
2024-04-23 12:48:37 +00:00
|
|
|
$(CC) $(CFLAGS) $(SOURCES) $(WIN_SOURCES) -I . -lws2_32 -lmswsock -o $(TARGET).exe
|
2024-02-18 20:20:52 +00:00
|
|
|
|
2023-06-03 19:52:10 +00:00
|
|
|
clean:
|
|
|
|
rm -f $(TARGET) *.o
|