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