diff -ur /tmp/ming-0.2a/src/Makefile ./src/Makefile --- src/Makefile 2001-08-17 17:06:01.000000000 +0000 +++ src/Makefile 2003-11-27 20:06:20.802157704 +0000 @@ -1,7 +1,7 @@ - #CC = gcc -g -pg -a # profiling flags #CC = gcc -O5 -CC = gcc -g -Wall +CC = gcc +CFLAGS = -g -Wall LIBDIR = /usr/local/lib @@ -16,12 +16,15 @@ actioncompiler/compileaction.o \ actioncompiler/assembler.o +%.o: %.c + ${CC} ${CFLAGS} -fPIC -c -o $@ $< + all: dynamic dynamic: ${OFILES} cd blocks && make cd actioncompiler && make - ${CC} ${OFILES} ${COMPILEROFILES} blocks/*.o -shared -fpic \ + ${CC} ${CFLAGS} ${OFILES} ${COMPILEROFILES} blocks/*.o -shared \ -o libming.so cp libming.so .. diff -ur /tmp/ming-0.2a/src/actioncompiler/Makefile ./src/actioncompiler/Makefile --- src/actioncompiler/Makefile 2001-08-17 17:35:48.000000000 +0000 +++ src/actioncompiler/Makefile 2003-11-27 20:07:50.409535312 +0000 @@ -1,7 +1,8 @@ #CC = gcc -g -pg -a # profiling flags #CC = gcc -O5 -CC = gcc -g -Wall +CC = gcc +CFLAGS = -g -Wall DEBUG = --debug @@ -18,6 +19,9 @@ OFILES = ${MOSTFILES} compileaction.o +%.o: %.c + ${CC} ${CFLAGS} -fPIC -c -o $@ $< + all: ${OFILES} clean: diff -ur /tmp/ming-0.2a/src/blocks/Makefile ./src/blocks/Makefile --- src/blocks/Makefile 2001-08-17 17:06:05.000000000 +0000 +++ src/blocks/Makefile 2003-11-27 20:06:20.802157704 +0000 @@ -1,6 +1,7 @@ #CC = gcc -g -pg -a # profiling flags #CC = gcc -O5 -CC = gcc -g -Wall +CC = gcc +CFLAGS = -g -Wall OFILES = output.o character.o shape.o morph.o fillstyle.o matrix.o font.o \ block.o cxform.o text.o action.o button.o placeobject.o \ @@ -9,6 +10,9 @@ dbl.o linestyle.o gradient.o bitmap.o error.o input.o \ placeobject.o #sound.o +%.o: %.c + ${CC} ${CFLAGS} -fPIC -c -o $@ $< + all: ${OFILES} clean: