diff options
author | midipix <writeonce@midipix.org> | 2018-11-22 21:31:37 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-11-22 23:55:21 -0500 |
commit | 50bd76add8c4f1ada841581b49c08f61a9e319a7 (patch) | |
tree | c8baa9d689fa4745c2e39ce1b67c2b3fc6e4e69d /project | |
parent | 61f18d5680236a93277147ebc6ee7474fed501e2 (diff) | |
download | sbpython2-50bd76add8c4f1ada841581b49c08f61a9e319a7.tar.bz2 sbpython2-50bd76add8c4f1ada841581b49c08f61a9e319a7.tar.xz |
project: defined MODULE_SRCS and related variables and dependencies.
Diffstat (limited to 'project')
-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 |