Serwer/Makefile
2017-01-02 00:03:06 +01:00

30 lines
428 B
Makefile

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