From c96bf6856ec6e94c45f4c34017ed1d086b554b04 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 16 Dec 2018 04:52:11 -0500 Subject: project: extension objects: remove obsolete rules (all are under pyext/obj). --- project/extras.mk | 46 +--------------------------------------------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3