initial isl packaging
[platform/upstream/cloog-isl.git] / examples / example / Makefile
1 # Please enter here the locations for the CLooG include and library if they
2 # aren't the default values (/usr/lib and /usr/include).
3 CLOOG_INC = $(HOME)/usr/include
4 CLOOG_LIB = $(HOME)/usr/lib
5
6 CC = gcc
7 LDLIBS= -lcloog-isl
8 CFLAGS= -DCLOOG_INT_GMP -I $(CLOOG_INC) -L $(CLOOG_LIB)
9
10 example: example.c example-isl.c 
11         @echo "             /*-----------------------------------------------*"
12         @echo "              *                Making examples                *"
13         @echo "              *-----------------------------------------------*/"
14         $(CC) example.c -o example $(CFLAGS) $(LDLIBS)
15         $(CC) example-isl.c -o example-isl $(CFLAGS) $(LDLIBS)
16
17 clean:
18         @echo "             /*-----------------------------------------------*"
19         @echo "              *               Cleaning examples               *"
20         @echo "              *-----------------------------------------------*/"
21         -rm -f example example.exe example-isl example-isl.exe core