diff --git a/linux/Makefile b/linux/Makefile index a3bf4516..dd3b5feb 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,12 +1,15 @@ SHELL = /bin/sh CC = gcc - +SYS := $(shell gcc -dumpmachine) CFLAGS = -O3 -std=gnu99 INCLUDE = -I../src/gpacmp4/ -I../src/libpng -I../src/zlib ALL_FLAGS = -Wno-write-strings -D_FILE_OFFSET_BITS=64 LDFLAGS = -lm +ifneq (, $(findstring linux, $(SYS))) +CFLAGS +=-DGPAC_CONFIG_LINUX +endif TARGET = ccextractor OBJS_DIR = objs