GITLAB

tvolleri / ima3_projet_pa_2019

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • ima3_projet_pa_2019
  • Makefile
  • 974b1ae4   ajout des fichiers du projet. Browse Code ยป
    tvolleri
    2019-05-03 18:28:42 +0200  
Makefile 201 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
EXEC = main
CC = gcc
SRC = $(wildcard *.c)
OBJ = $(SRC:.c = .o)
CFLAG =  -g -Wall -Wextra -O0

all: $(EXEC)

%.o : %.c
	$(CC) $(CFLAG) -o $@ -c $<

$(EXEC) : $(OBJ)
	$(CC) -o $@ $^

clean:
	rm -rf *.o