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

Annotation of /trunk/freehttpd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26