-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 728 Bytes
/
Makefile
File metadata and controls
36 lines (26 loc) · 728 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
26
27
28
29
30
31
32
33
34
35
36
#---------------------------------------------------------
#makefile permettant la compilation du programme principal
#---------------------------------------------------------
.KEEP_STATE:
#definition des variables
CC=gcc
OBJ=_build
SRC=src
EXE=samples/EXE
CCFLAGS=-Wall -g `pkg-config --cflags gtk+-2.0`
LDFLAGS=`pkg-config --libs gtk+-2.0` -lm
#compilation
OBJ_FILES= src/tools.o src/kmeans.o src/compute.o src/main.o
all: ImaProjet.exe
.c.o:
${CC} ${CCFLAGS} -o $@ -c $<
ImaProjet.exe:${OBJ_FILES}
${CC} -o ${EXE}/$@ ${OBJ_FILES} ${LDFLAGS}
mv ${SRC}/*.o ${OBJ}
view: clean ImaProjet.exe
./${EXE}/ImaProjet.exe
clean:
\rm -f ${OBJ}/*.o ../*/core ${EXE}/*.exe
install:
cp *.h ${INC}
.SUFFIXES: .exe .o .c .h