summaryrefslogtreecommitdiff
path: root/Makefile
blob: 573c499886b3b2f0429737cf820ca081d318906e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CXX=g++
LD=g++

CFLAGS=-pedantic -Wall --std=c++17

OBJS=src/main.o \
    src/CGIScript.o \
    src/ClientConnection.o \
    src/ServerConnection.o \
    src/HttpRequest.o \
    src/HttpResponse.o

all: cfws

%.o: %.cpp
	$(CXX) $< -o $@ -c $(CFLAGS)

cfws: $(OBJS)
	$(LD) $^ -o $@ $(CFLAGS)

.PHONY: clean

clean:
	rm -f $(OBJS) cfws