byedpi/Makefile

26 lines
520 B
Makefile
Raw Normal View History

2023-06-03 19:52:10 +00:00
TARGET = ciadpi
2024-08-06 21:03:15 +00:00
CPPFLAGS = -D_XOPEN_SOURCE=500
CFLAGS += -I. -std=c99 -Wall -Wno-unused -O2
WIN_LDFLAGS = -lws2_32 -lmswsock
2023-06-03 19:52:10 +00:00
2024-08-06 21:03:15 +00:00
SRC = packets.c main.c conev.c proxy.c desync.c mpool.c extend.c
WIN_SRC = win_service.c
OBJ = $(SRC:.c=.o)
WIN_OBJ = $(WIN_SRC:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) -o $(TARGET) $(OBJ) $(LDFLAGS)
windows: $(OBJ) $(WIN_OBJ)
$(CC) -o $(TARGET).exe $(OBJ) $(WIN_OBJ) $(WIN_LDFLAGS)
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
2024-02-18 20:20:52 +00:00
2023-06-03 19:52:10 +00:00
clean:
2024-08-06 21:03:15 +00:00
rm -f $(TARGET) $(TARGET).exe $(OBJ) $(WIN_OBJ)