forked from epics_driver_modules/motorBase
0410c17f5c
- Use conditional (i.e., MPF_SERIAL) to simplify usage.
32 lines
941 B
Makefile
32 lines
941 B
Makefile
# Makefile.Vx
|
|
TOP = ../../..
|
|
include $(TOP)/config/CONFIG_APP
|
|
#----------------------------------------
|
|
# ADD MACRO DEFINITIONS AFTER THIS LINE
|
|
|
|
# If the EPICS GPIB Module from Benjamin Franksen is used,
|
|
# then remove the '#' from the following and add GPIB to
|
|
# the config/RELEASE file . If GPIB driver support is from
|
|
# EPICS base, then leave this line commented out.
|
|
#USR_CFLAGS += -DGPIB
|
|
|
|
SRCS.c += ../gpibIO.c
|
|
|
|
# The following is for device drivers that need serial
|
|
# or GPIB communication support via MPF. Define
|
|
# MPF_SERIAL in <ioctop>/config/RELEASE.
|
|
ifdef MPF_SERIAL
|
|
SRCS.cc += ../serialIOMPF.cc
|
|
MPFLIBOBJS = $(SRCS.cc:../%.cc=%.o) $(SRCS.c:../%.c=%.o)
|
|
motorCOM_mpf: $(MPFLIBOBJS)
|
|
$(LINK.c) $@ $(MPFLIBOBJS)
|
|
INSTALLS += motorCOM_mpf
|
|
endif
|
|
|
|
#Note that the command line that builds the
|
|
#library $(LIBNAME) may be HUGE (>3kB)
|
|
#
|
|
include $(TOP)/config/RULES.Vx
|
|
#----------------------------------------
|
|
# ADD RULES AFTER THIS LINE
|