mirror of
https://gitlab.com/niansa/pilang2.git
synced 2025-03-06 20:49:22 +01:00
Added makefile
This commit is contained in:
parent
a02ec8a97c
commit
56393f28f0
1 changed files with 21 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal 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
|
||||
|
Loading…
Add table
Reference in a new issue