using -Wextra and fixing typo

This commit is contained in:
overflowerror 2017-01-02 17:46:03 +01:00
parent a62ed13e16
commit ab79847522

View file

@ -7,20 +7,20 @@
CC = gcc
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)
.PHONY: all clean
all: test
all: example
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
exmaple: exmaple.o webserver.o help.o
example: example.o webserver.o help.o
$(CC) $(LDFLAGS) -o $@ $^
exmaple.o: exmaple.c webserver.h
example.o: example.c webserver.h
help.o: help.c help.h