aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: bcdd123045b5df3483a83e2035b6ced1483135e8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# part of Hydrilla
#
# Copyright (C) 2021 Wojtek Kosior
# Redistribution terms are gathered in the `copyright' file.

CC=gcc
CFLAGS=-Wall -Werror -pedantic -std=c99 -D_USE_INLINE -O0 -g
#CFLAGS=-Wall -Werror -std=c89 -O0 -g

EXECNAME=hydrilla

$(EXECNAME): string_buf.o hashtable.o serve.o scriptbase_build.o \
	     scriptbase_query.o scriptbase_json_query.o main.o
	gcc $(filter %.o,$^) -lmicrohttpd -lcjson -o $@

clean:
	rm -f $(EXECNAME) *.o

.PHONY: clean

*.o $(EXECNAME): Makefile