/[osn-commons]/trunk/freehttpd/Makefile
ViewVC logotype

Contents of /trunk/freehttpd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 46 - (show annotations)
Mon Aug 12 16:55:32 2024 UTC (7 months, 2 weeks ago) by rakinar2
File size: 523 byte(s)
feat(freehttpd): better error handling
1 SOURCES = $(wildcard *.c)
2 HEADERS = $(wildcard *.h) $(wildcard html/*.h)
3 OBJECTS = $(SOURCES:.c=.o)
4 BIN = freehttpd
5 CFLAGS = -g -O2 -Wall -Wextra -std=c23 -pedantic -pedantic-errors -pthread -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE
6 LDFLAGS = -pthread
7 LDLIBS = -lmagic
8 CC = gcc
9 SUBDIRS = html
10
11 all: $(SUBDIRS) $(BIN)
12
13 .PHONY: all clean $(SUBDIRS)
14
15 $(SUBDIRS):
16 $(MAKE) -C $@
17
18 $(BIN): $(OBJECTS) $(HEADERS)
19
20 $(HEADERS): $(SOURCES)
21
22 clean:
23 rm -f $(BIN) $(OBJECTS)
24 for dir in $(SUBDIRS); do \
25 $(MAKE) -C $$dir clean; \
26 done

team@onesoftnet.eu.org
ViewVC Help
Powered by ViewVC 1.1.26