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