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

Diff of /trunk/freehttpd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.45  
changed lines
  Added in v.46

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26