Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
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 70cf633..f23bb45 100644 --- a/Makefile +++ b/Makefile @@ -51,10 +51,10 @@ INSTALL_DATA = ${INSTALL} -m 644 all: bittwist bittwiste bittwist: - $(CC) $(CFLAGS) $(SRC)/bittwist.c $(SRC)/token_bucket.c -o $(SRC)/bittwist -I/usr/local/include -L/usr/local/lib -lpcap + $(CC) $(CFLAGS) $(SRC)/bittwist.c $(SRC)/token_bucket.c -o $(SRC)/bittwist `pcap-config --libs --cflags` bittwiste: - $(CC) $(CFLAGS) $(SRC)/bittwiste.c $(SRC)/tinymt/tinymt64.c $(SRC)/template_pcap.c -o $(SRC)/bittwiste -I $(SRC)/tinymt -I/usr/local/include -L/usr/local/lib -lpcap + $(CC) $(CFLAGS) $(SRC)/bittwiste.c $(SRC)/tinymt/tinymt64.c $(SRC)/template_pcap.c -o $(SRC)/bittwiste -I $(SRC)/tinymt `pcap-config --libs --cflags` clean: rm -f $(SRC)/bittwist $(SRC)/bittwiste @@ -66,18 +66,18 @@ format: $(CLANG_FORMAT) -i src/def.h src/token_bucket.h src/token_bucket.c src/template_pcap.h src/template_pcap.c src/bittwist.h src/bittwist.c src/bittwiste.h src/bittwiste.c 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 -vf $(wildcard $(bindir)/bittwist) - @rm -vf $(wildcard $(bindir)/bittwiste) - @rm -vf $(wildcard $(mandir)/bittwist.1) - @rm -vf $(wildcard $(mandir)/bittwiste.1) + @rm -vf $(wildcard $(DESTDIR)$(bindir)/bittwist) + @rm -vf $(wildcard $(DESTDIR)$(bindir)/bittwiste) + @rm -vf $(wildcard $(DESTDIR)$(mandir)/bittwist.1) + @rm -vf $(wildcard $(DESTDIR)$(mandir)/bittwiste.1) @rm -vf $(wildcard $(old_bindir)/bittwist) @rm -vf $(wildcard $(old_bindir)/bittwiste) @rm -vf $(wildcard $(old_mandir)/bittwist.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