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

« back to all changes in this revision

Viewing changes to .pc/deadwood_makefile.patch/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 \
34
 
                core ; \
35
 
                ./make.version.h ; if [ -e /dev/urandom ] ; \
36
 
                        then rm DwRandPrime.h  ; \
37
 
                        cc RandomPrime.c ; ./a.out > DwRandPrime.h ; rm a.out \
38
 
                ; fi 
39
 
 
40
 
version.h:      
41
 
        ./make.version.h
42
 
        
43
 
DwStr.o:        DwStr.c DwStr.h
44
 
        $(CC) $(FLAGS) -Wall -c -o DwStr.o DwStr.c
45
 
 
46
 
DwCompress.o:   DwCompress.c DwStr.h
47
 
        $(CC) $(FLAGS) -Wall -c -o DwCompress.o DwCompress.c
48
 
 
49
 
DwDnsStr.o:     DwDnsStr.c DwStr.h DwRecurse.h
50
 
        $(CC) $(FLAGS) -Wall -c -o DwDnsStr.o DwDnsStr.c
51
 
 
52
 
DwMararc.o:     DwMararc.c DwMararc.h 
53
 
        $(CC) $(FLAGS) -Wall -c -o DwMararc.o DwMararc.c
54
 
 
55
 
DwRadioGatun.o: DwRadioGatun.c DwRadioGatun.h DwStr.h
56
 
        $(CC) $(FLAGS) -Wall -c -o DwRadioGatun.o DwRadioGatun.c
57
 
 
58
 
DwTcpSocket.o:  DwTcpSocket.c DwStr.h DwSocket.h
59
 
        $(CC) $(FLAGS) -Wall -c -o DwTcpSocket.o DwTcpSocket.c
60
 
 
61
 
DwUdpSocket.o:  DwUdpSocket.c DwStr.h DwSocket.h
62
 
        $(CC) $(FLAGS) -Wall -c -o DwUdpSocket.o DwUdpSocket.c
63
 
 
64
 
DwSocket.o:     DwSocket.c DwStr.h DwSocket.h
65
 
        $(CC) $(FLAGS) -Wall -c -o DwSocket.o DwSocket.c
66
 
 
67
 
DwSys.o:        DwSys.c DwStr.h
68
 
        $(CC) $(FLAGS) -Wall -c -o DwSys.o DwSys.c
69
 
 
70
 
RandomPrime:    RandomPrime.c
71
 
        $(CC) -O3 -o RandomPrime RandomPrime.c
72
 
 
73
 
DwRandPrime.h: RandomPrime
74
 
        if [ -e /dev/urandom ] ; then ./RandomPrime > DwRandPrime.h ; fi
75
 
 
76
 
DwHash.o:       DwHash.c DwStr.h DwRandPrime.h DwHash.h
77
 
        $(CC) $(FLAGS) -Wall -c -o DwHash.o DwHash.c
78
 
 
79
 
DwRecurse.o:    DwRecurse.c DwRecurse.h
80
 
        $(CC) $(FLAGS) -Wall -c -o DwRecurse.o DwRecurse.c
81
 
 
82
 
DwDict.o:       DwDict.c DwStr.h DwRandPrime.h DwDict.h
83
 
        $(CC) $(FLAGS) -Wall -c -o DwDict.o DwDict.c
84
 
 
85
 
Test:           Test.c DwStr.o DwStr.h DwStr_functions.h $(OBJS)
86
 
        $(CC) $(FLAGS) -Wall -o Test Test.c $(OBJS)
87
 
 
88
 
Deadwood:       DwMain.c $(OBJS) DwStr_functions.h version.h
89
 
        $(CC) $(FLAGS) -Wall -o Deadwood DwMain.c $(OBJS) -lrt
90