Add a source-2-source compiler example to the documentation
[cloog.git] / examples / polyhedral_compiler / Makefile
blob909b866d968304dc60e8f0194671f83ece6c2178
1 # Please enter here the locations for the CLooG, OpenScop and Clan
2 # include and library if they aren't the default values
3 # (i.e., /usr/lib and /usr/include).
4 CLOOG_INC = $(HOME)/usr/include
5 CLOOG_LIB = $(HOME)/usr/lib
7 OPENSCOP_INC = $(HOME)/usr/include
8 OPENSCOP_LIB = $(HOME)/usr/lib
10 CLAN_INC = $(HOME)/usr/include
11 CLAN_LIB = $(HOME)/usr/lib
13 CC = gcc
14 LDLIBS= -lcloog-isl -losl -lclan
15 CFLAGS= -DCLOOG_INT_GMP \
16 -I $(CLOOG_INC) -L $(CLOOG_LIB) \
17 -I $(OPENSCOP_INC) -L $(OPENSCOP_LIB) \
18 -I $(CLAN_INC) -L $(CLAN_LIB)
20 example: poc.c
21 @echo " /*-----------------------------------------------*"
22 @echo " * Making Polyhedral Compiler Example *"
23 @echo " *-----------------------------------------------*/"
24 $(CC) poc.c -o poc $(CFLAGS) $(LDLIBS)
26 clean:
27 @echo " /*-----------------------------------------------*"
28 @echo " * Cleaning Polyhedral Compiler Example *"
29 @echo " *-----------------------------------------------*/"
30 -rm -f poc poc.exe core