Subversion Repositories f9daq

Rev

Rev 15 | Blame | Compare with Previous | Last modification | View Log | RSS feed

CC = gcc


INC=-I.  -I$(ROOTINC)

LIBS=$(ROOTLIB) -L./ -lm 




SRC     = .
INC1     = -I. -I../lib -I/usr/include
DBG     = 
CFLAGS  = $(DBG) $(INC)  -fPIC -DLINUX -Wall -g

SHLIB   =  -lpcivme -lz

OBJ_FILES = PtsModule.o


all: ptsvmusb

ptsvmusb: PtsModule.c VmUsbStack_cvi.c   wusbxx_dll.c libxxusb.c
        $(CXX) $(CFLAGS)  -DWVMUSB PtsModule.c VmUsbStack_cvi.c   wusbxx_dll.c libxxusb.c  -lusb -lz -o ptsvmusb

pts: PtsModule.c  wienvme_dll.c 
        $(CXX) $(CFLAGS)  PtsModule.c  wienvme_dll.c    $(SHLIB) -o pts
#       cp sa02_ctrl ../bin
        
        



        
.cpp.o:
        $(CXX) -c $(CFLAGS) $<
        ar r $(VMELIB) $@

.C.o:
        $(CXX) -c $(CFLAGS) $<
        ar r $(VMELIB) $@


.cc.o:
        $(CXX) -c $(CFLAGS) $<
        ar r $(VMELIB) $@

.c.o:
        $(CXX) -c $(CFLAGS) $<
        ar r $(VMELIB) $@





clean:
        rm pts


tgz:
        tar czvf pts.tgz Makefile *.c *.h *.C *.cc *.hh