This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/10606 Change subject: Makefiles: Add "make install" target ...................................................................... Makefiles: Add "make install" target Change-Id: Ic6835ce55930c60f909e140878c4abab8628e077 --- M firmware/Makefile M host/Makefile 2 files changed, 12 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/06/10606/1 diff --git a/firmware/Makefile b/firmware/Makefile index ca22bdd..48ae18b 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -234,3 +234,7 @@ clean: -rm -fR $(OBJ)/*.o $(BIN)/*.bin $(BIN)/*.elf $(BIN)/*.elf.txt $(BIN)/*.map $(BIN)/*.lst `find . -name \*.p` + +install: + mkdir -p $(DESTDIR)/usr/share/simtrace2 + cp $(BIN)/*.bin $(DESTDIR)/usr/share/simtrace2 diff --git a/host/Makefile b/host/Makefile index 02f2a8f..a7ef582 100644 --- a/host/Makefile +++ b/host/Makefile @@ -1,7 +1,9 @@ LDFLAGS=`pkg-config --libs libusb-1.0 libosmocore` -losmocore CFLAGS=-Wall -g -all: simtrace2-remsim simtrace2-remsim-usb2udp simtrace2-list simtrace2-sniff +APPS=simtrace2-remsim simtrace2-remsim-usb2udp simtrace2-list simtrace2-sniff + +all: $(APPS) simtrace2-remsim: simtrace2-remsim.o apdu_dispatch.o simtrace2-discovery.o libusb_util.o $(CC) -o $@ $^ $(LDFLAGS) -losmosim @@ -19,4 +21,8 @@ $(CC) $(CFLAGS) `pkg-config --cflags libusb-1.0 libosmocore` -o $@ -c $^ clean: - @rm -f simtrace2-remsim simtrace2-remsim-usb2udp simtrace2-list simtrace2-sniff *.o + @rm -f *.o $(APPS) + +install: $(APPS) + mkdir -p $(DESTDIR)/usr/local/bin + cp $(APPS) $(DESTDIR)/usr/local/bin/ -- To view, visit https://gerrit.osmocom.org/10606 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ic6835ce55930c60f909e140878c4abab8628e077 Gerrit-Change-Number: 10606 Gerrit-PatchSet: 1 Gerrit-Owner: Harald Welte <laforge at gnumonks.org> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180826/e9a201f2/attachment.htm>