Commit c5247adb authored by Mikhail Karpenko's avatar Mikhail Karpenko

Clean up Makefile

parent 423a8a31
AXIS_USABLE_LIBS = UCLIBC GLIBC
#include $(AXIS_TOP_DIR)/tools/build/Rules.axis
INSTDIR = $(prefix)/usr/local/sbin/
PHPDIR = $(prefix)/usr/html/
CONFDIR = $(prefix)/etc/
INSTMODE = 0755
INSTOTHER = 0644
INSTOWNER = root
INSTGROUP = root
INCDIR = $(prefix)/include
PROGS = imgsrv PROGS = imgsrv
#OTHERFILES = exif_init.php
PHPCLI = exif.php imu_setup.php start_gps_compass.php PHPCLI = exif.php imu_setup.php start_gps_compass.php
CONFFILES = Exif_template.xml CONFFILES = Exif_template.xml
SRCS = imgsrv.c SRCS = imgsrv.c
OBJS = imgsrv.o OBJS = imgsrv.o
CFLAGS += -Wall -I$(ELPHEL_KERNEL_DIR)/include/elphel CFLAGS += -Wall -I$(ELPHEL_KERNEL_DIR)/include/elphel
#CFLAGS += -Wall -I$(INCDIR) -I$(ELPHEL_KERNEL_DIR)/include
#CFLAGS += -Wall -I$(INCDIR) -I$(AXIS_KERNEL_DIR)/include -save-temps -dA -dP
all: $(PROGS) all: $(PROGS)
$(PROGS): $(OBJS) $(PROGS): $(OBJS)
$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
# cris-strip -s $@
install: $(PROGS)
$(INSTALL) -d $(INSTDIR)
$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)
$(INSTALL) -d $(PHPDIR)
$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PHPCLI) $(PHPDIR)
$(INSTALL) -d $(CONFDIR)
$(INSTALL) -m $(INSTOTHER) -o $(INSTOWNER) -g $(INSTGROUP) $(CONFFILES) $(CONFDIR)
clean: clean:
rm -rf $(PROGS) *.o core rm -rf $(PROGS) *.o core
dependency:
make depend
depend:
makedepend -Y -- $(CFLAGS) -- $(SRCS) 2>/dev/null
touch dependency
# DO NOT DELETE
...@@ -24,18 +24,12 @@ ...@@ -24,18 +24,12 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
//#include <ctype.h>
//#include <getopt.h>
#include <time.h> #include <time.h>
#include <string.h> #include <string.h>
#include <syslog.h> #include <syslog.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
//#include <elphel/c313a.h>
//#include <elphel/exifa.h>
#include <c313a.h> #include <c313a.h>
#include <exifa.h> #include <exifa.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
......
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