Skip to content

Commit

Permalink
new make based build
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 21, 2018
1 parent 207913f commit ade2da3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
/bin
/build
/mingus.dSYM
/mingusa.dSYM
/win32/vs2008ex/*/*
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cc = gcc
rm = rm
cflags = -Wall
clibs = -lviriatum
install = install
prefix = /usr/local

Expand All @@ -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

0 comments on commit ade2da3

Please sign in to comment.