From 4902bb3bd0bba7839921baa099abe311f2e9391d Mon Sep 17 00:00:00 2001 From: musil Date: Fri, 10 Nov 2006 14:31:45 +0000 Subject: makefile fno-strict-aliasing bug float to t_float svn path=/trunk/externals/iem/iem_ambi/; revision=6256 --- src/makefile_linux | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/makefile_linux (limited to 'src/makefile_linux') diff --git a/src/makefile_linux b/src/makefile_linux new file mode 100644 index 0000000..d250fe9 --- /dev/null +++ b/src/makefile_linux @@ -0,0 +1,51 @@ +current: all + +.SUFFIXES: .pd_linux + +INCLUDE = -I. -I/usr/local/src/pd/src + +LDFLAGS = -export-dynamic -shared +LIB = -ldl -lm -lpthread + +#select either the DBG and OPT compiler flags below: + +CFLAGS = -DPD -DUNIX -W -Werror -Wno-unused \ + -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \ + -DDL_OPEN + +SYSTEM = $(shell uname -m) + +# the sources + +SRC = ambi_decode.c \ + ambi_decode2.c \ + ambi_decode3.c \ + ambi_decode_cube.c \ + ambi_encode.c \ + ambi_rot.c \ + iem_ambi.c + +TARGET = iem_ambi.pd_linux + + +OBJ = $(SRC:.c=.o) + +# +# ------------------ targets ------------------------------------ +# + +clean: + rm $(TARGET) + rm *.o + +all: $(OBJ) + @echo :: $(OBJ) + $(LD) $(LDFLAGS) -o $(TARGET) *.o $(LIB) + strip --strip-unneeded $(TARGET) + +$(OBJ) : %.o : %.c + $(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c + + + + -- cgit v1.2.1