diff --git a/.gitignore b/.gitignore index 33a96cf..d542b34 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ /bin /build /mingus.dSYM +/mingusa.dSYM /win32/vs2008ex/*/* diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ef2fea2..638c015 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,9 +3,9 @@ "tasks": [{ "label": "(gcc) Build mingus", "type": "shell", - "command": "gcc", + "command": "make", "args": [ - "-lviriatum", "-g", "src/mingus/mingus.c", "-o", "mingus" + "cflags=-g -Wall" ], "group": { "kind": "build", diff --git a/Makefile b/Makefile index e7f2973..3b40ecb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ cc = gcc rm = rm +cflags = -Wall +clibs = -lviriatum install = install prefix = /usr/local @@ -12,7 +14,7 @@ clean: $(rm) -f mingus mingusa mingus: src/mingus/mingus.c - $(cc) -lviriatum src/mingus/mingus.c -o mingus + $(cc) $(cflags) $(clibs) src/mingus/mingus.c -o mingus mingusa: src/mingus_assembler/mingus_assembler.c - $(cc) -lviriatum src/mingus_assembler/mingus_assembler.c -o mingusa + $(cc) $(cflags) $(clibs) src/mingus_assembler/mingus_assembler.c -o mingusa