Initial commit
This commit is contained in:
parent
ab6c3353e2
commit
13161bcbd7
17 changed files with 1335 additions and 0 deletions
34
makefile (1)
Normal file
34
makefile (1)
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Modèle de fichier Makefile pour le fichier template.c
|
||||
LIBDIR = /home/sasl/encad/brajard/projet/CGS_lib
|
||||
|
||||
# options de compilation
|
||||
CC = gcc
|
||||
CCFLAGS = -Wall -I $(LIBDIR)/include
|
||||
LIBS = -L $(LIBDIR)/lib
|
||||
LDFLAGS = -lm -lcgs
|
||||
|
||||
# fichiers du projet
|
||||
SRC = template.c fonction.c random.c astar.c smartstar.c
|
||||
OBJ = $(SRC:.c=.o)
|
||||
EXEC = template
|
||||
|
||||
|
||||
# règle initiale
|
||||
all: $(EXEC)
|
||||
|
||||
# dépendance des .h
|
||||
template.o:
|
||||
|
||||
# règles de compilation
|
||||
%.o: %.c
|
||||
$(CC) $(CCFLAGS) -o $@ -c $<
|
||||
|
||||
# règles d'édition de liens
|
||||
$(EXEC): $(OBJ)
|
||||
$(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
|
||||
|
||||
# règles supplémentaires
|
||||
clean:
|
||||
rm -f *.o
|
||||
rmproper:
|
||||
rm -f $(EXEC) *.o
|
Loading…
Add table
Add a link
Reference in a new issue