2f
Content-Disposition: inline; filename="Makefile
342
Last-Modified: Thu, 30 Apr 2026 23:32:53 GMT
Expires: Sun, 27 Apr 2036 23:32:53 GMT
ETag: "72a1cfff02c6b83c59fbbca42ace5c266a7cc640"

CGIT_VERSION = 0.1

INSTALL_DIR = /var/www/htdocs/cgit
CACHE_ROOT = /var/cache/cgit

EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
	ui-summary.o ui-log.o ui-view.c ui-tree.c ui-commit.c ui-diff.o

CFLAGS += -Wall

ifdef DEBUG
	CFLAGS += -g
endif

all: cgit

install: all clean-cache
	install cgit $(INSTALL_DIR)/cgit.cgi
	install cgit.css $(INSTALL_DIR)/cgit.css

cgit: cgit.c cgit.h git.h $(OBJECTS)
	$(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
		$(OBJECTS) $(EXTLIBS)

$(OBJECTS): cgit.h git.h

ui-diff.o: xdiff.h

.PHONY: clean
clean:
	rm -f cgit *.o

clean-cache:
	rm -rf $(CACHE_ROOT)/*

0

HTTP/1.0 500 Internal Server Error
Date: Thu, 30 Apr 2026 23:32:53 GMT
Server: OpenBSD httpd
Connection: close
Content-Type: text/html
Content-Length: 518

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>500 Internal Server Error</title>
<style type="text/css"><!--
body { background-color: white; color: black; font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; }
hr { border: 0; border-bottom: 1px dashed; }
@media (prefers-color-scheme: dark) {
body { background-color: #1E1F21; color: #EEEFF1; }
a { color: #BAD7FF; }
}
--></style>
</head>
<body>
<h1>500 Internal Server Error</h1>
<hr>
<address>OpenBSD httpd</address>
</body>
</html>
