aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/makefile61
-rw-r--r--src/makefile_linux2
2 files changed, 2 insertions, 61 deletions
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: