INFO601_cmi
Makefile
Go to the documentation of this file.
1SRC=union-find.c
2CC=gcc
3LD=gcc
4# CFLAGS=-g -Wall -Werror -pedantic -Wno-deprecated-declarations -std=c11
5CFLAGS=-g -Wall -Werror -pedantic -std=c11
6LIBS=-lm
7# Choisissez si vous préférez GTK2 ou GTK3
8# gtk+-2.0 pour GTK2
9# gtk+-3.0 pour GTK3 (choisi ici)
10GTKCFLAGS:=-g $(shell pkg-config --cflags gtk+-3.0)
11GTKLIBS:=$(shell pkg-config --libs gtk+-3.0)
12
13all: union-find
14
15union-find: union-find.o
16 $(LD) union-find.o $(GTKLIBS) $(LIBS) -lm -o union-find
17
18union-find.o: $(SRC)
19 $(CC) -c $(SRC) $(CFLAGS) $(GTKCFLAGS) -o union-find.o
20
21clean:
22 rm -f union-find union-find.o
23
24fullclean: clean
25 rm -f *~ *.fig.bak