]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/Makefile
moar skeleton
[citadel.git] / webcit-ng / Makefile
index 7b9e2c299bcd192d8eed07845f6cb8b99caf8d1d..c29a595c8522bd927f2384687bd7cf251f100274 100644 (file)
@@ -1,15 +1,24 @@
+# Copyright (c) 1996-2023 by the citadel.org team
+#
+# This program is open source software.  Use, duplication, or
+# disclosure are subject to the GNU General Public License v3.
+
 CFLAGS := $(CFLAGS) -ggdb -Wno-format-truncation
 LDFLAGS := $(LDFLAGS)
 
 SRC := server
 OBJ := server
 
+HEADERS := $(wildcard $(SRC)/*.h)
 SOURCES := $(wildcard $(SRC)/*.c)
 OBJECTS := $(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
 
 webcit: $(OBJECTS)
        gcc $(CFLAGS) $(OBJECTS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
 
+$(SRC)/%.c: $(HEADERS)
+       touch $@
+
 $(OBJ)/%.o: $(SRC)/%.c
        gcc $(CFLAGS) -I$(SRC) -c $< -o $@