update dkim.c from other repository
[citadel.git] / webcit-ng / Makefile
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.
3
4 CFLAGS := $(CFLAGS) -ggdb -Wno-format-truncation
5 LDFLAGS := $(LDFLAGS)
6
7 SRC := server
8 OBJ := server
9
10 HEADERS := $(wildcard $(SRC)/*.h)
11 SOURCES := $(wildcard $(SRC)/*.c)
12 OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
13
14 webcit: $(OBJECTS)
15         gcc $(CFLAGS) $(OBJECTS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -lical -o webcit
16
17 $(SRC)/%.c: $(HEADERS)
18         touch $@
19
20 $(OBJ)/%.o: $(SRC)/%.c
21         gcc $(CFLAGS) -I$(SRC) -c $< -o $@
22
23 # remove compilation products
24 clean:
25         rm -f webcit server/*.o
26
27 distclean: clean
28
29 # install to target directory
30 install:
31         echo Not yet...