diff options
-rw-r--r-- | project/common.mk | 50 | ||||
-rw-r--r-- | project/tree.mk | 1 |
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 |