# # File: # Makefile # # Description: # Makefile for the JLAB extensions to the GEFANUC Controller API # # # $Date$ # $Rev$ # DEBUG=1 LINUXVME_LIB ?= ${CODA}/extensions/linuxvme/libs LINUXVME_INC ?= ${CODA}/extensions/linuxvme/include CROSS_COMPILE = CC = $(CROSS_COMPILE)gcc AR = ar RANLIB = ranlib CFLAGS = -I${LINUXVME_INC} -I. -I/usr/include \ -L${LINUXVME_LIB} -L. ifdef DEBUG CFLAGS += -Wall -g endif PROGS = c1190LibTest all: $(PROGS) install: all clean distclean: @rm -f $(PROGS) *~ *.so %: %.c echo "Making $@" $(CC) $(CFLAGS) -o $@ $(@:%=%.c) $(LIBS_$@) -lrt -ljvme -lti -lcaen1190 .PHONY: all clean distclean