Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3
bittwist
bittwist-makefile.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bittwist-makefile.diff of Package bittwist
diff --git a/Makefile b/Makefile index e681d85..f121fe3 100644 --- a/Makefile +++ b/Makefile @@ -19,22 +19,22 @@ INSTALL_DATA = ${INSTALL} -m 644 all: bittwist bittwiste bittwist: - $(CC) $(CFLAGS) $(SRC)/bittwist.c -o $(SRC)/bittwist -I/usr/local/include -L/usr/local/lib -lpcap + $(CC) $(CFLAGS) $(SRC)/bittwist.c -o $(SRC)/bittwist `pcap-config --libs --cflags` bittwiste: - $(CC) $(CFLAGS) $(SRC)/bittwiste.c -o $(SRC)/bittwiste -I/usr/local/include -L/usr/local/lib -lpcap + $(CC) $(CFLAGS) $(SRC)/bittwiste.c -o $(SRC)/bittwiste `pcap-config --libs --cflags` clean: rm -f $(SRC)/bittwist $(SRC)/bittwiste install: - mkdir -p $(bindir) - chmod 755 $(bindir) - $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwiste $(bindir) - mkdir -p $(mandir) - chmod 755 $(mandir) - $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwiste.1 $(mandir) + mkdir -p $(DESTDIR)$(bindir) + chmod 755 $(DESTDIR)$(bindir) + $(INSTALL_PROGRAM) $(SRC)/bittwist $(SRC)/bittwiste $(DESTDIR)$(bindir) + mkdir -p $(DESTDIR)$(mandir) + chmod 755 $(DESTDIR)$(mandir) + $(INSTALL_DATA) $(DOC)/bittwist.1 $(DOC)/bittwiste.1 $(DESTDIR)$(mandir) uninstall: - rm -f $(bindir)/bittwist $(bindir)/bittwiste - rm -f $(mandir)/bittwist.1 $(mandir)/bittwiste.1 + rm -f $(bindir)/bittwist $(DESTDIR)$(bindir)/bittwiste + rm -f $(mandir)/bittwist.1 $(DESTDIR)$(mandir)/bittwiste.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor