mirror of
https://gitlab.com/niansa/pilang2.git
synced 2025-03-06 20:49:22 +01:00
21 lines
255 B
Makefile
21 lines
255 B
Makefile
CXX=g++
|
|
CC=gcc
|
|
|
|
CXXFLAGS=-Wextra -Os -std=c++17
|
|
LDFLAGS=-Wextra
|
|
|
|
all: obj pilang
|
|
|
|
obj:
|
|
mkdir -p obj
|
|
|
|
pilang: obj/main.o
|
|
$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)
|
|
|
|
obj/main.o: main.cpp
|
|
$(CXX) -c $^ -o $@ $(CXXFLAGS)
|
|
|
|
clean:
|
|
rm -Rf ./obj/
|
|
rm -f ./pilang
|
|
|