~ubuntu-branches/ubuntu/wily/maradns/wily-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.2.05/src/Makefile

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski, Tomasz Buchert, Dariusz Dwornikowski
  • Date: 2015-03-27 18:34:08 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20150327183408-wnfachdkdjt96yu6
Tags: 2.0.11-1
[ Tomasz Buchert ]
* Imported Upstream version 2.0.11

[ Dariusz Dwornikowski ]
* d/patches: 
  - refreshed all patches for new deadwood version
  - removed generating of random prime on build (Closes: #785536) 
* d/rules: date taken from changelog (Closes: #785535)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for Deadwood-2 (CentOS 5; may work with other other Linux and
2
 
# *NIX systems)
3
 
 
4
 
# The compiler that makes programs designed to run on the machine 
5
 
# compiling.  When cross-compiling, we still need to compile and
6
 
# run programs on the build machine, so change the next line when
7
 
# cross-compiling.
8
 
HOSTCC=$(CC)
9
 
 
10
 
OBJS=DwStr.o \
11
 
        DwMararc.o \
12
 
        DwRadioGatun.o \
13
 
        DwSocket.o \
14
 
        DwUdpSocket.o \
15
 
        DwTcpSocket.o \
16
 
        DwSys.o \
17
 
        DwHash.o \
18
 
        DwCompress.o \
19
 
        DwDnsStr.o \
20
 
        DwRecurse.o \
21
 
        DwDict.o
22
 
 
23
 
all:    deadwood version.h
24
 
 
25
 
# Since some systems may not have /dev/urandom (Windows, *cough* *cough*), we 
26
 
# keep a randomly generated prime around 
27
 
 
28
 
#               Makefile \
29
 
#
30
 
 
31
 
clean:
32
 
        rm -f Test DwMain DwTcp *.exe *.o a.out RandomPrime writehash_test* \
33
 
                deadwood foo* dw_cache DwHash DwCompress *stackdump core
34
 
                if [ -f DwRandPrime.h.bak ]; then mv DwRandPrime.h.bak DwRandPrime.h; fi
35
 
 
36
 
version.h:      
37
 
        ./make.version.h
38
 
        
39
 
DwStr.o:        DwStr.c DwStr.h
40
 
        $(CC) $(FLAGS) -c -o DwStr.o DwStr.c
41
 
 
42
 
DwCompress.o:   DwCompress.c DwStr.h
43
 
        $(CC) $(FLAGS) -c -o DwCompress.o DwCompress.c
44
 
 
45
 
DwDnsStr.o:     DwDnsStr.c DwStr.h DwRecurse.h
46
 
        $(CC) $(FLAGS) -c -o DwDnsStr.o DwDnsStr.c
47
 
 
48
 
DwMararc.o:     DwMararc.c DwMararc.h 
49
 
        $(CC) $(FLAGS) -c -o DwMararc.o DwMararc.c
50
 
 
51
 
DwRadioGatun.o: DwRadioGatun.c DwRadioGatun.h DwStr.h
52
 
        $(CC) $(FLAGS) -c -o DwRadioGatun.o DwRadioGatun.c
53
 
 
54
 
DwTcpSocket.o:  DwTcpSocket.c DwStr.h DwSocket.h
55
 
        $(CC) $(FLAGS) -c -o DwTcpSocket.o DwTcpSocket.c
56
 
 
57
 
DwUdpSocket.o:  DwUdpSocket.c DwStr.h DwSocket.h
58
 
        $(CC) $(FLAGS) -c -o DwUdpSocket.o DwUdpSocket.c
59
 
 
60
 
DwSocket.o:     DwSocket.c DwStr.h DwSocket.h
61
 
        $(CC) $(FLAGS) -c -o DwSocket.o DwSocket.c
62
 
 
63
 
DwSys.o:        DwSys.c DwStr.h
64
 
        $(CC) $(FLAGS) -c -o DwSys.o DwSys.c
65
 
 
66
 
RandomPrime:    RandomPrime.c
67
 
        $(CC) -O3 -o RandomPrime RandomPrime.c
68
 
 
69
 
DwRandPrime.h: RandomPrime
70
 
        ./RandomPrime > DwRandPrime.h 
71
 
 
72
 
DwHash.o:       DwHash.c DwStr.h DwRandPrime.h DwHash.h
73
 
        $(CC) $(FLAGS) -Wall -c -o DwHash.o DwHash.c
74
 
 
75
 
DwRecurse.o:    DwRecurse.c DwRecurse.h
76
 
        $(CC) $(FLAGS) -Wall -c -o DwRecurse.o DwRecurse.c
77
 
 
78
 
DwDict.o:       DwDict.c DwStr.h DwRandPrime.h DwDict.h
79
 
        $(CC) $(FLAGS) -Wall -c -o DwDict.o DwDict.c
80
 
 
81
 
Test:           Test.c DwStr.o DwStr.h DwStr_functions.h $(OBJS)
82
 
        $(CC) $(FLAGS) -Wall -o Test Test.c $(OBJS)
83
 
 
84
 
deadwood:       DwMain.c $(OBJS) DwStr_functions.h version.h
85
 
        $(CC) $(FLAGS) -Wall -o deadwood DwMain.c $(OBJS) -lrt
86