~ubuntu-branches/ubuntu/natty/dealer/natty

« back to all changes in this revision

Viewing changes to Random/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2005-09-07 23:32:20 UTC
  • Revision ID: james.westby@ubuntu.com-20050907233220-e7bsghnrwg1ncye4
Tags: upstream-0.20040530
ImportĀ upstreamĀ versionĀ 0.20040530

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SRC      = $(wildcard *.c) 
 
2
OBJ      = $(subst .c,.o,$(wildcard *.c)) 
 
3
GCC      = gcc
 
4
GCCFLAGS = -c -Wall -O2 -I.
 
5
HDR      = ansidecl.h
 
6
LIB      = libgnurand.a
 
7
AR       = ar
 
8
ARFLAGS  = rcs
 
9
 
 
10
help:
 
11
        @echo "Makefile tags:"
 
12
        @echo
 
13
        @echo "lib:   Make ${LIB}"
 
14
        @echo "clean: Remove ${OBJ}"
 
15
        @echo  
 
16
 
 
17
lib: ${LIB}
 
18
 
 
19
 
 
20
clean:
 
21
        -rm ${OBJ} ${LIB}
 
22
 
 
23
.c.o: ${HDR}
 
24
        ${GCC} ${GCCFLAGS} -o $@ $<
 
25
 
 
26
${LIB}: ${OBJ} ${HDR}
 
27
        ${AR} ${ARFLAGS} $@ ${OBJ}
 
28
 
 
29
__random.o: ${HDR}
 
30
rand.o:     ${HDR}
 
31
srand.o:    ${HDR}