Serwer/Makefile
2017-01-02 17:46:03 +01:00

30 lines
454 B
Makefile

#
# Makefile for Serwer
#
# Author: overflowerror
#
#
CC = gcc
DEFS = -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
CFLAGS = -Wall -Wextra -g -std=c99 -pedantic -DENDEBUG $(DEFS)
LDFLAGS = $(DEFS)
.PHONY: all clean
all: example
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
example: example.o webserver.o help.o
$(CC) $(LDFLAGS) -o $@ $^
example.o: example.c webserver.h
help.o: help.c help.h
webserver.o: webserver.c webserver.h help.h
clean:
rm -f *.o example