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 $@
Please don't mess with this yet. I'm only pushing it upstream so it gets backed up.
-Yes, I know the Makefile is built in a way that forces it to recompile everything
-when you touch even one file. For the time being this is acceptable.
-
## Design goals
* Hold as little state as possible
* Require NO cleanup. Killing the process lets the OS reclaim all resources.
// webcit.h - "header of headers"
//
-// Copyright (c) 1996-2022 by the citadel.org team
+// Copyright (c) 1996-2023 by the citadel.org team
//
// This program is open source software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License, version 3.
char room[128]; // What room we are currently in
int room_current_view;
int room_default_view;
- int is_trash_folder; // Nonzero if this room is the user's Trash folder
+ int is_trash_folder; // nonzero if this room is the user's Trash folder
int is_room_aide; // nonzero if the user has aide rights to THIS room
- int can_delete_messages; // nonzeri if the user is permitted to delete messages in THIS room
+ int can_delete_messages; // nonzero if the user is permitted to delete messages in THIS room
long last_seen;
int new_messages;
int total_messages;