Commit 9a60ffa3 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Add 'install' target to Makefile

parent 1f977a23
PROGS = camogm
PHPFILES = camogmstate.php
CONFIGS = qt_source
SRCS = camogm.c camogm_ogm.c camogm_jpeg.c camogm_mov.c camogm_kml.c camogm_read.c index_list.c
OBJS = camogm.o camogm_ogm.o camogm_jpeg.o camogm_mov.o camogm_kml.o camogm_read.o index_list.o
CFLAGS += -Wall -I$(ELPHEL_KERNEL_DIR)/include/elphel
CFLAGS += -Wall -I$(STAGING_KERNEL_DIR)/include/elphel
LDLIBS += -logg -pthread -lm
SYSCONFDIR = /etc/
BINDIR = /usr/bin/
WWW_PAGES = /www/pages
all: $(PROGS)
$(PROGS): $(OBJS)
$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
install:
install -d $(DESTDIR)$(BINDIR)
install -m 0755 -t $(DESTDIR)$(BINDIR) $(PROGS)
install -d $(DESTDIR)$(SYSCONFDIR)
install -m 0644 -t $(DESTDIR)$(SYSCONFDIR) $(CONFIGS)
clean:
rm -rf $(PROGS) *.o *~
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment