summaryrefslogtreecommitdiff
path: root/note_compiler/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'note_compiler/Makefile')
-rw-r--r--note_compiler/Makefile9
1 files changed, 5 insertions, 4 deletions
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)