summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/extras.mk46
1 files changed, 1 insertions, 45 deletions
diff --git a/project/extras.mk b/project/extras.mk
index dc30cb0..6f81e50 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -37,7 +37,7 @@ else
CFLAGS_CONFIG += -DHAVE_DYNAMIC_LOADING
endif
-# top-level extension objects
+# extension objects
pyext/obj/%.lo: $(SOURCE_DIR)/Modules/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
$(CC) -c -o $@ $< $(CFLAGS_SHARED)
@@ -53,56 +53,12 @@ pyext/%$(OS_LIB_SUFFIX): $(DSO_REF_SOLINK)
$(CC) -shared -o $@ $^ $(LDFLAGS_SHARED) $(LDFLAGS_DYNEXT) \
-l$(PACKAGE) $(LDFLAGS_DEPS)
-
# statically linked extension
pyext/%$(OS_ARCHIVE_EXT):
rm -f $@
$(AR) rcs $@ $^
-# compile rules for python's extension modules
-Modules/cjkcodecs/%.lo: $(SOURCE_DIR)/Modules/cjkcodecs/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_SHARED)
-
-Modules/cjkcodecs/%.o: $(SOURCE_DIR)/Modules/cjkcodecs/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_STATIC)
-
-Modules/expat/%.lo: $(SOURCE_DIR)/Modules/expat/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_SHARED)
-
-Modules/expat/%.o: $(SOURCE_DIR)/Modules/expat/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_STATIC)
-
-Modules/zlib/%.lo: $(SOURCE_DIR)/Modules/zlib/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_SHARED)
-
-Modules/zlib/%.o: $(SOURCE_DIR)/Modules/zlib/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_STATIC)
-
-Modules/_ctypes/%.lo: $(SOURCE_DIR)/Modules/_ctypes/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_SHARED)
-
-Modules/_ctypes/%.o: $(SOURCE_DIR)/Modules/_ctypes/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_STATIC)
-
-Modules/_io/%.lo: $(SOURCE_DIR)/Modules/_io/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_SHARED)
-
-Modules/_io/%.o: $(SOURCE_DIR)/Modules/_io/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_STATIC)
-
-Modules/_multiprocessing/%.lo: $(SOURCE_DIR)/Modules/_multiprocessing/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_SHARED)
-
-Modules/_multiprocessing/%.o: $(SOURCE_DIR)/Modules/_multiprocessing/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_STATIC)
-
-Modules/_sqlite/%.lo: $(SOURCE_DIR)/Modules/_sqlite/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_SHARED)
-
-Modules/_sqlite/%.o: $(SOURCE_DIR)/Modules/_sqlite/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
- $(CC) -c -o $@ $< $(CFLAGS_STATIC)
-
# build rules for python's extension modules
include $(PROJECT_DIR)/project/pyexts.mk