forked from Postaron/OptimisationLineaire_TP1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
33 lines (24 loc) · 639 Bytes
/
makefile
File metadata and controls
33 lines (24 loc) · 639 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
CC = gcc
CFLAGS = -pipe -march=native -std=c99 -Wall -Wextra -pedantic -O3
LDLIBS =
LDFLAGS = -pipe -O3
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)
EXE = prog
.PHONY: clean mrproper
all: depend $(EXE)
$(EXE): depend $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
# makedepend: le package xutils-dev doit être installé
#EDIT personnel : (sous Ubuntu/Debian c'est valide)
depend:
@makedepend -- $(CFLAGS) -- -Y $(SRCS) 2> /dev/null
clean:
rm -f *.o
mrproper: clean
rm -f $(EXE)
# DO NOT DELETE THIS LINE
probleme.o: probleme.h types.h
utils.o: utils.h
simplexe.o: types.h probleme.h pivot.h
pivot.o: pivot.h types.h utils.h