Commit c7e87b69 authored by Jose Jimenez's avatar Jose Jimenez Committed by Federico Vaga

libtools/Makefile & tools/Makefile: Install rules defined

parent 5f7652ca
DESTDIR ?= /usr/local
LIBADC = ../lib/
ZIO ?= ../zio
......@@ -8,10 +10,15 @@ DEMOS := fald-simple-acq fald-acq fald-trg-cfg
DEMOS += fald-simple-get-conf
DEMOS += fald-test
all: demo
demo: $(DEMOS)
install:
install -d $(DESTDIR)/bin
install -D $(DEMOS) $(DESTDIR)/bin
%: %.c $(LIBADC)/libfmcadc.a
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
......
# user-space tools for spec-fine-delay
M = $(shell /bin/pwd)/../kernel
DESTDIR ?= /usr/local
HOST_EXTRACFLAGS += -I$(M) -I$(ZIO)/include -Wno-trigraphs -Wall -ggdb
......@@ -17,6 +19,10 @@ clean:
# make nothing for module_install, but avoid errors
module_install:
install:
install -d $(DESTDIR)/bin
install -D $(hostprogs-y) $(DESTDIR)/bin
# we need this as we are out of the kernel
%: %.c
$(HOSTCC) $(HOST_EXTRACFLAGS) -O2 -Wall $^ -o $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment