diff options
-rw-r--r-- | project/common.mk | 20 | ||||
-rw-r--r-- | project/extras.mk | 8 | ||||
-rw-r--r-- | project/tree.mk | 1 |
3 files changed, 29 insertions, 0 deletions
diff --git a/project/common.mk b/project/common.mk index 1a5c3b3..b34226d 100644 --- a/project/common.mk +++ b/project/common.mk @@ -1,3 +1,15 @@ +Modules/config.lo: build/config.c $(ALL_HEADERS) host.tag tree.tag config.tag + $(CC) -c -o $@ $< $(CFLAGS_SHARED) + +Modules/config.o: build/config.c $(ALL_HEADERS) host.tag tree.tag config.tag + $(CC) -c -o $@ $< $(CFLAGS_STATIC) + +Modules/%.lo: $(SOURCE_DIR)/Modules/%.c $(ALL_HEADERS) host.tag tree.tag config.tag + $(CC) -c -o $@ $< $(CFLAGS_SHARED) + +Modules/%.o: $(SOURCE_DIR)/Modules/%.c $(ALL_HEADERS) host.tag tree.tag config.tag + $(CC) -c -o $@ $< $(CFLAGS_STATIC) + Objects/%.lo: $(SOURCE_DIR)/Objects/%.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_SHARED) @@ -17,6 +29,13 @@ Python/%.o: $(SOURCE_DIR)/Python/%.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_STATIC) +MODULE_SRCS = \ + Modules/config.c \ + Modules/gcmodule.c \ + Modules/getbuildinfo.c \ + Modules/getpath.c \ + Modules/main.c \ + OBJECT_SRCS = \ Objects/abstract.c \ Objects/boolobject.c \ @@ -122,6 +141,7 @@ APP_SRCS = \ COMMON_SRCS = \ $(DYNLOAD_SRCS) \ + $(MODULE_SRCS) \ $(OBJECT_SRCS) \ $(PARSER_SRCS) \ $(PYTHON_SRCS) \ diff --git a/project/extras.mk b/project/extras.mk index 2ad1a7f..6b69bf7 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1 +1,9 @@ +PYTHON_VER = 2.7 + CFLAGS_COMMON += -I$(SOURCE_DIR)/Include + +CFLAGS_CONFIG += -DVERSION=\"$(PYTHON_VER)\" +CFLAGS_CONFIG += -DPREFIX=\"$(PREFIX)\" +CFLAGS_CONFIG += -DEXEC_PREFIX=\"$(EXEC_PREFIX)\" +CFLAGS_CONFIG += -DVPATH=\"$(SOURCE_DIR)\" +CFLAGS_CONFIG += -DPYTHONPATH=\"$(PYTHON_PATH)\" diff --git a/project/tree.mk b/project/tree.mk index 48fac9e..dcdc150 100644 --- a/project/tree.mk +++ b/project/tree.mk @@ -1,4 +1,5 @@ tree.tag: + mkdir -p Modules mkdir -p Objects mkdir -p Parser mkdir -p Python |