summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-11-22 06:47:28 -0500
committermidipix <writeonce@midipix.org>2018-11-22 23:55:10 -0500
commit36fb5572445a97ab507a45e064c357e09ee4e455 (patch)
treed2584eca68e7ab03fe75618e9de18df2ac348760
parentf6645d9e87ace91229ffc65fb572d9d46affc5e2 (diff)
downloadsbpython2-36fb5572445a97ab507a45e064c357e09ee4e455.tar.bz2
sbpython2-36fb5572445a97ab507a45e064c357e09ee4e455.tar.xz
project: defined OBJECT_SRCS.
-rw-r--r--project/common.mk50
-rw-r--r--project/tree.mk1
2 files changed, 50 insertions, 1 deletions
diff --git a/project/common.mk b/project/common.mk
index 5818eed..eb1a8f4 100644
--- a/project/common.mk
+++ b/project/common.mk
@@ -1,9 +1,57 @@
+Objects/%.lo: $(SOURCE_DIR)/Objects/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
+ $(CC) -c -o $@ $< $(CFLAGS_SHARED)
+
+Objects/%.o: $(SOURCE_DIR)/Objects/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
+ $(CC) -c -o $@ $< $(CFLAGS_STATIC)
+
Parser/%.lo: $(SOURCE_DIR)/Parser/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
$(CC) -c -o $@ $< $(CFLAGS_SHARED)
Parser/%.o: $(SOURCE_DIR)/Parser/%.c $(ALL_HEADERS) host.tag tree.tag config.tag
$(CC) -c -o $@ $< $(CFLAGS_STATIC)
+
+OBJECT_SRCS = \
+ Objects/abstract.c \
+ Objects/boolobject.c \
+ Objects/bufferobject.c \
+ Objects/bytearrayobject.c \
+ Objects/bytes_methods.c \
+ Objects/capsule.c \
+ Objects/cellobject.c \
+ Objects/classobject.c \
+ Objects/cobject.c \
+ Objects/codeobject.c \
+ Objects/complexobject.c \
+ Objects/descrobject.c \
+ Objects/dictobject.c \
+ Objects/enumobject.c \
+ Objects/exceptions.c \
+ Objects/fileobject.c \
+ Objects/floatobject.c \
+ Objects/frameobject.c \
+ Objects/funcobject.c \
+ Objects/genobject.c \
+ Objects/intobject.c \
+ Objects/iterobject.c \
+ Objects/listobject.c \
+ Objects/longobject.c \
+ Objects/memoryobject.c \
+ Objects/methodobject.c \
+ Objects/moduleobject.c \
+ Objects/object.c \
+ Objects/obmalloc.c \
+ Objects/rangeobject.c \
+ Objects/setobject.c \
+ Objects/sliceobject.c \
+ Objects/stringobject.c \
+ Objects/structseq.c \
+ Objects/tupleobject.c \
+ Objects/typeobject.c \
+ Objects/unicodeobject.c \
+ Objects/unicodectype.c \
+ Objects/weakrefobject.c \
+
PARSER_SRCS = \
Parser/acceler.c \
Parser/bitset.c \
@@ -19,8 +67,8 @@ PARSER_SRCS = \
Parser/pgen.c \
Parser/tokenizer.c \
-
APP_SRCS = \
COMMON_SRCS = \
+ $(OBJECT_SRCS) \
$(PARSER_SRCS) \
diff --git a/project/tree.mk b/project/tree.mk
index d89904e..df75322 100644
--- a/project/tree.mk
+++ b/project/tree.mk
@@ -1,3 +1,4 @@
tree.tag:
+ mkdir -p Objects
mkdir -p Parser
touch tree.tag