1
0
Fork 0
mirror of https://gitlab.com/niansa/pilang2.git synced 2025-03-06 20:49:22 +01:00

Added makefile

This commit is contained in:
niansa 2020-04-13 18:53:20 +02:00
parent a02ec8a97c
commit 56393f28f0

21
Makefile Normal file
View file

@ -0,0 +1,21 @@
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