diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index f510ac3..0000000 --- a/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -BINARIES += pci - -INCDIR += ./ -LDINC += $(addprefix -L ,$(LIBDIR)) -LDFLAGS += -pthread -lufodecode -CFLAGS += -pthread -DESTDIR ?= /usr/local - -all: $(BINARIES) - -.PHONY: all depend clean - -include common.mk - -############################################################### -# Target definitions - -OBJECTS = pci.o pcitool/sysinfo.o register.o kmem.o irq.o dma.o event.o default.o tools.o dma/nwl.o dma/nwl_register.o dma/nwl_irq.o dma/nwl_engine.o dma/nwl_loopback.o ipecamera/model.o ipecamera/image.o - -libpcilib.so: $(OBJECTS) - echo -e "LD \t$@" - $(Q)$(CC) $(LDINC) $(LDFLAGS) $(CFLAGS) -shared -o $@ $(OBJECTS) - -pci: cli.o pcitool/sysinfo.o libpcilib.so - echo -e "LD \t$@" - $(Q)$(CC) $(LDINC) $(LDFLAGS) $(CFLAGS) -L. -lpcilib -o $@ $< - -install: pci - install -m 644 pcilib.h $(DESTDIR)/include - install -m 644 ipecamera/ipecamera.h $(DESTDIR)/include - if [ -d $(DESTDIR)/lib64 ]; then install -m 755 libpcilib.so $(DESTDIR)/lib64; else install -m 755 libpcilib.so $(DESTDIR)/lib; fi - install -m 755 pci $(DESTDIR)/bin - ldconfig - -clean: - @echo -e "CLEAN \t$(shell pwd)" - -$(Q)rm -f $(addprefix $(BINDIR)/,$(BINARIES)) - -$(Q)rm -f $(OBJ) - -$(Q)rm -f $(DEPEND) |