Fixed Makefile for Linux

This commit is contained in:
Matteo Paonessa 2015-05-21 00:26:33 +02:00
parent 83b5123454
commit 3af3101937
5 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
bin_PROGRAMS = caesiumclt
caesiumclt_SOURCES = main.c utils.c lossless.c compress.c
caesiumclt_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg -std=c99
caesiumclt_OBJCFLAGS = -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg
caesiumclt_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg -lm -std=c99
caesiumclt_OBJCFLAGS = -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg -lm

View File

@ -253,8 +253,8 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
caesiumclt_SOURCES = main.c utils.c lossless.c compress.c
caesiumclt_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg -std=c99
caesiumclt_OBJCFLAGS = -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg
caesiumclt_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg -lm -std=c99
caesiumclt_OBJCFLAGS = -D_FILE_OFFSET_BITS=64 -ljpeg -lturbojpeg -lm
all: all-am
.SUFFIXES:

View File

@ -3,6 +3,7 @@
#include <jpeglib.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "lossless.h"
#include "utils.h"

View File

@ -1,3 +1,5 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <stdlib.h>
#include <limits.h>
#include <stdio.h>
@ -7,9 +9,9 @@
#include <jpeglib.h>
#include <turbojpeg.h>
#include <string.h>
#include <sys/stat.h>
#include <getopt.h>
#include <ctype.h>
#include <linux/limits.h>
#include "utils.h"
@ -83,6 +85,7 @@ void print_progress(int current, int max, char* message) {
//TODO Recheck
int mkpath(const char *pathname, mode_t mode) {
//Need include in Linux, not on OSX
char parent[PATH_MAX], *p;
/* make a parent directory path */
strncpy(parent, pathname, sizeof(parent));

View File

@ -3,6 +3,7 @@
#include <jpeglib.h>
#include <turbojpeg.h>
#include <sys/types.h>
#define APP_VERSION "1.9.9 BETA"
#define BUILD 20150519