summaryrefslogtreecommitdiff
path: root/Makefile
blob: 335e5aa26f0f8043ecb08c667ec0cd8795a04797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: libcppbuild.a

SRC = \
	libcppbuild.cc \
	task_cc.cc \
	task_ld.cc \
	task_ar.cc \
	task.cc \
	execute.cc \

OBJ = $(patsubst %.cc,%.o,$(SRC))

CXXFLAGS = -s -O3 -std=c++17

%.o: %.cc
	g++ $(CXXFLAGS) -c $< -o $@

libcppbuild.a: $(OBJ)
	ar rcs $@ $(OBJ)

clean:
	rm -f libcppbuild.a $(OBJ)