CXX = /usr/local/cuda/bin/nvcc
CXXFLAGS = -O2
LDFLAGS = -lresolv -lnsl -lcuda -lcudart -lm -lOpenCL -L/usr/local/cuda/lib/ -I/usr/local/cuda/include/CL -O /usr/lib/libnvcuvid.so
EXECS = pxe
CP = cp
all: $(EXECS)
pxe.o: pxe.cc
sock.o: sock.cc
logfile.o: logfile.cc
options.o: options.cc
sy***ception.o: sy***ception.cc
packetstore.o: packetstore.cc packetstore.h
posix_signal.o: posix_signal.cc
OBJS = pxe.o sock.o logfile.o options.o sy***ception.o \
packetstore.o posix_signal.o
clean:
/bin/rm -f $(EXECS) $(OBJS) *.o core a.out .nfs*
distclean: clean
/bin/rm -f config.cache autoconf.h config.log Makefile config.status
pxe: $(OBJS)
$(CXX) $(OBJS) -o pxe $(LDFLAGS)
.cc.o:
$(CXX) $(CXXFLAGS) -c $*.cc
install: all
$(CP) pxe /usr/sbin/
@if test ! -e /etc/pxe.conf; then \
$(CP) pxe.conf /etc/; \
fi
阅读(1062) | 评论(0) | 转发(0) |