6347e2ec3e
I noticed that the data structures didn't allow a flexible handling of the code while trying to extend it to support if-modified-since-responses. To tackle this, I refactored the data structures and proceeded to rewrite the server from the ground up, implementing all present features plus fixing a lot of bugs and introducing the 304 header handling as requested by many people. Please report bugs if you find them. While at it, I refactored the build system as well and updated all surrounding files respectively.
16 lines
285 B
Makefile
16 lines
285 B
Makefile
# quark version
|
|
VERSION = 0
|
|
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = $(PREFIX)/man
|
|
|
|
# flags
|
|
CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE
|
|
CFLAGS = -std=c99 -pedantic -Wall -Os
|
|
LDFLAGS = -s
|
|
|
|
# compiler and linker
|
|
CC = cc
|