byedpi/Makefile

15 lines
342 B
Makefile
Raw Normal View History

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