svec: miscellaneous fixes in makefiles

parent 49ef964a
...@@ -25,5 +25,10 @@ all: modules ...@@ -25,5 +25,10 @@ all: modules
.PHONY: all modules clean help install modules_install .PHONY: all modules clean help install modules_install
modules clean help install modules_install: modules help install modules_install:
$(MAKE) -C $(LINUX) M=$(shell pwd) CPU=$(CPU) KVER=$(KVER) $@ $(MAKE) -C $(LINUX) M=$(shell pwd) CPU=$(CPU) KVER=$(KVER) $@
# be able to run the "clean" rule even if $(LINUX) is not valid
clean:
rm -rf *.o *~ .*.cmd *.ko *.mod.c .tmp_versions Module.symvers \
Module.markers modules.order
ENV ?= lab
CPU ?= L865
VME_INC ?= /acc/src/dsc/drivers/coht/vmebridge/include/ include /acc/src/dsc/co/Make.auto
VME_INC ?= /acc/src/dsc/drivers/coht/vmebridge/include/
CFLAGS += -g -Wall CFLAGS += -g -Wall
CFLAGS += -I $(VME_INC) CFLAGS += -I $(VME_INC)
LDFLAGS += -L /acc/local/L865/lib LDFLAGS += -L /acc/local/$(CPU)/lib
LDLIBS += -lvmebus LDLIBS += -lvmebus
all: vme all: vme.$(CPU)
vme: vme.o vme.$(CPU): vme.$(CPU).o
install-$(ENV):
dsc_install vme.$(CPU) /acc/dsc/$(ENV)/$(CPU)/bin
clean: clean:
rm -f *.o vme rm -f *.o *.$(CPU)
# These targets are called from ../Makefile, just do nothing # These targets are called from ../Makefile, just do nothing
modules install modules_install: modules install modules_install:
......
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