summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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)"