summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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