-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
25 lines (17 loc) · 758 Bytes
/
makefile
File metadata and controls
25 lines (17 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# CXX = g++
CXX = distrobox-enter debian -- g++
CXXFLAGS = -lGL -lGLU -lglut -std=c++14
TARGET = projetDjivan.out
SRCS = $(wildcard Eleve*.cpp) $(wildcard Eleve*.h) $(OBJ_LIB)
# SRC_LIB = G2DKey.cpp G2DMouse.cpp G2DX.cpp G2DColor.cpp G2DMain.cpp G2DPPM.cpp V2.cpp
SRC_LIB = G2DColor.cpp G2DKey.cpp G2DMain.cpp G2DMouse.cpp G2DPNGreader.cpp G2DX.cpp lodepng.cpp V2.cpp
SRC_H_LIB = $(SRC_LIB:.cpp=.h) # Conversion des fichiers .cpp en .h
OBJ_LIB = $(SRC_LIB:.cpp=.o) # Conversion des fichiers .cpp en .o
all: $(TARGET)
$(TARGET): $(SRCS)
$(CXX) $(SRCS) $(CXXFLAGS) -o $(TARGET)
library.o: $(SRC_LIB) $(SRC_H_LIB)
$(CXX) $(CXXFLAGS) -c $(SRC_LIB)
clean:
rm -f $(TARGET) *.o *.out
# cd /var/home/dd/MEGA/Documents/School/ESIEE/S2/EL-3034/TD/