~ubuntu-branches/ubuntu/trusty/cdpr/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Julian Taylor
  • Date: 2011-08-21 16:25:51 UTC
  • Revision ID: james.westby@ubuntu.com-20110821162551-fss9uaw4qnhyijfl
Tags: 2.4-1ubuntu1
* debian/patches/0003-fix-as-needed-build.patch:
  - fix build with ld --as-needed (LP: #803174)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Build for Solaris with the pcap headers/libs one dir up
17
17
#CFLAGS = -DSOLARIS -Wall -I. -I../libpcap-0.7.1 -L../libpcap-0.7.1 -ggdb
18
18
 
19
 
LDFLAGS = -lpcap
 
19
LIBS = -lpcap
20
20
 
21
21
# Build for Solaris
22
22
#LDFLAGS = -lsocket -lnsl -lpcap
33
33
        gcc -c $(CFLAGS) conffile.c
34
34
 
35
35
cdpr: cdpr.o cdprs.o conffile.o
36
 
        gcc $(LDFLAGS) -o cdpr cdpr.o cdprs.o conffile.o
 
36
        gcc $(LDFLAGS) -o cdpr cdpr.o cdprs.o conffile.o $(LIBS)
37
37
 
38
38
install: all
39
39
        mkdir -p $(DESTDIR)$(prefix)/sbin/