split config.c in 1000 parts; new main; new unfinished objective-C module
diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in
index 588e953..b48a4ab 100644
--- a/Modules/Makefile.pre.in
+++ b/Modules/Makefile.pre.in
@@ -29,9 +29,6 @@
LIBM= @LIBM@
LIBC= @LIBC@
-# Machine-dependent subdirectories
-MACHDEP= @MACHDEP@
-
# Install prefix for architecture-independent files
prefix= @prefix@
@@ -61,6 +58,8 @@
OBJS= $(MODOBJS)
+ADDOBJS= main.o config.o getpath.o
+
LIB= libModules.a
MYLIBS= $(LIB) \
@@ -80,15 +79,11 @@
$(AR) cr $(LIB) $(OBJS)
$(RANLIB) $(LIB)
-../python: config.o $(MYLIBS) Makefile
- $(LINKCC) $(OPT) config.o $(LINKFORSHARED) \
+../python: $(MYLIBS) $(ADDOBJS) Makefile
+ $(LINKCC) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \
$(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
mv python ../python
-config.o: config.c Makefile $(MYLIBS)
- $(LINKCC) $(CFLAGS) -DPYTHONPATH=\"$(PYTHONPATH)\" \
- -DPLATFORM=\"$(MACHDEP)\" -c config.c
-
clean:
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
@@ -96,6 +91,10 @@
-rm -f *.a tags TAGS config.c glmodule.c Makefile.pre
-rm -f *.so so_locations
+getpath.o: getpath.c Makefile
+ $(CC) -c $(CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
+ $(srcdir)/getpath.c
+
config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup
$(SHELL) $(MAKESETUP) Setup
@@ -127,6 +126,7 @@
glmodule.o: glmodule.c
imageop.o: imageop.c
imgfile.o: imgfile.c
+main.o: main.c
mathmodule.o: mathmodule.c
md5c.o: md5c.c
md5module.o: md5module.c