From c56e1e031dd015c7e2d1ee5ac48a8fe6bfab244b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 29 Jun 2009 12:43:27 +0000 Subject: fixed --export-dynamic and make makefile be the same as makefile_linux svn path=/trunk/externals/iem/iemgui/; revision=11832 --- src/makefile | 61 +----------------------------------------------------- src/makefile_linux | 2 +- 2 files changed, 2 insertions(+), 61 deletions(-) (limited to 'src') diff --git a/src/makefile b/src/makefile index 8ad0630..630865f 100644 --- a/src/makefile +++ b/src/makefile @@ -1,60 +1 @@ -current: all - -.SUFFIXES: .pd_linux - -PDSOURCE ?= /usr/local/src/pd/src - -INCLUDE = -I. -I${PDSOURCE} - -LDFLAGS = -export-dynamic -shared -LIB = -ldl -lm -lpthread - -#select either the DBG and OPT compiler flags below: - -CFLAGS = -DPD -DUNIX -W -Wno-unused \ - -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \ - -DDL_OPEN -fPIC - -SYSTEM = $(shell uname -m) - -# the sources - -SRC = room_sim_2d.c \ - room_sim_3d.c \ - cube_sphere.c \ - sym_dial.c \ - iem_image.c \ - iem_vu.c \ - hfadl_scale.c \ - hfadr_scale.c \ - vfad_scale.c \ - numberbox_matrix.c \ - iem_event.c \ - iemgui.c - -TARGET = iemgui.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) - mv $(TARGET) .. - -$(OBJ) : %.o : %.c - $(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c - - - - - +include makefile_linux diff --git a/src/makefile_linux b/src/makefile_linux index 7736cf1..100f81f 100644 --- a/src/makefile_linux +++ b/src/makefile_linux @@ -4,7 +4,7 @@ current: all INCLUDE = -I. -I/usr/local/src/pd/src -LDFLAGS = -export-dynamic -shared +LDFLAGS = --export-dynamic -shared LIB = -ldl -lm -lpthread #select either the DBG and OPT compiler flags below: -- cgit v1.2.1