My pretty neat website
git clone git://soophie.de/soso
blob: 995e792f226e122627c0374aecc11af26419e58a (1507 bytes)[raw]
1
CC := cc2
CFLAGS := -Wall -Wextra -Werror -pedantic3
CFLAGS_RELEASE := -O2 -DNDEBUG4
CFLAGS_DEBUG := -g3 -O05
# NOTE: exposes header impls into dynamically linked modules6
LDFLAGS := -rdynamic7
LDLIBS := \8
-lm \9
-lssl \10
-lgit211
DEPS := \12
-I$(HOME)/git/sock/src \13
-I$(HOME)/git/tpee/src \14
-I$(HOME)/git/tpee_ext/src \15
-I$(HOME)/git/buf/src \16
-I$(HOME)/git/orb/src \17
-I$(HOME)/git/md4c/src18
SOURCE := \19
src/main.c \20
$(HOME)/git/md4c/src/*.c \21
src/module/page.c \22
src/module/default.c \23
src/module/index.c \24
src/module/git_list.c \25
src/module/git_repo.c \26
src/module/git_repo_log.c \27
src/module/git_repo_tree.c \28
src/module/git_repo_refs.c \29
src/module/git_repo_commit.c \30
src/module/git_repo_blob.c31
VALGRIND := valgrind \32
--leak-check=full \33
--show-leak-kinds=all \34
--track-origins=yes35
TARGET := soso37
export DUC_HEADERPATH := ./src/templ/38
export DUC_BUILDPATH := ./src/templ/39
export DUC_LIBPATH := $(CFLAGS) $(DEPS)41
all: build43
build-templ:44
mkdir -p ./src/templ45
ifdef TEMPL46
ductape ./templ/$(TEMPL).html47
else48
ductape ./templ/*.html49
endif51
build: $(SOURCE)52
$(CC) -o $(TARGET) $(CFLAGS) $(DEPS) $(LDFLAGS) $^ $(LDLIBS)54
build-release: $(SOURCE)55
$(CC) -o $(TARGET) $(CFLAGS) $(DEPS) $(CFLAGS_RELEASE) $(LDFLAGS) $^ $(LDLIBS)57
build-debug: $(SOURCE)58
$(CC) -o $(TARGET) $(CFLAGS) $(DEPS) $(CFLAGS_DEBUG) $(LDFLAGS) $^ $(LDLIBS)60
run: build61
./$(TARGET)63
run-release: build-release64
./$(TARGET)66
run-debug: build-debug67
$(VALGRIND) ./$(TARGET)69
clean:70
rm -f ./$(TARGET)71
rm -rf ./src/templ