From ff2f14ab35cf1cb2ded11b4ae86d24dda738b445 Mon Sep 17 00:00:00 2001
From: Florian Jung <flo@thinkpad.(none)>
Date: Fri, 31 Dec 2010 16:33:17 +0100
Subject: Add initial code for the note-compiler

The note-compiler now has a Parser class which knows about possible
parameter changes (by controller, velocity or simply user definition).
Furthermore, several files were adapted (by stripping unneeded code,
adding the bool foo_const variables etc.).

Small fix in util.c which causes extract_var("foo") to return "foo"
instead of "".

Fixes in both Makefiles.
---
 note_compiler/Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'note_compiler/Makefile')

diff --git a/note_compiler/Makefile b/note_compiler/Makefile
index bc51697..6a08b81 100644
--- a/note_compiler/Makefile
+++ b/note_compiler/Makefile
@@ -1,8 +1,9 @@
 CXX=g++
-CXXFLAGS=-Wall -g
-LDFLAGS=-lm
+CFLAGS=-Wall -g
+CXXFLAGS=$(CFLAGS)
+LDFLAGS=-lm `pkg-config --cflags --libs jack`
 
-OBJ=main.o
+OBJ=main.o parser.o util.o
 BIN=compiler
 
 DEPENDFILE = .depend
@@ -14,7 +15,7 @@ all: $(BIN)
 
 
 $(BIN): $(OBJ)
-	$(CXX) $(CFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS)
+	$(CXX) $(CXXFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS)
 	
 
 depend dep: $(SRC)
-- 
cgit v1.2.3