summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-11-21 22:55:49 -0500
committermidipix <writeonce@midipix.org>2018-11-22 23:55:05 -0500
commit2a1a312aaadd509076237a525caca7b0a3d99f8b (patch)
tree5a42dd89269e4e9c47998a701b739bef3098bfc8 /project
parent18457f554ccd111a8cda22f66b2ebe8d49aae0f2 (diff)
downloadsbpython2-2a1a312aaadd509076237a525caca7b0a3d99f8b.tar.bz2
sbpython2-2a1a312aaadd509076237a525caca7b0a3d99f8b.tar.xz
project: defined PARSER_SRCS.
Diffstat (limited to 'project')
-rw-r--r--project/common.mk23
-rw-r--r--project/extras.mk1
-rw-r--r--project/tree.mk1
3 files changed, 25 insertions, 0 deletions
diff --git a/project/common.mk b/project/common.mk
index 3dc0727..5818eed 100644
--- a/project/common.mk
+++ b/project/common.mk
@@ -1,3 +1,26 @@
+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)
+
+PARSER_SRCS = \
+ Parser/acceler.c \
+ Parser/bitset.c \
+ Parser/firstsets.c \
+ Parser/grammar.c \
+ Parser/grammar1.c \
+ Parser/listnode.c \
+ Parser/metagrammar.c \
+ Parser/myreadline.c \
+ Parser/node.c \
+ Parser/parser.c \
+ Parser/parsetok.c \
+ Parser/pgen.c \
+ Parser/tokenizer.c \
+
+
APP_SRCS = \
COMMON_SRCS = \
+ $(PARSER_SRCS) \
diff --git a/project/extras.mk b/project/extras.mk
index e69de29..2ad1a7f 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -0,0 +1 @@
+CFLAGS_COMMON += -I$(SOURCE_DIR)/Include
diff --git a/project/tree.mk b/project/tree.mk
index 52f79f7..d89904e 100644
--- a/project/tree.mk
+++ b/project/tree.mk
@@ -1,2 +1,3 @@
tree.tag:
+ mkdir -p Parser
touch tree.tag