291a9a888ccd43db01693337241b92cc72bb2266
[citadel.git] / webcit-ng / Makefile
1 # Copyright (c) 1996-2023 by the citadel.org team
2 #
3 # This program is open source software.  Use, duplication, or
4 # disclosure are subject to the GNU General Public License v3.
5
6 CFLAGS := $(CFLAGS) -ggdb -Wno-format-truncation
7 LDFLAGS := $(LDFLAGS)
8
9 SRC := server
10 OBJ := server
11
12 HEADERS := $(wildcard $(SRC)/*.h)
13 SOURCES := $(wildcard $(SRC)/*.c)
14 OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
15
16 webcit: $(OBJECTS)
17         gcc $(CFLAGS) $(OBJECTS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -lical -o webcit
18
19 $(SRC)/%.c: $(HEADERS)
20         touch $@
21
22 $(OBJ)/%.o: $(SRC)/%.c
23         gcc $(CFLAGS) -I$(SRC) -c $< -o $@
24
25 # remove compilation products
26 clean:
27         rm -f webcit server/*.o
28
29 distclean: clean
30
31 # install to target directory
32 install:
33         echo Not yet...