fa113f8b47
CGI applications can specify a HTTP status to output with the Status: header. For simplicity the CGI application must use this header on the first line. With this change cloning git repositories over HTTP with cgit works. in config.mk specify _GNU_SOURCE and _POSIX_C_SOURCE instead of _GNU_SOURCE, this is for getline().
21 lines
414 B
Makefile
21 lines
414 B
Makefile
# quark version
|
|
VERSION = 0.1
|
|
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
# includes and libs
|
|
INCS = -I. -I/usr/include
|
|
LIBS = -L/usr/lib -lc
|
|
|
|
# flags
|
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809 -D_BSD_SOURCE
|
|
CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
|
LDFLAGS = ${LIBS}
|
|
#LDFLAGS = -s ${LIBS}
|
|
|
|
# compiler and linker
|
|
CC = cc
|