Changes between Initial Version and Version 1 of CaoCourseTme2Makefile


Ignore:
Timestamp:
Feb 16, 2007, 7:43:43 PM (17 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CaoCourseTme2Makefile

    v1 v1  
     1{{{
     2# Definition des commandes
     3CC      = gcc
     4AR      = ar
     5RM      = rm
     6INDENT  = indent
     7 
     8# Definition des parametres
     9LDFLAGS = -p
     10CFLAGS  = -g -p -Wall -ansi -Werror
     11ARFLAGS = -r
     12IDFLAGS = -gnu  -bli0 -npsl -l90
     13 
     14# Definition de la liste des librairies necesaires a l'edition de lien
     15LDLIBS  = -L. -lhte
     16
     17.PHONY: all clean realclean
     18 
     19stat : main.o count.o libhte.a
     20        $(CC) $(LDFLAGS) main.o count.o -o stat $(LDLIBS)
     21
     22libhte.a : hte.o dico.o dejavu.o namealloc.o
     23        $(AR) $(ARFLAGS) libhte.a hte.o dico.o dejavu.o namealloc.o
     24
     25main.o:
     26count.o:
     27hte.o:
     28dejavu.o:
     29namealloc.o:
     30 
     31all: clean stat
     32 
     33clean:
     34        $(RM) *.o *.a *.out *~ 2> /dev/null || true
     35
     36realclean: clean
     37        $(RM) stat 2> /dev/null || true
     38
     39indent:
     40        $(INDENT) $(IDFLAGS) *.c *.h
     41}}}