forked from mirrors/treebird
Fix mastodont include
FossilOrigin-Name: 9203fbe8e3c23848d18a35cf88249ac3facc76c2ebc653be829f0aeb290daf8d
This commit is contained in:
parent
ce8f50cbfe
commit
7c7de1ffb5
3 changed files with 4 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,4 +2,3 @@ filec
|
|||
**/*.cgi
|
||||
**/*.o
|
||||
**/*.chtml
|
||||
mastodont
|
5
Makefile
5
Makefile
|
@ -2,7 +2,7 @@ CC ?= cc
|
|||
GIT ?= git
|
||||
MASTODONT_DIR = mastodont/
|
||||
MASTODONT = $(MASTODONT_DIR)libmastodont.a
|
||||
CFLAGS = -Wall -I $(MASTODONT)include/
|
||||
CFLAGS = -Wall -I $(MASTODONT_DIR)include/
|
||||
LDFLAGS = -L$(MASTODONT_DIR) -lcurl -lmastodont
|
||||
SRC = $(wildcard src/*.c)
|
||||
OBJ = $(patsubst %.c,%.o,$(SRC))
|
||||
|
@ -15,7 +15,7 @@ TARGET = ratfe.cgi
|
|||
all: $(MASTODONT) $(TARGET)
|
||||
|
||||
$(TARGET): filec $(PAGES_CMP) $(OBJ)
|
||||
$(CC) -o $(DIST)$(TARGET) $(LDFLAGS) $(OBJ)
|
||||
$(CC) -o $(DIST)$(TARGET) $(OBJ) $(LDFLAGS)
|
||||
|
||||
filec: src/file-to-c/main.o
|
||||
$(CC) -o filec $<
|
||||
|
@ -37,5 +37,6 @@ clean:
|
|||
rm -f $(OBJ) src/file-to-c/main.o
|
||||
rm -f $(PAGES_CMP)
|
||||
rm -f filec
|
||||
make -C $(MASTODONT_DIR) clean
|
||||
|
||||
.PHONY: all filec clean
|
||||
|
|
2
config.h
2
config.h
|
@ -31,6 +31,6 @@ static const char* config_canonical_name = "RatFE";
|
|||
*
|
||||
* Example: https://cum.desupost.soy/
|
||||
*/
|
||||
static const char* config_instance_url = "https://cum.desupost.soy/";
|
||||
static char* config_instance_url = "https://cum.desupost.soy/";
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
|
Loading…
Reference in a new issue