* Seems to be coming along. Not convinced that the bowing conversions are right.
[scdataviz] / Makefile
1 ##
2 ## Makefile
3 ##  
4 ## Made by Johnny Q. Hacker
5 ## Login   <solarionjohnathan>
6 ##
7 ## Started on  Thu Jul 17 10:56:05 2008 Johnny Q. Hacker
8 ## Last update Thu Jul 17 10:56:05 2008 Johnny Q. Hacker
9 ## 
10 ##############################
11 # Complete this to make it ! #
12 ##############################
13 NAME    = scdataviz             # Name of executable file
14 SRC     = $(wildcard *.c)               # List of *.c
15 INCL    =               # List of *.h
16 ################
17 # Optional add #
18 ################
19 IPATH   = -I.           # path of include file
20 OBJOPT  = -ggdb -g3 -Wall -Wstrict-prototypes -DDEBUG       # option for obj
21 EXEOPT  = -ggdb -g3 -Wall -Wstrict-prototypes       # option for exe (-lefence ...)
22 LPATH   = -L.           # path for librairies ... 
23
24 #####################
25 # Macro Definitions #
26 #####################
27 CC      = gcc
28 MAKE    = make
29 SHELL   = /bin/sh
30 OBJS    = $(SRC:.c=.o) 
31 RM      = /bin/rm -f    
32 COMP    = gzip -9v
33 UNCOMP  = gzip -df
34 STRIP   = strip
35
36 CFLAGS  = $(OBJOPT) $(IPATH) `pkg-config --cflags gtk+-2.0`
37 LDFLAGS = $(EXEOPT) $(LPATH) `pkg-config --libs gtk+-2.0`
38
39 .SUFFIXES: .h.Z .c.Z .h.gz .c.gz .c.z .h.z 
40
41 ##############################
42 # Basic Compile Instructions #
43 ##############################
44
45 all:    $(NAME)
46 $(NAME): $(OBJS) $(SRC) $(INCL)  
47         $(CC) $(OBJS) $(LDFLAGS) -o $(NAME) 
48 #       $(STRIP) ./$(NAME) # if you debug ,don't strip ...
49
50 depend:
51         gcc $(IPATH) -MM $(SRC) 
52 clean:
53         -$(RM) $(NAME) $(OBJS)
54 fclean:
55         -$(RM) $(NAME)
56 comp: clean
57         $(COMP) $(INCL) $(SRC)
58 ucomp: 
59         $(UNCOMP) $(SRC) $(INCL)
60
61 .c.Z.c .h.Z.h .c.gz.c .h.gz.h .c.z.c .h.z.h :
62          -$(UNCOMP) $<
63
64 .c.o:
65         $(CC) $(CFLAGS) -c $< 
66 ################
67 # Dependencies #
68 ################