mirror of
https://github.com/sigmasternchen/Serwer
synced 2025-03-15 23:28:54 +00:00
using -Wextra and fixing typo
This commit is contained in:
parent
a62ed13e16
commit
ab79847522
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -7,20 +7,20 @@
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
DEFS = -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
|
DEFS = -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
|
||||||
CFLAGS = -Wall -g -std=c99 -pedantic -DENDEBUG $(DEFS)
|
CFLAGS = -Wall -Wextra -g -std=c99 -pedantic -DENDEBUG $(DEFS)
|
||||||
LDFLAGS = $(DEFS)
|
LDFLAGS = $(DEFS)
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
all: test
|
all: example
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
exmaple: exmaple.o webserver.o help.o
|
example: example.o webserver.o help.o
|
||||||
$(CC) $(LDFLAGS) -o $@ $^
|
$(CC) $(LDFLAGS) -o $@ $^
|
||||||
|
|
||||||
exmaple.o: exmaple.c webserver.h
|
example.o: example.c webserver.h
|
||||||
|
|
||||||
help.o: help.c help.h
|
help.o: help.c help.h
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue