summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-02-18 23:51:35 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-02-18 23:51:35 +0100
commitc428e3496a3c5f8046a7f1778b5bdcb551993e7b (patch)
tree03d56325bc6926f4842bd776cbe45c9e56357fdd /Makefile
parentf08ec5dd017eecb20b69e664d9b80184969d08d9 (diff)
downloadipecamera-c428e3496a3c5f8046a7f1778b5bdcb551993e7b.tar.gz
ipecamera-c428e3496a3c5f8046a7f1778b5bdcb551993e7b.tar.bz2
ipecamera-c428e3496a3c5f8046a7f1778b5bdcb551993e7b.tar.xz
ipecamera-c428e3496a3c5f8046a7f1778b5bdcb551993e7b.zip
Initial support for registers, infrastructure only
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 41af90e..ae98ee0 100644
--- a/Makefile
+++ b/Makefile
@@ -10,14 +10,18 @@ all: $(BINARIES)
include common.mk
-
###############################################################
# Target definitions
+OBJECTS = pci.o ipecamera.o tools.o
+
+libpcilib.so: $(OBJECTS)
+ echo -e "LD \t$@"
+ $(Q)$(CC) $(LDINC) $(LDFLAGS) $(CFLAGS) -shared -o $@ $(OBJECTS)
-pci: pci.o tools.o
+pci: cli.o libpcilib.so
echo -e "LD \t$@"
- $(Q)$(CC) $(LDINC) $(LDFLAGS) $(CFLAGS) -o $@ $< tools.o
+ $(Q)$(CC) $(LDINC) $(LDFLAGS) $(CFLAGS) -L. -lpcilib -o $@ $<
clean:
@echo -e "CLEAN \t$(shell pwd)"