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