Makefile 1.09 KB
Newer Older
1 2
AXIS_USABLE_LIBS = UCLIBC GLIBC
AXIS_AUTO_DEPEND = yes
Mikhail Karpenko's avatar
Mikhail Karpenko committed
3
#include $(AXIS_TOP_DIR)/tools/build/Rules.axis
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

INSTDIR    = $(prefix)/usr/local/sbin/
OTHERDIR   = $(prefix)/usr/html/
PHPDIR     = $(prefix)/usr/html/
INSTMODE   = 0755
INSTOTHER  = 0644
INSTPHP    = 0644
INSTOWNER  = root
INSTGROUP  = root

INCDIR     = $(prefix)/include

PROGS      = camogm
PHPFILES   = camogmstate.php


20
SRCS = camogm.c camogm_ogm.c camogm_jpeg.c camogm_mov.c camogm_kml.c camogm_read.c
21

22
OBJS = camogm.o camogm_ogm.o camogm_jpeg.o camogm_mov.o camogm_kml.o camogm_read.o
23

Mikhail Karpenko's avatar
Mikhail Karpenko committed
24 25
CFLAGS   += -Wall -I$(ELPHEL_KERNEL_DIR)/include/elphel
#CFLAGS   += -Wall -I$(INCDIR) -I$(ELPHEL_KERNEL_DIR)/include/elphel
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

all: $(PROGS)

$(PROGS): $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -logg  -o $@
install: $(PROGS)
	$(INSTALL) -d $(INSTDIR)
	$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)
#already installed with ccam.cgi
	$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) qt_source $(prefix)/etc
	$(INSTALL) -m $(INSTPHP)  -o $(INSTOWNER) -g $(INSTGROUP) $(PHPFILES) $(PHPDIR)
clean:
	rm -rf $(PROGS) *.o *~

configsubs: