1 # Copyright (c) 1996-2024 by the citadel.org team
2 # This program is open source software. Use, duplication, or disclosure is subject to the GNU General Public License v3.
4 CFLAGS := $(CFLAGS) -ggdb -Wno-format-truncation
10 HEADERS := $(wildcard $(SRC)/*.h)
11 SOURCES := $(wildcard $(SRC)/*.c)
12 OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
15 gcc $(CFLAGS) $(OBJECTS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -lical -o webcit
17 $(SRC)/%.c: $(HEADERS)
20 $(OBJ)/%.o: $(SRC)/%.c
21 gcc $(CFLAGS) -I$(SRC) -c $< -o $@
23 # remove compilation products
25 rm -f webcit server/*.o
29 # install to target directory