~ubuntu-branches/ubuntu/trusty/maradns/trusty

« back to all changes in this revision

Viewing changes to deadwood-3.0.05/src/Makefile

  • Committer: Package Import Robot
  • Author(s): Nicholas Bamber
  • Date: 2012-01-06 08:47:03 UTC
  • mfrom: (1.1.17) (10.1.12 experimental)
  • Revision ID: package-import@ubuntu.com-20120106084703-e3kw2c5a6djne2gw
Tags: 2.0.04-1
* Allowed watch file to pick up 2.x releases
* New upstream release
* Refreshed patches
* Added override to stop deletion of server/MaraDNS.c.orig
* Added patch to stop corruption of deadwood source code
* Added public domain stanza trying to give useful information about
  the public domain status (or otherwise) of certain files.
* Updated doc-base index file
* Split out documentation into separate package as it is written from
  an upstream point of view
* Added askmara-tcp tool to maradns-zoneserver package
* Added experimental maradns-deadwood package (Closes: #612229)
* Turned on compilation for IPv6 (Closes: #477787)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
        DwRecurse.o \
21
21
        DwDict.o
22
22
 
23
 
all:    Deadwood version.h
 
23
all:    deadwood version.h
24
24
 
25
25
# Since some systems may not have /dev/urandom (Windows, *cough* *cough*), we 
26
26
# keep a randomly generated prime around 
30
30
 
31
31
clean:
32
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 
 
33
                deadwood foo* dw_cache DwHash DwCompress *stackdump core
 
34
                if [ -f DwRandPrime.h.bak ]; then mv DwRandPrime.h.bak DwRandPrime.h; fi
39
35
 
40
36
version.h:      
41
37
        ./make.version.h
71
67
        $(CC) -O3 -o RandomPrime RandomPrime.c
72
68
 
73
69
DwRandPrime.h: RandomPrime
74
 
        if [ -e /dev/urandom ] ; then ./RandomPrime > DwRandPrime.h ; fi
 
70
        if [ -e /dev/urandom -a -f DwRandPrime.h ] ; then mv -f DwRandPrime.h DwRandPrime.h.bak ; ./RandomPrime > DwRandPrime.h ; fi
75
71
 
76
72
DwHash.o:       DwHash.c DwStr.h DwRandPrime.h DwHash.h
77
73
        $(CC) $(FLAGS) -Wall -c -o DwHash.o DwHash.c
85
81
Test:           Test.c DwStr.o DwStr.h DwStr_functions.h $(OBJS)
86
82
        $(CC) $(FLAGS) -Wall -o Test Test.c $(OBJS)
87
83
 
88
 
Deadwood:       DwMain.c $(OBJS) DwStr_functions.h version.h
89
 
        $(CC) $(FLAGS) -Wall -o Deadwood DwMain.c $(OBJS) 
 
84
deadwood:       DwMain.c $(OBJS) DwStr_functions.h version.h
 
85
        $(CC) $(FLAGS) -Wall -o deadwood DwMain.c $(OBJS)
90
86