Commit 6fa0c921 authored by Björn Isacsson's avatar Björn Isacsson
Browse files

Merge branch 'master' of https://git.cs.lth.se/eda040/C-camera

parents 1e88394c 24fb1f94
# This makefile is for cross-compiling on student computers, i.e. login.student.lth.se
COMMON_DIR=/usr/local/cs/rtp
COMMON_DIR?=/usr/local/cs/rtp
COMPILER_DIR=${COMMON_DIR}/tools/comptools-mips-r12_1.2-0/comptools-mips-r12_1.2-0_amd64/mipsisa32r2el/r12
# Absolute path to the Axis Software Development Kit containing camera specific libs and headers, used for capture.h and its corresponding object file (i.e. libcapture)
......@@ -24,6 +24,7 @@ AXIS_LIBCAP=-lcapture # This is needed for the native camera classes to fetch im
AXIS_LIBCAP_DEP=-ldbus-1 -lgobject-2.0 -ldbus-glib-1 -lgthread-2.0 -lglib-2.0 -lrapp -lpthread # Dependencies of libcapture
LDFLAGS+=${AXIS_LIBCAP} ${AXIS_LIBCAP_DEP} ${AXIS_LIBCAP} -L${AXIS_PATH}/lib -L${AXIS_PATH}/usr/lib # Specify which libs are used and set search path for them
CFLAGS+=-O3 -g -Wall
LDLIBS+=-lpthread
http_server: http_server.c camera.c Makefile
${CC} ${CPPFLAGS} ${CFLAGS} $< ${LDFLAGS} -lpthread -o $@
http_server: http_server.o camera.o Makefile
${CC} ${CPPFLAGS} ${CFLAGS} http_server.o camera.o ${LDFLAGS} -lpthread -o $@
#include "camera.h"
#include <stdio.h>
camera* camera_open(){
camera *cam = malloc(sizeof(camera));
......
Supports Markdown
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