/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-12 04:45:35 UTC
  • Revision ID: csa@dside.dyndns.org-20111212044535-6no1q7g230i8uvlv
multithread preprocessing of ipecamera frames and code reorganization

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
BINARIES += pci
2
 
 
3
 
INCDIR += ./
4
 
LDINC += $(addprefix -L ,$(LIBDIR))
5
 
LDFLAGS += -pthread -lufodecode
6
 
CFLAGS += -pthread
7
 
DESTDIR ?= /usr/local
8
 
 
9
 
all: $(BINARIES)
10
 
 
11
 
.PHONY: all depend clean
12
 
 
13
 
include common.mk
14
 
 
15
 
###############################################################
16
 
# Target definitions
17
 
 
18
 
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 
19
 
 
20
 
libpcilib.so: $(OBJECTS)
21
 
        echo -e "LD \t$@"
22
 
        $(Q)$(CC) $(LDINC) $(LDFLAGS) $(CFLAGS) -shared -o $@ $(OBJECTS)
23
 
 
24
 
pci: cli.o pcitool/sysinfo.o libpcilib.so
25
 
        echo -e "LD \t$@"
26
 
        $(Q)$(CC) $(LDINC) $(LDFLAGS) $(CFLAGS) -L. -lpcilib -o $@ $<
27
 
 
28
 
install: pci
29
 
        install -m 644 pcilib.h $(DESTDIR)/include
30
 
        install -m 644 ipecamera/ipecamera.h $(DESTDIR)/include
31
 
        if [ -d $(DESTDIR)/lib64 ]; then install -m 755 libpcilib.so $(DESTDIR)/lib64; else install -m 755 libpcilib.so $(DESTDIR)/lib; fi
32
 
        install -m 755 pci $(DESTDIR)/bin
33
 
        ldconfig
34
 
 
35
 
clean:
36
 
        @echo -e "CLEAN \t$(shell pwd)"
37
 
        -$(Q)rm -f $(addprefix $(BINDIR)/,$(BINARIES))
38
 
        -$(Q)rm -f $(OBJ)
39
 
        -$(Q)rm -f $(DEPEND)